aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-14 15:03:44 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-14 15:03:44 +0800
commita73b903df923a9659e97b14e2befac56de1a70e4 (patch)
tree2942e88b8641e52c45d663e0cb2e0ddf2723e037 /env_universal_common.h
parent30cfb3e795de6e38a52f7c589c661c5cb07f3da2 (diff)
Null notifier to support fishd synchronization, so we can select the
synchronization mechanism at runtime
Diffstat (limited to 'env_universal_common.h')
-rw-r--r--env_universal_common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/env_universal_common.h b/env_universal_common.h
index a3307e5c..c4eda46b 100644
--- a/env_universal_common.h
+++ b/env_universal_common.h
@@ -302,7 +302,10 @@ public:
strategy_inotify,
// Strategy that uses notify(3). Simple and efficient, but OS X only.
- strategy_notifyd
+ strategy_notifyd,
+
+ // Null notifier, does nothing
+ strategy_null
};
protected:
@@ -343,6 +346,9 @@ public:
std::string get_machine_identifier();
bool get_hostname_identifier(std::string *result);
+/* Temporary */
+bool synchronizes_via_fishd();
+
/* Environment variable for requesting a particular universal notifier. See fetch_default_strategy_from_environment for names. */
#define UNIVERSAL_NOTIFIER_ENV_NAME "fish_universal_notifier"