Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
api: autogenerate api trace print/endian
[vpp.git]
/
src
/
examples
/
sample-plugin
/
sample
/
sample.api
diff --git
a/src/examples/sample-plugin/sample/sample.api
b/src/examples/sample-plugin/sample/sample.api
index
f3604b6
..
404a837
100644
(file)
--- a/
src/examples/sample-plugin/sample/sample.api
+++ b/
src/examples/sample-plugin/sample/sample.api
@@
-16,18
+16,19
@@
/* Define a simple binary API to control the feature */
/* Define a simple binary API to control the feature */
-vl_api_version 0.1.0
+option version = "0.1.0";
+import "vnet/interface_types.api";
autoreply define sample_macswap_enable_disable {
autoreply define sample_macswap_enable_disable {
-
/* Client identifier, set from api_main.my_client_index */
-
u32 client_index;
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
-
/* Arbitrary context, so client can match reply to request */
-
u32 context;
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
-
/* Enable / disable the feature */
-
u8
enable_disable;
+ /* Enable / disable the feature */
+
bool
enable_disable;
-
/* Interface handle */
-
u32
sw_if_index;
+ /* Interface handle */
+
vl_api_interface_index_t
sw_if_index;
};
};