summaryrefslogtreecommitdiff
path: root/include/openvswitch/ofp-connection.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-06-15 17:06:56 -0700
committerBen Pfaff <blp@ovn.org>2018-06-18 15:25:44 -0700
commitfe2c69f49cb3cb0ab2cc2ae84b364970f5e77392 (patch)
treed2f803e322099a4d8e754b3d36ce43cc4c94007d /include/openvswitch/ofp-connection.h
parent16ee87263e31dc6520937a0dcefd676f3582d8ee (diff)
downloadopenvswitch-fe2c69f49cb3cb0ab2cc2ae84b364970f5e77392.tar.gz
ofp-print: Move significant formatting code into more specific .c files.
Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'include/openvswitch/ofp-connection.h')
-rw-r--r--include/openvswitch/ofp-connection.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/openvswitch/ofp-connection.h b/include/openvswitch/ofp-connection.h
index 540ce9ed9..5fb143157 100644
--- a/include/openvswitch/ofp-connection.h
+++ b/include/openvswitch/ofp-connection.h
@@ -31,22 +31,26 @@ struct ofputil_role_request {
uint64_t generation_id;
};
+enum ofperr ofputil_decode_role_message(const struct ofp_header *,
+ struct ofputil_role_request *);
+void ofputil_format_role_message(struct ds *,
+ const struct ofputil_role_request *);
+struct ofpbuf *ofputil_encode_role_reply(const struct ofp_header *,
+ const struct ofputil_role_request *);
+
+/* Abstract OFPT_ROLE_STATUS. */
struct ofputil_role_status {
enum ofp12_controller_role role;
enum ofp14_controller_role_reason reason;
uint64_t generation_id;
};
-enum ofperr ofputil_decode_role_message(const struct ofp_header *,
- struct ofputil_role_request *);
-struct ofpbuf *ofputil_encode_role_reply(const struct ofp_header *,
- const struct ofputil_role_request *);
-
struct ofpbuf *ofputil_encode_role_status(const struct ofputil_role_status *,
enum ofputil_protocol);
-
enum ofperr ofputil_decode_role_status(const struct ofp_header *,
struct ofputil_role_status *);
+void ofputil_format_role_status(struct ds *,
+ const struct ofputil_role_status *);
enum ofputil_async_msg_type {
/* Standard asynchronous messages. */
@@ -79,6 +83,8 @@ struct ofpbuf *ofputil_encode_get_async_reply(
const struct ofp_header *, const struct ofputil_async_cfg *);
struct ofpbuf *ofputil_encode_set_async_config(
const struct ofputil_async_cfg *, uint32_t oams, enum ofp_version);
+void ofputil_format_set_async_config(struct ds *,
+ const struct ofputil_async_cfg *);
struct ofputil_async_cfg ofputil_async_cfg_default(enum ofp_version);