summaryrefslogtreecommitdiff
path: root/include/openvswitch/ofp-switch.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-02-16 14:03:51 -0800
committerBen Pfaff <blp@ovn.org>2018-03-14 11:41:22 -0700
commitdfc77282c52f324c19a6819372c2ec17675bc7ce (patch)
tree9d74343cd057c7c90babead22c2b75f9726fb307 /include/openvswitch/ofp-switch.h
parent11b1e59f3af06a3ab02496abbb65564a077744a7 (diff)
downloadopenvswitch-dfc77282c52f324c19a6819372c2ec17675bc7ce.tar.gz
ofp-print: Move much of the printing code into message-specific files.
Until now, the ofp-print code has had a lot of logic specific to individual messages. This code is better put with the other code specific to those messages, so this commit starts to migrate it. There is more work of a similar type to do, but this is a reasonable start. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'include/openvswitch/ofp-switch.h')
-rw-r--r--include/openvswitch/ofp-switch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openvswitch/ofp-switch.h b/include/openvswitch/ofp-switch.h
index 737cd61e7..6f75a2533 100644
--- a/include/openvswitch/ofp-switch.h
+++ b/include/openvswitch/ofp-switch.h
@@ -71,6 +71,8 @@ struct ofpbuf *ofputil_encode_switch_features(
ovs_be32 xid);
void ofputil_put_switch_features_port(const struct ofputil_phy_port *,
struct ofpbuf *);
+void ofputil_switch_features_format(struct ds *,
+ const struct ofputil_switch_features *);
bool ofputil_switch_features_has_ports(struct ofpbuf *b);
enum ofputil_frag_handling {
@@ -108,6 +110,9 @@ enum ofperr ofputil_decode_set_config(const struct ofp_header *,
struct ofpbuf *ofputil_encode_set_config(
const struct ofputil_switch_config *, enum ofp_version);
+void ofputil_switch_config_format(struct ds *,
+ const struct ofputil_switch_config *);
+
#ifdef __cplusplus
}
#endif