Explorar el Código

Allow user to retrieve logsys mode.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1555 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake hace 17 años
padre
commit
5068ac3e1d
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 5 0
      exec/logsys.c
  2. 2 0
      exec/logsys.h

+ 5 - 0
exec/logsys.c

@@ -423,6 +423,11 @@ void logsys_config_mode_set (unsigned int mode)
 	pthread_mutex_unlock (&logsys_config_mutex);
 }
 
+unsigned int logsys_config_mode_get (void)
+{
+	return logsys_mode;
+}
+
 int logsys_config_file_set (char **error_string, char *file)
 {
 	static char error_string_response[512];

+ 2 - 0
exec/logsys.h

@@ -99,6 +99,8 @@ extern inline int logsys_mkpri (int priority, int id);
 extern void logsys_config_mode_set (
 	unsigned int mode);
 
+extern unsigned int logsys_config_mode_get (void);
+
 extern int logsys_config_file_set (
 	char **error_string,
 	char *file);