Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
}
}
-/* Returns true if a network device named 'name' is currently opened,
- * otherwise false. */
-bool
-netdev_is_open(const char *name)
-{
- return !!shash_find_data(&netdev_dev_shash, name);
-}
-
/* Parses 'netdev_name_', which is of the form [type@]name into its component
* pieces. 'name' and 'type' must be freed by the caller. */
void
int netdev_open(const char *name, const char *type, struct netdev **);
void netdev_close(struct netdev *);
-bool netdev_is_open(const char *name);
-
void netdev_parse_name(const char *netdev_name, char **name, char **type);
/* Options. */