Ole Troan 30d28bdfd8 api: enforce vla is last and fixed string type
Enforce that variable length fields are the last element of API messages.

Add a 'fixed' version of string type, since dealing with
multiple variable length strings turned out too painful
for the C language bindings.

The string type is now:
{
  string name[64]; // NUL terminated C-string. Essentially decays to u8 name[64]
  string name[];   // Variable length string with embedded len field (vl_api_string_t)
};

The latter notation could be made available to other types as well.
e.g.
{
  vl_api_address_t addresses[];
}
instead of

{
  u32 n_addr;
  vl_api_address_t addresses[n_addr];
};

Type: fix
Change-Id: I18fa17ef47227633752ab50453e8d20a652a9f9b
Signed-off-by: Ole Troan <ot@cisco.com>
(cherry picked from commit e5ff5a36dd126ee57dca4e0b03da2f7704e0a4f5)
Signed-off-by: Ole Troan <ot@cisco.com>
2019-09-09 09:59:48 +00:00
..
2019-03-07 22:29:44 +00:00
2018-03-21 00:01:44 +00:00
2019-06-07 15:21:16 +00:00
2019-06-24 16:03:09 +00:00
2019-06-26 10:10:05 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-20 03:36:54 +00:00
2019-06-18 13:31:39 +00:00
2019-06-05 11:29:46 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-08-07 08:42:38 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-04-18 07:52:27 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-25 12:37:13 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-03-21 20:33:30 +00:00
2019-06-18 13:54:35 +00:00
2019-03-29 16:02:27 +00:00
2019-03-29 16:02:27 +00:00
2019-07-31 16:17:36 +00:00
2019-03-29 16:02:27 +00:00
2018-04-13 08:48:00 +00:00