X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetdev.h;h=6635a55a3f5e5e2a421a61d0e88e5f16fbe0ad83;hb=6f20002c1201c1fc78fc7cedb49b103d8afe9da6;hp=cd5c8c3001cd68ffabec07c3c69855f4de98168d;hpb=c1c9c9c4b636ab2acf2f75024c282a9a497ca9a9;p=openvswitch diff --git a/lib/netdev.h b/lib/netdev.h index cd5c8c30..6635a55a 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -93,8 +93,6 @@ struct netdev_class; void netdev_run(void); void netdev_wait(void); -int netdev_register_provider(const struct netdev_class *); -int netdev_unregister_provider(const char *type); void netdev_enumerate_types(struct svec *types); /* Open and close. */ @@ -127,7 +125,7 @@ int netdev_set_etheraddr(struct netdev *, const uint8_t mac[6]); int netdev_get_etheraddr(const struct netdev *, uint8_t mac[6]); /* PHY interface. */ -int netdev_get_carrier(const struct netdev *, bool *carrier); +bool netdev_get_carrier(const struct netdev *); int netdev_get_features(struct netdev *, uint32_t *current, uint32_t *advertised, uint32_t *supported, uint32_t *peer);