Fix union data size for types with enums
[govpp.git] / examples / bin_api / memclnt.api.json
1 {
2     "messages": [
3         [
4             "memclnt_create",
5             [
6                 "u16",
7                 "_vl_msg_id"
8             ],
9             [
10                 "u32",
11                 "context"
12             ],
13             [
14                 "i32",
15                 "ctx_quota"
16             ],
17             [
18                 "u64",
19                 "input_queue"
20             ],
21             [
22                 "u8",
23                 "name",
24                 64
25             ],
26             [
27                 "u32",
28                 "api_versions",
29                 8
30             ],
31             {
32                 "crc": "0x6d33c5ea"
33             }
34         ],
35         [
36             "memclnt_create_reply",
37             [
38                 "u16",
39                 "_vl_msg_id"
40             ],
41             [
42                 "u32",
43                 "context"
44             ],
45             [
46                 "i32",
47                 "response"
48             ],
49             [
50                 "u64",
51                 "handle"
52             ],
53             [
54                 "u32",
55                 "index"
56             ],
57             [
58                 "u64",
59                 "message_table"
60             ],
61             {
62                 "crc": "0x42ec4560"
63             }
64         ],
65         [
66             "memclnt_delete",
67             [
68                 "u16",
69                 "_vl_msg_id"
70             ],
71             [
72                 "u32",
73                 "index"
74             ],
75             [
76                 "u64",
77                 "handle"
78             ],
79             [
80                 "u8",
81                 "do_cleanup"
82             ],
83             {
84                 "crc": "0x4dd351e9"
85             }
86         ],
87         [
88             "memclnt_delete_reply",
89             [
90                 "u16",
91                 "_vl_msg_id"
92             ],
93             [
94                 "i32",
95                 "response"
96             ],
97             [
98                 "u64",
99                 "handle"
100             ],
101             {
102                 "crc": "0x3d3b6312"
103             }
104         ],
105         [
106             "rx_thread_exit",
107             [
108                 "u16",
109                 "_vl_msg_id"
110             ],
111             [
112                 "u8",
113                 "dummy"
114             ],
115             {
116                 "crc": "0xc3a3a452"
117             }
118         ],
119         [
120             "memclnt_rx_thread_suspend",
121             [
122                 "u16",
123                 "_vl_msg_id"
124             ],
125             [
126                 "u8",
127                 "dummy"
128             ],
129             {
130                 "crc": "0xc3a3a452"
131             }
132         ],
133         [
134             "memclnt_read_timeout",
135             [
136                 "u16",
137                 "_vl_msg_id"
138             ],
139             [
140                 "u8",
141                 "dummy"
142             ],
143             {
144                 "crc": "0xc3a3a452"
145             }
146         ],
147         [
148             "rpc_call",
149             [
150                 "u16",
151                 "_vl_msg_id"
152             ],
153             [
154                 "u32",
155                 "client_index"
156             ],
157             [
158                 "u32",
159                 "context"
160             ],
161             [
162                 "u64",
163                 "function"
164             ],
165             [
166                 "u8",
167                 "multicast"
168             ],
169             [
170                 "u8",
171                 "need_barrier_sync"
172             ],
173             [
174                 "u8",
175                 "send_reply"
176             ],
177             [
178                 "u32",
179                 "data_len"
180             ],
181             [
182                 "u8",
183                 "data",
184                 0,
185                 "data_len"
186             ],
187             {
188                 "crc": "0x7e8a2c95"
189             }
190         ],
191         [
192             "rpc_call_reply",
193             [
194                 "u16",
195                 "_vl_msg_id"
196             ],
197             [
198                 "u32",
199                 "context"
200             ],
201             [
202                 "i32",
203                 "retval"
204             ],
205             {
206                 "crc": "0xe8d4e804"
207             }
208         ],
209         [
210             "get_first_msg_id",
211             [
212                 "u16",
213                 "_vl_msg_id"
214             ],
215             [
216                 "u32",
217                 "client_index"
218             ],
219             [
220                 "u32",
221                 "context"
222             ],
223             [
224                 "u8",
225                 "name",
226                 64
227             ],
228             {
229                 "crc": "0x0cb71b0e"
230             }
231         ],
232         [
233             "get_first_msg_id_reply",
234             [
235                 "u16",
236                 "_vl_msg_id"
237             ],
238             [
239                 "u32",
240                 "context"
241             ],
242             [
243                 "i32",
244                 "retval"
245             ],
246             [
247                 "u16",
248                 "first_msg_id"
249             ],
250             {
251                 "crc": "0x7d337472"
252             }
253         ],
254         [
255             "api_versions",
256             [
257                 "u16",
258                 "_vl_msg_id"
259             ],
260             [
261                 "u32",
262                 "client_index"
263             ],
264             [
265                 "u32",
266                 "context"
267             ],
268             {
269                 "crc": "0x51077d14"
270             }
271         ],
272         [
273             "api_versions_reply",
274             [
275                 "u16",
276                 "_vl_msg_id"
277             ],
278             [
279                 "u32",
280                 "context"
281             ],
282             [
283                 "i32",
284                 "retval"
285             ],
286             [
287                 "u32",
288                 "count"
289             ],
290             [
291                 "vl_api_module_version_t",
292                 "api_versions",
293                 0,
294                 "count"
295             ],
296             {
297                 "crc": "0x90a39195"
298             }
299         ],
300         [
301             "trace_plugin_msg_ids",
302             [
303                 "u16",
304                 "_vl_msg_id"
305             ],
306             [
307                 "u32",
308                 "client_index"
309             ],
310             [
311                 "u32",
312                 "context"
313             ],
314             [
315                 "u8",
316                 "plugin_name",
317                 128
318             ],
319             [
320                 "u16",
321                 "first_msg_id"
322             ],
323             [
324                 "u16",
325                 "last_msg_id"
326             ],
327             {
328                 "crc": "0x64af79f9"
329             }
330         ],
331         [
332             "sockclnt_create",
333             [
334                 "u16",
335                 "_vl_msg_id"
336             ],
337             [
338                 "u32",
339                 "context"
340             ],
341             [
342                 "u8",
343                 "name",
344                 64
345             ],
346             {
347                 "crc": "0xdf2cf94d"
348             }
349         ],
350         [
351             "sockclnt_create_reply",
352             [
353                 "u16",
354                 "_vl_msg_id"
355             ],
356             [
357                 "u32",
358                 "client_index"
359             ],
360             [
361                 "u32",
362                 "context"
363             ],
364             [
365                 "i32",
366                 "response"
367             ],
368             [
369                 "u32",
370                 "index"
371             ],
372             [
373                 "u16",
374                 "count"
375             ],
376             [
377                 "vl_api_message_table_entry_t",
378                 "message_table",
379                 0,
380                 "count"
381             ],
382             {
383                 "crc": "0xa134a8a8"
384             }
385         ],
386         [
387             "sockclnt_delete",
388             [
389                 "u16",
390                 "_vl_msg_id"
391             ],
392             [
393                 "u32",
394                 "client_index"
395             ],
396             [
397                 "u32",
398                 "context"
399             ],
400             [
401                 "u32",
402                 "index"
403             ],
404             {
405                 "crc": "0x8ac76db6"
406             }
407         ],
408         [
409             "sockclnt_delete_reply",
410             [
411                 "u16",
412                 "_vl_msg_id"
413             ],
414             [
415                 "u32",
416                 "context"
417             ],
418             [
419                 "i32",
420                 "response"
421             ],
422             {
423                 "crc": "0x8f38b1ee"
424             }
425         ],
426         [
427             "sock_init_shm",
428             [
429                 "u16",
430                 "_vl_msg_id"
431             ],
432             [
433                 "u32",
434                 "client_index"
435             ],
436             [
437                 "u32",
438                 "context"
439             ],
440             [
441                 "u32",
442                 "requested_size"
443             ],
444             [
445                 "u8",
446                 "nitems"
447             ],
448             [
449                 "u64",
450                 "configs",
451                 0,
452                 "nitems"
453             ],
454             {
455                 "crc": "0x51646d92"
456             }
457         ],
458         [
459             "sock_init_shm_reply",
460             [
461                 "u16",
462                 "_vl_msg_id"
463             ],
464             [
465                 "u32",
466                 "context"
467             ],
468             [
469                 "i32",
470                 "retval"
471             ],
472             {
473                 "crc": "0xe8d4e804"
474             }
475         ],
476         [
477             "memclnt_keepalive",
478             [
479                 "u16",
480                 "_vl_msg_id"
481             ],
482             [
483                 "u32",
484                 "client_index"
485             ],
486             [
487                 "u32",
488                 "context"
489             ],
490             {
491                 "crc": "0x51077d14"
492             }
493         ],
494         [
495             "memclnt_keepalive_reply",
496             [
497                 "u16",
498                 "_vl_msg_id"
499             ],
500             [
501                 "u32",
502                 "context"
503             ],
504             [
505                 "i32",
506                 "retval"
507             ],
508             {
509                 "crc": "0xe8d4e804"
510             }
511         ]
512     ],
513     "vl_api_version": "0xb619530",
514     "unions": [],
515     "services": {
516         "api_versions": {
517             "reply": "api_versions_reply"
518         },
519         "memclnt_keepalive": {
520             "reply": "memclnt_keepalive_reply"
521         },
522         "memclnt_rx_thread_suspend": {
523             "reply": "null"
524         },
525         "sockclnt_delete": {
526             "reply": "sockclnt_delete_reply"
527         },
528         "memclnt_create": {
529             "reply": "memclnt_create_reply"
530         },
531         "get_first_msg_id": {
532             "reply": "get_first_msg_id_reply"
533         },
534         "memclnt_read_timeout": {
535             "reply": "null"
536         },
537         "rpc_call": {
538             "reply": "rpc_call_reply"
539         },
540         "rx_thread_exit": {
541             "reply": "null"
542         },
543         "sock_init_shm": {
544             "reply": "sock_init_shm_reply"
545         },
546         "memclnt_delete": {
547             "reply": "memclnt_delete_reply"
548         },
549         "sockclnt_create": {
550             "reply": "sockclnt_create_reply"
551         },
552         "trace_plugin_msg_ids": {
553             "reply": "null"
554         }
555     },
556     "enums": [],
557     "types": [
558         [
559             "module_version",
560             [
561                 "u32",
562                 "major"
563             ],
564             [
565                 "u32",
566                 "minor"
567             ],
568             [
569                 "u32",
570                 "patch"
571             ],
572             [
573                 "u8",
574                 "name",
575                 64
576             ],
577             {
578                 "crc": "0x4b6da11a"
579             }
580         ],
581         [
582             "message_table_entry",
583             [
584                 "u16",
585                 "index"
586             ],
587             [
588                 "u8",
589                 "name",
590                 64
591             ],
592             {
593                 "crc": "0x913bf1c6"
594             }
595         ]
596     ],
597     "aliases": {}
598 }