aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
commit8d2f107d61a8b0e099ab9a59b8a32c236da5a5fc (patch)
tree89f718ab74f8400332534aee237c6f925348f05c /env_universal.h
parent3f16ace6784caab54fb054836ee93902e9701913 (diff)
Some changes to migrate towards C++ and a multithreaded model
Diffstat (limited to 'env_universal.h')
-rw-r--r--env_universal.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/env_universal.h b/env_universal.h
index 25e8fc99..1ed58fac 100644
--- a/env_universal.h
+++ b/env_universal.h
@@ -17,7 +17,10 @@ extern connection_t env_universal_server;
/**
Initialize the envuni library
*/
-void env_universal_init();
+void env_universal_init( wchar_t * p,
+ wchar_t *u,
+ void (*sf)(),
+ void (*cb)( int type, const wchar_t *name, const wchar_t *val ));
/**
Free memory used by envuni
*/
@@ -37,10 +40,10 @@ 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, int export );
+void env_universal_set( const wchar_t *name, const wchar_t *val, int exportv );
/**
Erase a universal variable
-
+
\return zero if the variable existed, and non-zero if the variable did not exist
*/
int env_universal_remove( const wchar_t *name );
@@ -52,7 +55,7 @@ int env_universal_read_all();
/**
Get the names of all universal variables
-
+
\param l the list to insert the names into
\param show_exported whether exported variables should be shown
\param show_unexported whether unexported variables should be shown