summaryrefslogtreecommitdiffstats
path: root/tcpsrv.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-25 11:05:18 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-25 11:05:18 +0200
commitfc0712f40ae63aa54080683c7ee5ae52055c009d (patch)
treeb236e751acbe262a1f334221d523a2f121a3edff /tcpsrv.h
parente89ae2e7b18ba935d7eea4c44f3ec15ff6dcfb31 (diff)
parenteb1615068c6a704287eda732d287280df4cc4c44 (diff)
downloadrsyslog-fc0712f40ae63aa54080683c7ee5ae52055c009d.tar.gz
rsyslog-fc0712f40ae63aa54080683c7ee5ae52055c009d.tar.bz2
rsyslog-fc0712f40ae63aa54080683c7ee5ae52055c009d.zip
Merge branch 'master' into ultra-reliable
Conflicts: tests/Makefile.am tests/diskqueue.sh
Diffstat (limited to 'tcpsrv.h')
-rw-r--r--tcpsrv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tcpsrv.h b/tcpsrv.h
index 0f7dd6c6..2d174ce0 100644
--- a/tcpsrv.h
+++ b/tcpsrv.h
@@ -71,6 +71,7 @@ struct tcpsrv_s {
rsRetVal (*pOnSessAccept)(tcpsrv_t *, tcps_sess_t*);
rsRetVal (*OnSessConstructFinalize)(void*);
rsRetVal (*pOnSessDestruct)(void*);
+ rsRetVal (*OnMsgReceive)(tcps_sess_t *, uchar *pszMsg, int iLenMsg); /* submit message callback */
};
@@ -104,8 +105,10 @@ BEGINinterface(tcpsrv) /* name must also be changed in ENDinterface macro! */
rsRetVal (*SetCBOnSessConstructFinalize)(tcpsrv_t*, rsRetVal (*) (void*));
/* added v5 */
rsRetVal (*SetSessMax)(tcpsrv_t *pThis, int iMaxSess); /* 2009-04-09 */
+ /* added v6 */
+ rsRetVal (*SetOnMsgReceive)(tcpsrv_t *pThis, rsRetVal (*OnMsgReceive)(tcps_sess_t*, uchar*, int)); /* 2009-05-24 */
ENDinterface(tcpsrv)
-#define tcpsrvCURR_IF_VERSION 5 /* increment whenever you change the interface structure! */
+#define tcpsrvCURR_IF_VERSION 6 /* increment whenever you change the interface structure! */
/* change for v4:
* - SetAddtlFrameDelim() added -- rgerhards, 2008-12-10
* - SetInputName() added -- rgerhards, 2008-12-10