diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 15:23:28 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 15:23:28 +0000 |
commit | 074ece90c0b7f32307716eeb6d0308b83197b6ce (patch) | |
tree | 707340dde192c4c4ac8b196f6da2d26bbfc22247 /linkedlist.h | |
parent | 7449e8356b19900acaa33e387bd4ea65ba85e204 (diff) | |
download | rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.tar.gz rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.tar.xz rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.zip |
- got the basic code in place to create an in-memory list of cfsysline
handlers (omfile.c used as testing case) -- not yet in active code
Diffstat (limited to 'linkedlist.h')
-rw-r--r-- | linkedlist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linkedlist.h b/linkedlist.h index cdfc2872..6060345f 100644 --- a/linkedlist.h +++ b/linkedlist.h @@ -52,10 +52,11 @@ 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*), rsRetVal (*pKeyDestructor)(void*)); +rsRetVal llInit(linkedList_t *pThis, rsRetVal (*pEltDestructor)(void*), rsRetVal (*pKeyDestructor)(void*), int pCmpOp()); rsRetVal llDestroy(linkedList_t *pThis); rsRetVal llGetNextElt(linkedList_t *pThis, linkedListCookie_t *ppElt, void **ppUsr); rsRetVal llAppend(linkedList_t *pThis, void *pKey, void *pData); rsRetVal llFind(linkedList_t *pThis, void *pKey, void **ppData); +rsRetVal llGetKey(llElt_t *pThis, void **ppData); #endif /* #ifndef LINKEDLIST_H_INCLUDED */ |