diff options
author | Ben Pfaff <blp@nicira.com> | 2011-05-06 15:04:29 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-05-11 12:26:07 -0700 |
commit | 640e1b20776f40633d33a5c2c2bba3e79eda0b64 (patch) | |
tree | 1502412c5fbd9e20c4193122a00ffc50901fd290 /lib/dpif.h | |
parent | fa066f015f716c74315fed1a08912d003dfe3f8c (diff) |
dpif: Improve abstraction by making 'run' and 'wait' functions per-dpif.
Until now, the dp_run() and dp_wait() functions had to be called at the top
level of the program because they applied to every open dpif. By replacing
them by functions that take a specific dpif as an argument, we can call
them only from ofproto, which is currently the correct layer to deal with
dpifs.
Diffstat (limited to 'lib/dpif.h')
-rw-r--r-- | lib/dpif.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,9 +37,6 @@ struct ofpbuf; struct sset; struct dpif_class; -void dp_run(void); -void dp_wait(void); - int dp_register_provider(const struct dpif_class *); int dp_unregister_provider(const char *type); void dp_enumerate_types(struct sset *types); @@ -52,6 +49,9 @@ int dpif_create(const char *name, const char *type, struct dpif **); int dpif_create_and_open(const char *name, const char *type, struct dpif **); void dpif_close(struct dpif *); +void dpif_run(struct dpif *); +void dpif_wait(struct dpif *); + const char *dpif_name(const struct dpif *); const char *dpif_base_name(const struct dpif *); |