linux-cp: API downgrade due to namespace keyword 98/36698/2
authorMatthew Smith <mgsmith@netgate.com>
Mon, 18 Jul 2022 13:19:26 +0000 (13:19 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Tue, 19 Jul 2022 18:23:28 +0000 (18:23 +0000)
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>
src/plugins/linux-cp/lcp.api

index 319dd3e..caeb31e 100644 (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 {