summaryrefslogtreecommitdiffstats
path: root/linkedlist.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 /linkedlist.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 'linkedlist.h')
-rw-r--r--linkedlist.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/linkedlist.h b/linkedlist.h
index 046c7ba9..0f061b59 100644
--- a/linkedlist.h
+++ b/linkedlist.h
@@ -40,7 +40,8 @@ typedef struct llElt_s llElt_t;
*/
struct linkedList_s { /* config file sysline parse entry */
int iNumElts; /* number of elements in list */
- rsRetVal (*pEltDestruct)(void*pData, void*pKey); /* destructor for user pointer in llElt_t's */
+ rsRetVal (*pEltDestruct)(void*pData); /* destructor for user pointer in llElt_t's */
+ rsRetVal (*pKeyDestruct)(void*pKey); /* destructor for key pointer in llElt_t's */
int (*cmpOp)(void*, void*); /* pointer to key compare operation function, retval like strcmp */
void *pKey; /* the list key (searchable, if set) */
llElt_t *pRoot; /* list root */
@@ -51,7 +52,7 @@ typedef struct linkedList_s linkedList_t;
typedef llElt_t* linkedListCookie_t; /* this type avoids exposing internals and keeps us flexible */
/* prototypes */
-rsRetVal llInit(linkedList_t *pThis, rsRetVal (*pEltDestructor)(void*, void*));
+rsRetVal llInit(linkedList_t *pThis, rsRetVal (*pEltDestructor)(void*), rsRetVal (*pKeyDestructor)(void*));
rsRetVal llDestroy(linkedList_t *pThis);
rsRetVal llGetNextElt(linkedList_t *pThis, linkedListCookie_t *ppElt, void **ppUsr);
rsRetVal llAppend(linkedList_t *pThis, void *pKey, void *pData);