diff options
Diffstat (limited to 'src/plugins/ct6/ct6.api')
-rw-r--r-- | src/plugins/ct6/ct6.api | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/ct6/ct6.api b/src/plugins/ct6/ct6.api new file mode 100644 index 00000000000..67af42fd9fe --- /dev/null +++ b/src/plugins/ct6/ct6.api @@ -0,0 +1,27 @@ + +/* Define a simple enable-disable binary API to control the feature */ + +define ct6_enable_disable { + /* Client identifier, set from api_main.my_client_index */ + u32 client_index; + + /* Arbitrary context, so client can match reply to request */ + u32 context; + + /* Enable / disable the feature */ + u8 enable_disable; + + /* Inside or outside interface */ + u8 is_inside; + + /* Interface handle */ + u32 sw_if_index; +}; + +define ct6_enable_disable_reply { + /* From the request */ + u32 context; + + /* Return value, zero means all OK */ + i32 retval; +}; |