diff src/lib/env-util.h @ 9054:89de2b91a655 HEAD

Added env_backup_*() for saving/restoring environment.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 May 2009 21:03:39 -0400
parents b1a7df02ba38
children 19d851d93f92
line wrap: on
line diff
--- a/src/lib/env-util.h	Sun May 17 21:35:07 2009 -0400
+++ b/src/lib/env-util.h	Sun May 17 21:03:39 2009 -0400
@@ -9,4 +9,11 @@
 /* Clear all environment variables. */
 void env_clean(void);
 
+/* Save a copy of the current environment. */
+struct env_backup *env_backup_save(void);
+/* Clear the current environment and restore the backup. */
+void env_backup_restore(struct env_backup *env);
+/* Free the memory used by environment backup. */
+void env_backup_free(struct env_backup **env);
+
 #endif