X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetlink-notifier.h;h=26aa671e23914f1ec4603e2af2e3f502a92d2bc3;hb=524e1b1c3dbf4f88c00c4b6c2544a334d48dab0a;hp=e3dacef0ad126e56edb7c0d84e502fb4af1d62d4;hpb=18a237816419e6f88ab0383b43d8060914d26a9a;p=sliver-openvswitch.git diff --git a/lib/netlink-notifier.h b/lib/netlink-notifier.h index e3dacef0a..26aa671e2 100644 --- a/lib/netlink-notifier.h +++ b/lib/netlink-notifier.h @@ -23,6 +23,8 @@ #include "list.h" struct nln; +struct nln_notifier; + struct nlattr; struct ofpbuf; @@ -37,18 +39,12 @@ typedef void nln_notify_func(const void *change, void *aux); * should be parsed into 'change' as specified in nln_create(). */ typedef bool nln_parse_func(struct ofpbuf *buf, void *change); -struct nln_notifier { - struct list node; - nln_notify_func *cb; - void *aux; -}; - struct nln *nln_create(int protocol, int multicast_group, nln_parse_func *, void *change); void nln_destroy(struct nln *); -int nln_notifier_register(struct nln *, struct nln_notifier *, - nln_notify_func *, void *aux); -void nln_notifier_unregister(struct nln *, struct nln_notifier *); +struct nln_notifier *nln_notifier_create(struct nln *, nln_notify_func *, + void *aux); +void nln_notifier_destroy(struct nln_notifier *); void nln_run(struct nln *); void nln_wait(struct nln *); #endif /* netlink-notifier.h */