"autoreply" flag: autogenerate standard xxx_reply_t messages
[vpp.git] / src / examples / sample-plugin / sample / sample.api
index f99cdb3..d565c0b 100644 (file)
@@ -16,7 +16,7 @@
 
 /* Define a simple binary API to control the feature */
 
-define sample_macswap_enable_disable {
+autoreply define sample_macswap_enable_disable {
     /* Client identifier, set from api_main.my_client_index */
     u32 client_index;
 
@@ -29,11 +29,3 @@ define sample_macswap_enable_disable {
     /* Interface handle */
     u32 sw_if_index;
 };
-
-define sample_macswap_enable_disable_reply {
-    /* From the request */
-    u32 context;
-
-    /* Return value, zero means all OK */
-    i32 retval;
-};