summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-23 16:31:35 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-23 16:31:35 +0200
commit50fe2ec2ea275b7ed38c7942736fbb2aae727056 (patch)
tree85a43771dbe9dca798a69c941fb83c8396f4fc1f /runtime/netstrm.c
parent1892fc75f9fad0b0741b4a3eb1fc382f900b2301 (diff)
downloadrsyslog-50fe2ec2ea275b7ed38c7942736fbb2aae727056.tar.gz
rsyslog-50fe2ec2ea275b7ed38c7942736fbb2aae727056.tar.xz
rsyslog-50fe2ec2ea275b7ed38c7942736fbb2aae727056.zip
removed listener array from inidividual netstrm (mostly finished)
Diffstat (limited to 'runtime/netstrm.c')
-rw-r--r--runtime/netstrm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/netstrm.c b/runtime/netstrm.c
index f0bdab78..c8335fa4 100644
--- a/runtime/netstrm.c
+++ b/runtime/netstrm.c
@@ -140,11 +140,16 @@ finalize_it:
* rgerhards, 2008-04-22
*/
static rsRetVal
-LstnInit(void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*), uchar *pLstnPort, uchar *pLstnIP, int iSessMax)
+LstnInit(netstrms_t *pNS, void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*),
+ uchar *pLstnPort, uchar *pLstnIP, int iSessMax)
{
DEFiRet;
+
+ ISOBJ_TYPE_assert(pNS, netstrms);
+ assert(fAddLstn != NULL);
assert(pLstnPort != NULL);
- //CHKiRet(pThis->Drvr.LstnInit(pUsr, fAddLstn, pLstnPort, pLstnIP, iSessMax));
+
+ CHKiRet(pNS->Drvr.LstnInit(pNS, pUsr, fAddLstn, pLstnPort, pLstnIP, iSessMax));
finalize_it:
RETiRet;