diff options
author | Ben Pfaff <blp@nicira.com> | 2010-12-28 23:03:58 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-01-27 09:26:06 -0800 |
commit | 9d77f19064597afe0c2e5af73c84df57b8e9b2f5 (patch) | |
tree | 4531977942df5c3963228d7883cc45cc37ef085b /lib/netdev-provider.h | |
parent | c56d226f8d3fc7a68716be87e3d651be604213fa (diff) |
netdev: Use shash and smap functions instead of inlined substitutes.
This simplifies the code and makes it easier to extend in upcoming commits.
Reviewed by Justin Pettit.
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r-- | lib/netdev-provider.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 58d51d7b..93b6ab87 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -29,11 +29,6 @@ extern "C" { #endif -struct arg { - char *key; - char *value; -}; - /* A network device (e.g. an Ethernet device). * * This structure should be treated as opaque by network device @@ -44,8 +39,7 @@ struct netdev_dev { this device. */ int ref_cnt; /* Times this devices was opened. */ struct shash_node *node; /* Pointer to element in global map. */ - struct arg *args; /* Argument list from last config. */ - int n_args; /* Number of arguments in 'args'. */ + struct shash args; /* Argument list from last config. */ }; void netdev_dev_init(struct netdev_dev *, const char *name, |