Catalli's threaded switch
[sliver-openvswitch.git] / lib / netdev.h
index cd5c8c3..a9081eb 100644 (file)
 #include <stddef.h>
 #include <stdint.h>
 
+#ifdef THREADED
+#include "dispatch.h"
+#endif
+
 #ifdef  __cplusplus
 extern "C" {
 #endif
@@ -117,6 +121,10 @@ int netdev_get_ifindex(const struct netdev *);
 /* Packet send and receive. */
 int netdev_recv(struct netdev *, struct ofpbuf *);
 void netdev_recv_wait(struct netdev *);
+#ifdef THREADED
+int netdev_dispatch(struct netdev *, int, pkt_handler, u_char *);
+int netdev_get_fd(struct netdev *);
+#endif
 int netdev_drain(struct netdev *);
 
 int netdev_send(struct netdev *, const struct ofpbuf *);