aboutsummaryrefslogtreecommitdiff
path: root/lib/vconn.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-01-06 14:27:46 -0800
committerBen Pfaff <blp@nicira.com>2010-01-06 14:27:46 -0800
commit60cb3eb8b296e2aebbda6ccc161e99ad2bc7ca4a (patch)
tree295738314c8ac07a6908ec1b55e47063e1101c32 /lib/vconn.h
parent539e96f62300e4afab00e5906a28e3b89301d62e (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.h3
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 **);