diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/log.c | 1 | ||||
-rw-r--r-- | src/helper/log.h | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/helper/log.c b/src/helper/log.c index e5dc0a2..4cdcfc8 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -34,7 +34,6 @@ int debug_level = -1; static FILE* log_output; - static void *privData; static logCallback callback; diff --git a/src/helper/log.h b/src/helper/log.h index 422e2b5..09bc3a1 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -46,10 +46,10 @@ extern int log_register_commands(struct command_context_s *cmd_ctx); extern int log_init(struct command_context_s *cmd_ctx); extern int set_log_output(struct command_context_s *cmd_ctx, FILE *output); -typedef void (*logCallback)(void *privData, const char *file, int line, +typedef void (*logCallback)(void *priv, const char *file, int line, const char *function, const char *format, va_list args); -void log_setCallback(logCallback callback, void *privData); +extern void log_setCallback(logCallback callback, void *priv); extern int debug_level; |