summaryrefslogtreecommitdiff
path: root/lib/vconn-provider.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@noironetworks.com>2014-12-15 14:10:38 +0100
committerThomas Graf <tgraf@noironetworks.com>2014-12-15 14:15:22 +0100
commit4a1f523f2d760e9e5751bc93519d1b70c5492b56 (patch)
treea765e6463f6272c84680ab49db59752aa3e04490 /lib/vconn-provider.h
parente6211adce42c28453e0004c7a3e342a3d52bb97d (diff)
downloadopenvswitch-4a1f523f2d760e9e5751bc93519d1b70c5492b56.tar.gz
lib: Move vconn.h to <openvswitch/vconn.h>
Also moves definitions for struct vconn and pvconn to the public header. The provider interface is kept private. Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/vconn-provider.h')
-rw-r--r--lib/vconn-provider.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/lib/vconn-provider.h b/lib/vconn-provider.h
index 0225a58d6..7a41ee62e 100644
--- a/lib/vconn-provider.h
+++ b/lib/vconn-provider.h
@@ -20,29 +20,12 @@
/* Provider interface to vconns, which provide a virtual connection to an
* OpenFlow device. */
-#include "vconn.h"
+#include "openvswitch/vconn.h"
#include "util.h"
#include "openflow/openflow-common.h"
/* Active virtual connection to an OpenFlow device. */
-/* Active virtual connection to an OpenFlow device.
- *
- * This structure should be treated as opaque by vconn implementations. */
-struct vconn {
- const struct vconn_class *class;
- int state;
- int error;
-
- /* OpenFlow versions. */
- uint32_t allowed_versions; /* Bitmap of versions we will accept. */
- uint32_t peer_versions; /* Peer's bitmap of versions it will accept. */
- enum ofp_version version; /* Negotiated version (or 0). */
- bool recv_any_version; /* True to receive a message of any version. */
-
- char *name;
-};
-
void vconn_init(struct vconn *, const struct vconn_class *, int connect_status,
const char *name, uint32_t allowed_versions);
void vconn_free_data(struct vconn *vconn);
@@ -130,14 +113,7 @@ struct vconn_class {
void (*wait)(struct vconn *vconn, enum vconn_wait_type type);
};
-/* Passive virtual connection to an OpenFlow device.
- *
- * This structure should be treated as opaque by vconn implementations. */
-struct pvconn {
- const struct pvconn_class *class;
- char *name;
- uint32_t allowed_versions;
-};
+/* Passive virtual connection to an OpenFlow device. */
void pvconn_init(struct pvconn *pvconn, const struct pvconn_class *class,
const char *name, uint32_t allowed_versions);