diff options
author | Ben Pfaff <blp@nicira.com> | 2010-01-06 14:27:46 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-01-06 14:27:46 -0800 |
commit | 60cb3eb8b296e2aebbda6ccc161e99ad2bc7ca4a (patch) | |
tree | 295738314c8ac07a6908ec1b55e47063e1101c32 /lib/vconn.h | |
parent | 539e96f62300e4afab00e5906a28e3b89301d62e (diff) |
vconn: Convert vconn code to modern OVS structure.
The vconn code is a relative fossil as OVS code goes. It was written
before we had really figured how code should fit together. Part of that
history is that it used poll_fd_callback() to register callbacks without
the assistance of other code. That isn't how the rest of OVS works now;
this code is the only remaining user of that function.
To make it more like the rest of the system, this code gets rid of the use
of poll_fd_callback(). It also adds vconn_run() and vconn_run_wait()
functions and calls to them from the places where they are now required.
Diffstat (limited to 'lib/vconn.h')
-rw-r--r-- | lib/vconn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vconn.h b/lib/vconn.h index 0c13744c..9bd235ae 100644 --- a/lib/vconn.h +++ b/lib/vconn.h @@ -48,6 +48,9 @@ int vconn_send(struct vconn *, struct ofpbuf *); int vconn_recv_xid(struct vconn *, uint32_t xid, struct ofpbuf **); int vconn_transact(struct vconn *, struct ofpbuf *, struct ofpbuf **); +void vconn_run(struct vconn *); +void vconn_run_wait(struct vconn *); + int vconn_open_block(const char *name, int min_version, struct vconn **); int vconn_send_block(struct vconn *, struct ofpbuf *); int vconn_recv_block(struct vconn *, struct ofpbuf **); |