diff options
author | 2014-05-15 10:49:06 +0800 | |
---|---|---|
committer | 2014-05-15 10:49:06 +0800 | |
commit | 2b11d1060ccf8f7c2a255c64b991f6f6788843ae (patch) | |
tree | b6ab2f35fb01023d9a0aca921e3223aceb7592d8 /env_universal_common.h | |
parent | a73b903df923a9659e97b14e2befac56de1a70e4 (diff) |
Make initialize_synchronizes_via_fishd default to false. Add some
logging support to universal variables.
Diffstat (limited to 'env_universal_common.h')
-rw-r--r-- | env_universal_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/env_universal_common.h b/env_universal_common.h index c4eda46b..c18f7e97 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -349,7 +349,16 @@ bool get_hostname_identifier(std::string *result); /* Temporary */ bool synchronizes_via_fishd(); +bool universal_log_enabled(); +#define UNIVERSAL_LOG(x) if (universal_log_enabled()) fprintf(stderr, "UNIVERSAL LOG: %s\n", x) + /* Environment variable for requesting a particular universal notifier. See fetch_default_strategy_from_environment for names. */ #define UNIVERSAL_NOTIFIER_ENV_NAME "fish_universal_notifier" +/* Environment variable for enabling universal variable logging (to stderr) */ +#define UNIVERSAL_LOGGING_ENV_NAME "fish_universal_log" + +/* Environment variable for enabling fishd */ +#define UNIVERSAL_USE_FISHD "fish_use_fishd" + #endif |