aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-27 16:53:07 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-27 16:53:07 -0700
commitd7f22a0c27cb565bdd010c7ae352d5e7afc4922e (patch)
treeba9c8088b5a1cd3f9aa7a2bafc569eb6611877a8 /env_universal_common.h
parent3b4794ae94157408de4cac33a50522be230feee0 (diff)
Correctly invoke callbacks with fishd-less universal variables. All
tests now pass.
Diffstat (limited to 'env_universal_common.h')
-rw-r--r--env_universal_common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/env_universal_common.h b/env_universal_common.h
index 8c9edeb8..26e5c633 100644
--- a/env_universal_common.h
+++ b/env_universal_common.h
@@ -189,6 +189,9 @@ env_var_t env_universal_common_get(const wcstring &name);
*/
bool env_universal_common_get_export(const wcstring &name);
+/** Synchronizes all changse: writes everything out, reads stuff in */
+void env_universal_common_sync();
+
/**
Add messages about all existing variables to the specified connection
*/
@@ -260,8 +263,8 @@ public:
/** Loads variables at the correct path */
bool load();
- /** Writes variables at the correct path */
- bool save();
+ /** Reads and writes variables at the correct path */
+ bool sync();
/* Internal use */
void read_message(connection_t *src);