diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-17 13:44:42 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-17 13:44:42 +0200 |
commit | ad6b933faf5dfa8f5502969e63eccc86d2af6662 (patch) | |
tree | 5373957f8ef453af110bd70af89b87b1608a695e /plugins/imklog/imklog.h | |
parent | 730c46fed808e269fa40ff542001c98228a3dd0b (diff) | |
parent | 3dc5bda6eb35f27033af2e2b25a37d74771f0a00 (diff) | |
download | rsyslog-ad6b933faf5dfa8f5502969e63eccc86d2af6662.tar.gz rsyslog-ad6b933faf5dfa8f5502969e63eccc86d2af6662.tar.bz2 rsyslog-ad6b933faf5dfa8f5502969e63eccc86d2af6662.zip |
Merge branch 'master' into tls
Diffstat (limited to 'plugins/imklog/imklog.h')
-rw-r--r-- | plugins/imklog/imklog.h | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/plugins/imklog/imklog.h b/plugins/imklog/imklog.h index 2db75009..0847140b 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. * @@ -26,11 +28,35 @@ #define IMKLOG_H_INCLUDED 1 #include "rsyslog.h" -#include "syslogd.h" +#include "dirty.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); +int klogFacilIntMsg(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; +/* the functions below may be called by the drivers */ +rsRetVal imklogLogIntMsg(int priority, char *fmt, ...) __attribute__((format(printf,2, 3))); +rsRetVal Syslog(int priority, uchar *msg); + /* prototypes */ extern int InitKsyms(char *); extern void DeinitKsyms(void); @@ -38,10 +64,7 @@ extern int InitMsyms(void); extern void DeinitMsyms(void); extern char * ExpandKadds(char *, char *); extern void SetParanoiaLevel(int); -extern void vsyslog(int pri, const char *fmt, va_list ap); -rsRetVal Syslog(int priority, char *fmt, ...) __attribute__((format(printf,2, 3))); #endif /* #ifndef IMKLOG_H_INCLUDED */ -/* - * vi:set ai: +/* vi:set ai: */ |