diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2018-12-13 10:21:49 +0100 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2018-12-13 10:21:49 +0100 |
commit | 868b541e296dc47748ad03b8f0174c828d996529 (patch) | |
tree | a43650ea7d9c96434d536e557177b38c5f84bd34 /examples/bin_api/vpe.api.json | |
parent | 1768c495416997c7a6769c6a92b33b37c89eed25 (diff) |
Add support for aliases and boolean type
- aliases are now generated as new types or arrays (if length > 0)
- bool is recognized as a boolean type and generated as Go bool
- comment with original JSON is now prepended for each object type
- interface Services is now generated at the top of the file to provide
overview of what RPC services does the current module consists of
- dump services now correctly return slice of the particular details type
Change-Id: I788babc1c0f2de33e0febd87e5b200d54065b244
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples/bin_api/vpe.api.json')
-rw-r--r-- | examples/bin_api/vpe.api.json | 91 |
1 files changed, 89 insertions, 2 deletions
diff --git a/examples/bin_api/vpe.api.json b/examples/bin_api/vpe.api.json index 9f973af..edefd20 100644 --- a/examples/bin_api/vpe.api.json +++ b/examples/bin_api/vpe.api.json @@ -296,6 +296,52 @@ } ], [ + "show_threads", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + { + "crc": "0x51077d14" + } + ], + [ + "show_threads_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + [ + "u32", + "count" + ], + [ + "vl_api_thread_data_t", + "thread_data", + 0, + "count" + ], + { + "crc": "0x6942fb35" + } + ], + [ "get_node_graph", [ "u16", @@ -386,7 +432,7 @@ } ] ], - "vl_api_version": "0x9a1baa50", + "vl_api_version": "0x3ce489e", "unions": [], "services": { "cli_inband": { @@ -407,6 +453,9 @@ "get_next_index": { "reply": "get_next_index_reply" }, + "show_threads": { + "reply": "show_threads_reply" + }, "add_node_next": { "reply": "add_node_next_reply" }, @@ -415,5 +464,43 @@ } }, "enums": [], - "types": [] + "types": [ + [ + "thread_data", + [ + "u32", + "id" + ], + [ + "u8", + "name", + 64 + ], + [ + "u8", + "type", + 64 + ], + [ + "u32", + "pid" + ], + [ + "u32", + "cpu_id" + ], + [ + "u32", + "core" + ], + [ + "u32", + "cpu_socket" + ], + { + "crc": "0x0f57094e" + } + ] + ], + "aliases": {} } |