diff options
author | 2019-05-12 17:23:58 +0300 | |
---|---|---|
committer | 2019-05-13 13:53:15 +0300 | |
commit | 4edfc4c937b4336bcfa7ef4b41cc3e97b24b13f1 (patch) | |
tree | c7f4703b4273859d05419cffdb1aee2bd4644cc0 /src/daemon/settings_private.h | |
parent | 98a8d1c8dea0f43fb1f3fe3079c1bfb8b50d2f81 (diff) | |
download | usurpation-4edfc4c937b4336bcfa7ef4b41cc3e97b24b13f1.tar.gz usurpation-4edfc4c937b4336bcfa7ef4b41cc3e97b24b13f1.tar.bz2 usurpation-4edfc4c937b4336bcfa7ef4b41cc3e97b24b13f1.zip |
daemon: Implemented verbosity levels.
Closes ticket #29.
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
Diffstat (limited to 'src/daemon/settings_private.h')
-rw-r--r-- | src/daemon/settings_private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/daemon/settings_private.h b/src/daemon/settings_private.h index 336c151..7839cb9 100644 --- a/src/daemon/settings_private.h +++ b/src/daemon/settings_private.h @@ -22,12 +22,16 @@ #ifndef USURPATION_SETTINGS_PRIVATE_H #define USURPATION_SETTINGS_PRIVATE_H +#ifndef USURP_VERBOSITY + #define USURP_VERBOSITY 1 +#endif + static const unsigned int flag_daemonize = 1 << 0; /* 1st bit */ -static const unsigned int flag_verbose = 1 << 1; static struct settings { unsigned int flags; unsigned short int port; + int verbosity; } settings; int test_flag(unsigned int flag); |