Hi Steven,
this patch allows logsys users to retrive configure information.
This is very useful if we want to set some defaults by
LOGSYS_DECLARE_SYSTEM and then change those settings from another piece of
code without sharing globals and such (since logsys_mode already is
global).
Please apply.
Thanks
Fabio
--
I'm going to make him an offer he can't refuse.
Index: exec/logsys.c
===================================================================
--- exec/logsys.c (revision 1552)
+++ exec/logsys.c (working copy)
@@ -423,6 +423,11 @@
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];
Index: exec/logsys.h
===================================================================
--- exec/logsys.h (revision 1552)
+++ exec/logsys.h (working copy)
@@ -100,6 +100,8 @@
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);
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais