summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-17 16:00:07 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-17 16:00:07 +0200
commit665ac5df67b6613dfe338396d6cec91e678a0394 (patch)
tree6687ec7c1eac20bbc0ad8845ca80faeb5d16fbab /runtime/netstrm.h
parentccf3b533c698d323cafb01d32f35edaeaf8e8daa (diff)
downloadrsyslog-665ac5df67b6613dfe338396d6cec91e678a0394.tar.gz
rsyslog-665ac5df67b6613dfe338396d6cec91e678a0394.tar.xz
rsyslog-665ac5df67b6613dfe338396d6cec91e678a0394.zip
brought netstrm to a (hopefully) somewhat usable state
Diffstat (limited to 'runtime/netstrm.h')
-rw-r--r--runtime/netstrm.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/netstrm.h b/runtime/netstrm.h
index 73d9c274..7f267a36 100644
--- a/runtime/netstrm.h
+++ b/runtime/netstrm.h
@@ -34,19 +34,13 @@ struct netstrm_s {
int iSessMax; /**< maximum number of sessions permitted */
};
-/* macros for quick member access */
-#warning "do we need the macros?"
-#define relpTcpGetNumSocks(pThis) ((pThis)->socks[0])
-#define relpTcpGetLstnSock(pThis, i) ((pThis)->socks[i])
-#define relpTcpGetSock(pThis) ((pThis)->sock)
-
/* interfaces */
BEGINinterface(netstrm) /* name must also be changed in ENDinterface macro! */
-//??relpRetVal relpTcpAbortDestruct(relpTcp_t **ppThis);
rsRetVal (*Construct)(netstrm_t **ppThis);
rsRetVal (*ConstructFinalize)(netstrm_t __attribute__((unused)) *pThis);
rsRetVal (*Destruct)(netstrm_t **ppThis);
+ rsRetVal (*AbortDestruct)(netstrm_t **ppThis);
rsRetVal (*LstnInit)(netstrm_t *pThis, unsigned char *pLstnPort);
rsRetVal (*AcceptConnReq)(netstrm_t **ppThis, int sock);
rsRetVal (*Rcv)(netstrm_t *pThis, uchar *pRcvBuf, ssize_t *pLenBuf);