diff options
author | David Eklov <david.eklov@gmail.com> | 2016-06-27 02:29:37 -0500 |
---|---|---|
committer | David Eklov <david.eklov@gmail.com> | 2016-06-27 18:56:50 -0500 |
commit | 26842ff3833c853e3e3cef065a494c05736a53e5 (patch) | |
tree | d576aeed92f5819b1e873539e6151509eeec529d /include | |
parent | Bug fix: Add missing header file, unistd.h (diff) | |
download | sway-26842ff3833c853e3e3cef065a494c05736a53e5.tar.gz sway-26842ff3833c853e3e3cef065a494c05736a53e5.tar.zst sway-26842ff3833c853e3e3cef065a494c05736a53e5.zip |
Add get_log_level() to encapsulate v (current log level)
This patch also makes all global variable in log.c static.
Diffstat (limited to 'include')
-rw-r--r-- | include/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index efacf90f..ca8c1fe3 100644 --- a/include/log.h +++ b/include/log.h | |||
@@ -11,6 +11,7 @@ typedef enum { | |||
11 | 11 | ||
12 | void init_log(log_importance_t verbosity); | 12 | void init_log(log_importance_t verbosity); |
13 | void set_log_level(log_importance_t verbosity); | 13 | void set_log_level(log_importance_t verbosity); |
14 | log_importance_t get_log_level(void); | ||
14 | void reset_log_level(void); | 15 | void reset_log_level(void); |
15 | // returns whether debug logging is on after switching. | 16 | // returns whether debug logging is on after switching. |
16 | bool toggle_debug_logging(void); | 17 | bool toggle_debug_logging(void); |