diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-04-26 11:41:34 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-04-26 11:41:34 -0700 |
commit | 6a94b51cbadb8609580fac5c693c02ca4ab39734 (patch) | |
tree | 62d5a7df4ceab68c302c3d51fc4c3df21c0c3555 /env_universal_common.h | |
parent | bf14668b2a831d583196d8c5d1f58c69eefa216e (diff) |
Beginning steps towards teaching the universal variable system to read
the fishd file directly, instead of fetching it through fishd
Diffstat (limited to 'env_universal_common.h')
-rw-r--r-- | env_universal_common.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/env_universal_common.h b/env_universal_common.h index cc1ddf55..be7901ce 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -205,6 +205,15 @@ class env_universal_t { var_table_t vars; mutable pthread_mutex_t lock; + bool tried_renaming; + bool load_from_path(const wcstring &path); + bool save_to_path(const wcstring &path); + + void parse_message_internal(wchar_t *msg, connection_t *src); + + void set_internal(const wcstring &key, const wcstring &val, bool exportv); + void remove_internal(const wcstring &name); + public: env_universal_t(); ~env_universal_t(); @@ -226,6 +235,15 @@ public: /* Writes variables to the connection */ void enqueue_all(connection_t *c) const; + + /** Loads variables at the correct path */ + bool load(); + + /** Writes variables at the correct path */ + bool save(); + + /* Internal use */ + void read_message(connection_t *src); }; std::string get_machine_identifier(); |