aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-provider.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-09-24 10:54:42 -0700
committerBen Pfaff <blp@nicira.com>2010-10-06 13:49:07 -0700
commitb8dcf5e9c554e2c5fc35a68a086d304fc0cea59a (patch)
treec681ff46e6848bda0f07d46586664a11af861092 /lib/netdev-provider.h
parent6fcfff1b116eb59999cc686f37f08b8f9af27996 (diff)
netdev: Pass class structure, instead of type, to "create" function.
This opens up the possibility of storing private data at a relative offset to the class structure, instead of having to keep a separate table.
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r--lib/netdev-provider.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
index c0ed4ef6..8502da6b 100644
--- a/lib/netdev-provider.h
+++ b/lib/netdev-provider.h
@@ -129,11 +129,11 @@ struct netdev_class {
* to be called. May be null if nothing is needed here. */
void (*wait)(void);
- /* Attempts to create a network device of 'type' with 'name'.
- * 'type' corresponds to the 'type' field used in the netdev_class
- * structure. On success sets 'netdev_devp' to the newly created device. */
- int (*create)(const char *name, const char *type, const struct shash *args,
- struct netdev_dev **netdev_devp);
+ /* Attempts to create a network device named 'name' with initial 'args' in
+ * 'netdev_class'. On success sets 'netdev_devp' to the newly created
+ * device. */
+ int (*create)(const struct netdev_class *netdev_class, const char *name,
+ const struct shash *args, struct netdev_dev **netdev_devp);
/* Destroys 'netdev_dev'.
*