aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal.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.h
parentfcdaed44d73b0f151f53a304501c987b7a649446 (diff)
Exportable universal variables
darcs-hash:20050922201652-ac50b-f70e7607b4ace24da4020f2d432718dc335e5bdd.gz
Diffstat (limited to 'env_universal.h')
-rw-r--r--env_universal.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/env_universal.h b/env_universal.h
index 6705febd..48cbef7b 100644
--- a/env_universal.h
+++ b/env_universal.h
@@ -13,6 +13,11 @@
extern connection_t env_universal_server;
/**
+ Update flag. Set to 1 whenever an update has occured.
+*/
+extern int env_universal_update;
+
+/**
Initialize the envuni library
*/
void env_universal_init();
@@ -25,10 +30,17 @@ void env_universal_destroy();
Get the value of a universal variable
*/
wchar_t *env_universal_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_get_export( const wchar_t *name );
+
/**
Set the value of a universal variable
*/
-void env_universal_set( const wchar_t *name, const wchar_t *val );
+void env_universal_set( const wchar_t *name, const wchar_t *val, int export );
/**
Erase a universal variable
*/
@@ -36,4 +48,10 @@ void env_universal_remove( const wchar_t *name );
int env_universal_read_all();
+void env_universal_get_names( array_list_t *l,
+ int show_exported,
+ int show_unexported );
+
+void env_universal_barrier();
+
#endif