summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2022-07-18 13:19:26 +0000
committerMatthew Smith <mgsmith@netgate.com>2022-07-19 18:23:28 +0000
commit99e3b8b84e665616d5daa21d3f08c9c8358b8da4 (patch)
tree581c2ef3e333f8e42955d2e1a363ac4b5966c5f8
parent574d99439d34cea6bf01619fca32493249f4dc3a (diff)
linux-cp: API downgrade due to namespace keyword
Type: fix A user had trouble compiling C++ code to work with the linux-cp APIs because some messages contain a field called namespace, which is a reserved word for C++. We wish to rename those fields so the messages which are affected are being set to in_progress. Change-Id: I3bd1dc898c146a9980161a562b2b453313bb58fd Signed-off-by: Matthew Smith <mgsmith@netgate.com>
-rw-r--r--src/plugins/linux-cp/lcp.api5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/linux-cp/lcp.api b/src/plugins/linux-cp/lcp.api
index 319dd3e6483..caeb31e273d 100644
--- a/src/plugins/linux-cp/lcp.api
+++ b/src/plugins/linux-cp/lcp.api
@@ -31,6 +31,7 @@ autoreply define lcp_default_ns_set
u32 client_index;
u32 context;
string namespace[32]; /* LCP_NS_LEN */
+ option in_progress;
};
/** \brief get the default Linux Control Plane namespace
@@ -52,6 +53,7 @@ define lcp_default_ns_get_reply
{
u32 context;
string namespace[32]; /* LCP_NS_LEN */
+ option in_progress;
};
enum lcp_itf_host_type : u8
@@ -78,6 +80,7 @@ autoreply autoendian define lcp_itf_pair_add_del
string host_if_name[16]; /* IFNAMSIZ */
vl_api_lcp_itf_host_type_t host_if_type;
string namespace[32]; /* LCP_NS_LEN */
+ option in_progress;
};
autoendian define lcp_itf_pair_add_del_v2
{
@@ -88,6 +91,7 @@ autoendian define lcp_itf_pair_add_del_v2
string host_if_name[16]; /* IFNAMSIZ */
vl_api_lcp_itf_host_type_t host_if_type;
string namespace[32]; /* LCP_NS_LEN */
+ option in_progress;
};
define lcp_itf_pair_add_del_v2_reply
{
@@ -132,6 +136,7 @@ autoendian define lcp_itf_pair_details
string host_if_name[16]; /* IFNAMSIZ */
vl_api_lcp_itf_host_type_t host_if_type;
string namespace[32]; /* LCP_NS_LEN */
+ option in_progress;
};
service {