X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Frtnetlink-link.h;h=1e52a7dc3822c68598b6ed620ba3076965c5d9d2;hb=c0896bdd20b2b4ac7f1183835e2d8c99d6bb29fe;hp=9248b0ad4c3da45c5e5f2175c86ba8bde9ce6ee7;hpb=21d6e22eeec05a1c382178dc2eb840afe3b9cca6;p=openvswitch diff --git a/lib/rtnetlink-link.h b/lib/rtnetlink-link.h index 9248b0ad..1e52a7dc 100644 --- a/lib/rtnetlink-link.h +++ b/lib/rtnetlink-link.h @@ -17,7 +17,10 @@ #ifndef RTNETLINK_LINK_H #define RTNETLINK_LINK_H 1 -struct rtnetlink_notifier; +#include + +struct ofpbuf; +struct nln_notifier; /* These functions are Linux specific, so they should be used directly only by * Linux-specific code. */ @@ -45,9 +48,11 @@ typedef void rtnetlink_link_notify_func(const struct rtnetlink_link_change *change, void *aux); -int rtnetlink_link_notifier_register(struct rtnetlink_notifier *, +bool rtnetlink_link_parse(struct ofpbuf *buf, + struct rtnetlink_link_change *change); +int rtnetlink_link_notifier_register(struct nln_notifier*, rtnetlink_link_notify_func *, void *aux); -void rtnetlink_link_notifier_unregister(struct rtnetlink_notifier *); +void rtnetlink_link_notifier_unregister(struct nln_notifier *); void rtnetlink_link_notifier_run(void); void rtnetlink_link_notifier_wait(void); #endif /* rtnetlink-link.h */