From 4edfc4c937b4336bcfa7ef4b41cc3e97b24b13f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulius=20Ratkevi=C4=8Dius?= Date: Sun, 12 May 2019 17:23:58 +0300 Subject: daemon: Implemented verbosity levels. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes ticket #29. Signed-off-by: Paulius Ratkevičius --- src/daemon/settings_private.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/daemon/settings_private.h') 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); -- cgit v1.2.3