]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:util: Add debug_get_log_type() function
authorAndreas Schneider <asn@samba.org>
Fri, 8 Jan 2021 07:31:24 +0000 (08:31 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Apr 2021 03:58:37 +0000 (03:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/debug.c
lib/util/debug.h

index 18e5b4f6c72d743049dcc1d939d2c2b70012ed46..05a76efc5a443ea9c1bf691d864ffa75826f922e 100644 (file)
@@ -1038,6 +1038,11 @@ static void debug_close_fd(int fd)
        }
 }
 
+enum debug_logtype debug_get_log_type(void)
+{
+       return state.logtype;
+}
+
 bool debug_get_output_is_stderr(void)
 {
        return (state.logtype == DEBUG_DEFAULT_STDERR) || (state.logtype == DEBUG_STDERR);
index 67dbf3357e36cf808c25d0bb04926095d3e28071..9ab699a41485b7a868242564fc5d6c3689b4bc05 100644 (file)
@@ -320,6 +320,7 @@ void force_check_log_size( void );
 bool need_to_check_log_size( void );
 void check_log_size( void );
 void dbgflush( void );
+enum debug_logtype debug_get_log_type(void);
 bool debug_get_output_is_stderr(void);
 bool debug_get_output_is_stdout(void);
 void debug_schedule_reopen_logs(void);