summaryrefslogtreecommitdiffstats
path: root/runtime/nsd.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-18 14:16:08 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-18 14:16:08 +0100
commitc82f2781d2ed372e918ea5b5529ead57ff95fc2a (patch)
treedb727881c9d83c8bcb8a5cb6f95dfd13517420ee /runtime/nsd.h
parent7d20954653fa0f8999822554dcb048ee60dbbe58 (diff)
downloadrsyslog-c82f2781d2ed372e918ea5b5529ead57ff95fc2a.tar.gz
rsyslog-c82f2781d2ed372e918ea5b5529ead57ff95fc2a.tar.xz
rsyslog-c82f2781d2ed372e918ea5b5529ead57ff95fc2a.zip
added skeleton for supporting epoll() API in netstream subsystem
Diffstat (limited to 'runtime/nsd.h')
-rw-r--r--runtime/nsd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/nsd.h b/runtime/nsd.h
index 8668c934..bcd5a926 100644
--- a/runtime/nsd.h
+++ b/runtime/nsd.h
@@ -87,4 +87,13 @@ BEGINinterface(nsdsel) /* name must also be changed in ENDinterface macro! */
ENDinterface(nsdsel)
#define nsdselCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+/* interface for the epoll call */
+BEGINinterface(nsdpoll) /* name must also be changed in ENDinterface macro! */
+ rsRetVal (*Construct)(nsdpoll_t **ppThis);
+ rsRetVal (*Destruct)(nsdpoll_t **ppThis);
+ rsRetVal (*Ctl)(nsdpoll_t *pThis, int fd, int op, epoll_event_t *event);
+ rsRetVal (*Wait)(nsdpoll_t *pThis, epoll_event_t *events, int maxevents, int timeout);
+ENDinterface(nsdpoll)
+#define nsdpollCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+
#endif /* #ifndef INCLUDED_NSD_H */