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>
This commit is contained in:
Matthew Smith
2022-07-18 13:19:26 +00:00
parent 574d99439d
commit 99e3b8b84e

View File

@ -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 {