diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-06-06 14:08:48 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-06-06 14:08:48 +0200 |
commit | c4522fe10317b1729a0820dc880afc78c663f64d (patch) | |
tree | 3c370f285b3d00feb5857ca155f7e46ae8765f7f /examples/bin_api/memif.api.json | |
parent | 0ff02b6b1f0757f5e4c011457757bd18d0a60f01 (diff) |
Add various generator improvements
- generate service implementation for modules
- generate conversion maps and String() method for enums
- generate module name and version as constants
- rename Union_data field to XXX_UnionData for consistency
- generate constant GoVppAPIPackageIsVersionN for checking compatibility with API
- add example for using service clients
- add some documentation to socketclient adapter
- cleanup gen.go file used for generating binapi
- regenerate binapi with latest VPP release (19.04.1)
- change global variables Messages into a function AllMessages
Change-Id: Id1ef97764570759eaa3e5a4dc14ecda7a168ee39
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples/bin_api/memif.api.json')
-rw-r--r-- | examples/bin_api/memif.api.json | 318 |
1 files changed, 0 insertions, 318 deletions
diff --git a/examples/bin_api/memif.api.json b/examples/bin_api/memif.api.json deleted file mode 100644 index 4399f1c..0000000 --- a/examples/bin_api/memif.api.json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "messages": [ - [ - "memif_socket_filename_add_del", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "client_index" - ], - [ - "u32", - "context" - ], - [ - "u8", - "is_add" - ], - [ - "u32", - "socket_id" - ], - [ - "u8", - "socket_filename", - 128 - ], - { - "crc": "0x30e3929d" - } - ], - [ - "memif_socket_filename_add_del_reply", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "context" - ], - [ - "i32", - "retval" - ], - { - "crc": "0xe8d4e804" - } - ], - [ - "memif_create", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "client_index" - ], - [ - "u32", - "context" - ], - [ - "u8", - "role" - ], - [ - "u8", - "mode" - ], - [ - "u8", - "rx_queues" - ], - [ - "u8", - "tx_queues" - ], - [ - "u32", - "id" - ], - [ - "u32", - "socket_id" - ], - [ - "u8", - "secret", - 24 - ], - [ - "u32", - "ring_size" - ], - [ - "u16", - "buffer_size" - ], - [ - "u8", - "hw_addr", - 6 - ], - { - "crc": "0x6597cdb2" - } - ], - [ - "memif_create_reply", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "context" - ], - [ - "i32", - "retval" - ], - [ - "u32", - "sw_if_index" - ], - { - "crc": "0xfda5941f" - } - ], - [ - "memif_delete", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "client_index" - ], - [ - "u32", - "context" - ], - [ - "u32", - "sw_if_index" - ], - { - "crc": "0x529cb13f" - } - ], - [ - "memif_delete_reply", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "context" - ], - [ - "i32", - "retval" - ], - { - "crc": "0xe8d4e804" - } - ], - [ - "memif_socket_filename_details", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "context" - ], - [ - "u32", - "socket_id" - ], - [ - "u8", - "socket_filename", - 128 - ], - { - "crc": "0xe347e32f" - } - ], - [ - "memif_socket_filename_dump", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "client_index" - ], - [ - "u32", - "context" - ], - { - "crc": "0x51077d14" - } - ], - [ - "memif_details", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "context" - ], - [ - "u32", - "sw_if_index" - ], - [ - "u8", - "if_name", - 64 - ], - [ - "u8", - "hw_addr", - 6 - ], - [ - "u32", - "id" - ], - [ - "u8", - "role" - ], - [ - "u8", - "mode" - ], - [ - "u32", - "socket_id" - ], - [ - "u32", - "ring_size" - ], - [ - "u16", - "buffer_size" - ], - [ - "u8", - "admin_up_down" - ], - [ - "u8", - "link_up_down" - ], - { - "crc": "0x4f5a3397" - } - ], - [ - "memif_dump", - [ - "u16", - "_vl_msg_id" - ], - [ - "u32", - "client_index" - ], - [ - "u32", - "context" - ], - { - "crc": "0x51077d14" - } - ] - ], - "vl_api_version": "0x31b42e17", - "unions": [], - "services": { - "memif_delete": { - "reply": "memif_delete_reply" - }, - "memif_socket_filename_add_del": { - "reply": "memif_socket_filename_add_del_reply" - }, - "memif_create": { - "reply": "memif_create_reply" - }, - "memif_socket_filename_dump": { - "reply": "memif_socket_filename_details", - "stream": true - }, - "memif_dump": { - "reply": "memif_details", - "stream": true - } - }, - "enums": [], - "types": [], - "aliases": {} -} |