X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev.h;h=a9081eb7bc5d10bb00e4dac570db26e1eac7faaa;hb=refs%2Fheads%2Forig-parallel;hp=cd5c8c3001cd68ffabec07c3c69855f4de98168d;hpb=d59051362fa8ac4369f1be69ac942a52c9a424b9;p=sliver-openvswitch.git diff --git a/lib/netdev.h b/lib/netdev.h index cd5c8c300..a9081eb7b 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -21,6 +21,10 @@ #include #include +#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 *);