diff options
author | axel <axel@liljencrantz.se> | 2006-11-15 22:34:47 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-11-15 22:34:47 +1000 |
commit | 3b2670532ae9327de16082d1814589658b7c8519 (patch) | |
tree | 903b4b70775ef648cc23c973eb1f7150cde44cc5 /env_universal_common.h | |
parent | d00bc973fe1f5a889bdfb57d4448894434b035be (diff) |
Make fish store universal variables locally if fishd can't be started - local changes are lost of the fishd connection is restored
darcs-hash:20061115123447-ac50b-bf17c55079e1196205cc3a4fd0ca22d9f539836c.gz
Diffstat (limited to 'env_universal_common.h')
-rw-r--r-- | env_universal_common.h | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/env_universal_common.h b/env_universal_common.h index 21550a0f..166fb6b7 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -143,19 +143,50 @@ void env_universal_common_destroy(); /** Add all variable names to the specified list + + This function operate agains the local copy of all universal + variables, it does not communicate with any other process. */ void env_universal_common_get_names( array_list_t *l, int show_exported, int show_unexported ); /** + Perform the specified variable assignment. + + This function operate agains the local copy of all universal + variables, it does not communicate with any other process. + + Do not call this function. Create a message to do it. This function + is only to be used when fishd is dead. +*/ +void env_universal_common_set( const wchar_t *key, const wchar_t *val, int export ); + +/** + Remove the specified variable. + + This function operate agains the local copy of all universal + variables, it does not communicate with any other process. + + Do not call this function. Create a message to do it. This function + is only to be used when fishd is dead. +*/ +void env_universal_common_remove( const wchar_t *key ); + +/** Get the value of the variable with the specified name + + This function operate agains the local copy of all universal + variables, it does not communicate with any other process. */ 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. + + This function operate agains the local copy of all universal + variables, it does not communicate with any other process. */ int env_universal_common_get_export( const wchar_t *name ); @@ -164,8 +195,17 @@ int env_universal_common_get_export( const wchar_t *name ); */ void enqueue_all( connection_t *c ); +/** + Fill in the specified connection_t struct. Use the specified file + descriptor for communication. +*/ void connection_init( connection_t *c, int fd ); -void connection_destroy( connection_t *c); +/** + Close and destroy the specified connection struct. This frees + allstructures allocated by the connection, such as ques of unsent + messages. +*/ +void connection_destroy( connection_t *c); #endif |