summaryrefslogtreecommitdiffstats
path: root/cfsysline.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-31 12:34:45 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-31 12:34:45 +0000
commit19e94f195997a4907f96b5d53e88c2f5c44b08e0 (patch)
tree33a30dc9cf3fec14d340f4944a42773fe0ae708c /cfsysline.h
parent6465202ed784cdb02339af7760bac09c8e3556c2 (diff)
downloadrsyslog-19e94f195997a4907f96b5d53e88c2f5c44b08e0.tar.gz
rsyslog-19e94f195997a4907f96b5d53e88c2f5c44b08e0.tar.xz
rsyslog-19e94f195997a4907f96b5d53e88c2f5c44b08e0.zip
prepared cfsysline.c for integration into output modules
Diffstat (limited to 'cfsysline.h')
-rw-r--r--cfsysline.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/cfsysline.h b/cfsysline.h
index cdb98834..a1a51d91 100644
--- a/cfsysline.h
+++ b/cfsysline.h
@@ -22,6 +22,8 @@
#ifndef CFSYSLINE_H_INCLUDED
#define CFSYSLINE_H_INCLUDED
+#include "linkedlist.h"
+
/* types of configuration handlers
*/
typedef enum cslCmdHdlrType {
@@ -40,7 +42,6 @@ typedef enum cslCmdHdlrType {
* The short name is cslch (Configfile SysLine CommandHandler)
*/
struct cslCmdHdlr_s { /* config file sysline parse entry */
- struct cslCmdHdlr_s *pNext;
ecslCmdHdrlType eType; /* which type of handler is this? */
rsRetVal (*cslCmdHdlr)(); /* function pointer to use with handler (params depending on eType) */
void *pData; /* user-supplied data pointer */
@@ -53,18 +54,16 @@ typedef struct cslCmdHdlr_s cslCmdHdlr_t;
* The short name is cslc (Configfile SysLine Command)
*/
struct cslCmd_s { /* config file sysline parse entry */
- struct cslCmd_s *pNext;
- uchar *pszCmdString;
- struct cslCmdHdlr_s *pHdlrRoot; /* linked list of to-be-called command handlers */
- struct cslCmdHdlr_s *pHdlrLast;
+ linkedList_t *pllCmdHdlrs; /* linked list of command handlers */
};
typedef struct cslCmd_s cslCmd_t;
/* prototypes */
-rsRetVal cslchDestruct(cslCmdHdlr_t *pThis);
+rsRetVal cslchDestruct(void *pThis);
rsRetVal cslchConstruct(cslCmdHdlr_t **ppThis);
rsRetVal cslchSetEntry(cslCmdHdlr_t *pThis, ecslCmdHdrlType eType, rsRetVal (*pHdlr)(), void *pData);
rsRetVal cslchCallHdlr(cslCmdHdlr_t *pThis, uchar **ppConfLine);
+rsRetVal cslcConstruct(cslCmd_t **ppThis);
/* the next ones go away later */
rsRetVal doBinaryOptionLine(uchar **pp, rsRetVal (*pSetHdlr)(void*, int), void *pVal);