aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-23 06:16:52 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-23 06:16:52 +1000
commitf971e02256f903fa58fbc288629009d47fc89712 (patch)
treec64b639776ab294a7f17a374ddb3ad1743939a8f /env_universal_common.h
parentfcdaed44d73b0f151f53a304501c987b7a649446 (diff)
Exportable universal variables
darcs-hash:20050922201652-ac50b-f70e7607b4ace24da4020f2d432718dc335e5bdd.gz
Diffstat (limited to 'env_universal_common.h')
-rw-r--r--env_universal_common.h39
1 files changed, 34 insertions, 5 deletions
diff --git a/env_universal_common.h b/env_universal_common.h
index 3b53273b..286da9c6 100644
--- a/env_universal_common.h
+++ b/env_universal_common.h
@@ -8,11 +8,23 @@
#define SET_STR L"SET"
/**
+ The set_export command
+*/
+#define SET_EXPORT_STR L"SET_EXPORT"
+
+/**
The erase command
*/
#define ERASE_STR L"ERASE"
+/**
+ The barrier command
+*/
#define BARRIER_STR L"BARRIER"
+
+/**
+ The barrier_reply command
+*/
#define BARRIER_REPLY_STR L"BARRIER_REPLY"
@@ -27,6 +39,7 @@
enum
{
SET,
+ SET_EXPORT,
ERASE,
BARRIER,
BARRIER_REPLY,
@@ -34,11 +47,6 @@ enum
;
/**
- The table of universal variables
-*/
-extern hash_table_t env_universal_var;
-
-/**
This struct represents a connection between a universal variable server/client
*/
typedef struct connection
@@ -107,4 +115,25 @@ void env_universal_common_init(void (*cb)(int type, const wchar_t *key, const wc
*/
void env_universal_common_destroy();
+/**
+ Add all variable names to the specified list
+*/
+void env_universal_common_get_names( array_list_t *l,
+ int show_exported,
+ int show_unexported );
+
+/**
+ Get the value of the variable with the specified name
+*/
+wchar_t *env_universal_common_get( const wchar_t *name );
+
+/**
+ Get the export flag of the variable with the specified
+ name. Returns 0 if the variable doesn't exist.
+*/
+int env_universal_common_get_export( const wchar_t *name );
+
+void enqueue_all( connection_t *c );
+
+
#endif