aboutsummaryrefslogtreecommitdiffstats
path: root/src/ioops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ioops.h')
-rw-r--r--src/ioops.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ioops.h b/src/ioops.h
index 642ea79c7..6b23b0940 100644
--- a/src/ioops.h
+++ b/src/ioops.h
@@ -19,8 +19,10 @@
#ifndef IOOPS_H
#define IOOPS_H
+#include "../config.h"
#include "os_compat.h"
+#ifdef HAVE_ZEROCONF
struct ioOps {
struct ioOps *prev, *next;
@@ -49,4 +51,18 @@ void registerIO(struct ioOps *ops);
/* Call this to deregister your io operation handler struct */
void deregisterIO(struct ioOps *ops);
+/* Add fds for all registered IO handlers */
+void registered_IO_add_fds(int *fdmax,
+ fd_set * rfds, fd_set * wfds, fd_set * efds);
+
+/* Consume fds for all registered IO handlers */
+void registered_IO_consume_fds(int *selret,
+ fd_set * rfds, fd_set * wfds, fd_set * efds);
+#else /* ! HAVE_ZEROCONF */
+
+#define registered_IO_add_fds(fdmax,rfds,wfds,efds)
+#define registered_IO_consume_fds(selret,rfds,wfds,efds)
+
+#endif /* HAVE_ZEROCONF */
+
#endif