summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/imklog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-08 23:34:14 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-08 23:34:14 +0200
commit838072a22f5a98e150dbab055eba28453238109f (patch)
tree1f0714ffa04a8e4c2912dfb1f4e45cbe8eb685ab /plugins/imklog/imklog.h
parenta61f8543ff89a9eef1bef1686fff1035f5f79249 (diff)
downloadrsyslog-838072a22f5a98e150dbab055eba28453238109f.tar.gz
rsyslog-838072a22f5a98e150dbab055eba28453238109f.tar.xz
rsyslog-838072a22f5a98e150dbab055eba28453238109f.zip
changed imklog to a driver interface
imklog now uses os-specific drivers. The initial "set" contains the linux driver. This is a prequisite for BSD klog, which can now be implemented on that driver interface.
Diffstat (limited to 'plugins/imklog/imklog.h')
-rw-r--r--plugins/imklog/imklog.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/plugins/imklog/imklog.h b/plugins/imklog/imklog.h
index 71525a79..0ac25d6c 100644
--- a/plugins/imklog/imklog.h
+++ b/plugins/imklog/imklog.h
@@ -2,8 +2,10 @@
* These are the definitions for the klog message generation module.
*
* File begun on 2007-12-17 by RGerhards
+ * Major change: 2008-04-09: switched to a driver interface for
+ * several platforms
*
- * Copyright 2007 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007-2008 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
@@ -28,7 +30,26 @@
#include "rsyslog.h"
#include "syslogd.h"
-/* global variables */
+/* interface to "drivers"
+ * the platform specific drivers must implement these entry points. Only one
+ * driver may be active at any given time, thus we simply rely on the linker
+ * to resolve the addresses.
+ * rgerhards, 2008-04-09
+ */
+rsRetVal klogLogKMsg(void);
+rsRetVal klogWillRun(void);
+rsRetVal klogAfterRun(void);
+
+/* the following data members may be accessed by the "drivers"
+ * I admit this is not the cleanest way to doing things, but I honestly
+ * believe it is appropriate for the job that needs to be done.
+ * rgerhards, 2008-04-09
+ */
+extern int symbols_twice;
+extern int use_syscall;
+extern int symbol_lookup;
+extern char *symfile;
+extern int console_log_level;
extern int dbgPrintSymbols;
/* prototypes */