aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev.h
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-02-01 11:35:54 -0500
committerJesse Gross <jesse@nicira.com>2010-02-01 12:00:49 -0500
commit77909859b05f0d2466069883306e8d75d280bbe7 (patch)
tree79c036827af075dade08576a1a7848c4afeb47e4 /lib/netdev.h
parent5c414a2ed8c21762292776ecee294a11e0b5468b (diff)
netdev: Allow providers to be managed at runtime.
The list of netdev providers was previously staticly defined at compile time. This allows new providers to be added and removed at runtime.
Diffstat (limited to 'lib/netdev.h')
-rw-r--r--lib/netdev.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/netdev.h b/lib/netdev.h
index 3f6d5eab..e0cdd82f 100644
--- a/lib/netdev.h
+++ b/lib/netdev.h
@@ -86,11 +86,15 @@ struct netdev_options {
};
struct netdev;
+struct netdev_class;
-int netdev_initialize(void);
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);
+
int netdev_open(struct netdev_options *, struct netdev **);
int netdev_open_default(const char *name, struct netdev **);
int netdev_reconfigure(struct netdev *, const struct shash *args);