summaryrefslogtreecommitdiffstats
path: root/ommysql.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-31 13:02:23 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-31 13:02:23 +0000
commit48fd0e472a75a32e70fa1938c2279cf730282370 (patch)
treed009cb0f3e3b1c3d733b1d816b1413af3cb356c2 /ommysql.c
parent19e94f195997a4907f96b5d53e88c2f5c44b08e0 (diff)
downloadrsyslog-48fd0e472a75a32e70fa1938c2279cf730282370.tar.gz
rsyslog-48fd0e472a75a32e70fa1938c2279cf730282370.tar.xz
rsyslog-48fd0e472a75a32e70fa1938c2279cf730282370.zip
- changed modInit() interface to contain pointer to host-function query
method
Diffstat (limited to 'ommysql.c')
-rw-r--r--ommysql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ommysql.c b/ommysql.c
index 529597f1..7f340026 100644
--- a/ommysql.c
+++ b/ommysql.c
@@ -50,6 +50,8 @@
/* internal structures
*/
+DEF_OMOD_STATIC_DATA
+
typedef struct _instanceData {
MYSQL *f_hmysql; /* handle to MySQL */
char f_dbsrv[MAXHOSTNAMELEN+1]; /* IP or hostname of DB server*/
@@ -414,6 +416,7 @@ ENDqueryEtryPt
BEGINmodInit(MySQL)
CODESTARTmodInit
*ipIFVersProvided = 1; /* so far, we only support the initial definition */
+CODEmodInit_QueryRegCFSLineHdlr
ENDmodInit
#endif /* #ifdef WITH_DB */