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
2019-09-09 09:59:48 +00:00
2019-07-24 11:01:47 +00:00
2016-12-13 07:06:56 +01:00
2019-03-25 19:34:50 -04:00
2018-03-21 00:01:44 +00:00
2019-06-07 15:21:16 +00:00
2018-02-17 20:42:49 +00:00
2018-10-10 16:05:37 +00:00
2018-11-29 08:22:10 +00:00
2019-07-31 12:55:46 +00:00
2019-06-24 16:03:09 +00:00
2019-03-28 06:36:04 +00:00
2019-03-11 09:20:04 +00:00
2019-03-07 22:29:00 +00:00
2019-08-23 17:31:08 -04:00
2019-06-26 10:10:05 +00:00
2019-06-27 21:22:26 +00:00
2019-06-27 21:22:26 +00:00
2019-06-27 21:22:26 +00:00
2019-07-24 17:41:42 +00:00
2017-03-09 20:06:58 +00:00
2019-06-24 16:03:09 +00:00
2019-03-28 06:36:04 +00:00
2019-08-01 18:04:42 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-05-07 19:50:22 +00:00
2019-07-19 16:12:02 +00:00
2019-06-20 03:36:54 +00:00
2019-04-11 07:23:11 +00:00
2019-06-18 13:31:39 +00:00
2019-05-10 21:50:34 +00:00
2019-04-11 07:23:11 +00:00
2019-06-05 11:29:46 +00:00
2019-06-18 13:31:39 +00:00
2019-08-06 08:13:33 +00:00
2019-06-18 13:31:39 +00:00
2019-07-08 17:47:33 +00:00
2019-04-10 14:37:40 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-09-02 11:55:53 +00:00
2019-06-18 13:31:39 +00:00
2019-04-11 07:23:11 +00:00
2019-06-18 13:31:39 +00:00
2019-07-19 07:35:55 +00:00
2019-06-18 13:31:39 +00:00
2019-06-26 11:36:57 +00:00
2019-06-18 13:31:39 +00:00
2019-08-07 08:42:17 +00:00
2019-06-18 13:31:39 +00:00
2019-06-18 13:31:39 +00:00
2019-04-10 14:37:40 +00:00
2019-07-31 12:55:46 +00:00
2019-07-16 15:05:10 +00:00
2019-04-11 07:23:11 +00:00
2019-05-16 20:32:41 -04:00
2019-06-19 15:56:18 +00:00
2019-04-10 14:37:40 +00:00
2019-04-10 14:37:40 +00:00
2019-05-28 15:35:54 +00:00
2019-04-11 07:23:11 +00:00
2019-04-11 07:23:11 +00:00
2019-04-10 14:37:40 +00:00
2019-07-24 01:04:59 +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-04-11 07:23:11 +00:00
2019-05-16 20:32:41 -04:00
2019-07-31 13:00:35 +00:00
2019-08-06 08:13:33 +00:00
2019-06-18 13:31:39 +00:00
2019-04-19 16:55:57 +00:00
2019-06-18 13:31:39 +00:00
2019-04-18 07:52:27 +00:00
2019-04-02 06:54:43 +00:00
2019-04-10 14:37:40 +00:00
2019-06-18 16:14:43 -07:00
2019-04-10 14:37:40 +00:00
2019-05-17 21:03:29 +00:00
2019-04-10 14:37:40 +00:00
2019-06-18 13:31:39 +00:00
2019-01-14 13:09:08 +00:00
2019-02-04 15:39:24 +00:00
2019-07-03 22:02:10 +00:00
2019-04-10 14:37:40 +00:00
2019-02-04 15:39:24 +00:00
2019-07-31 13:20:52 +00:00
2019-04-11 07:23:11 +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-07-31 10:12:14 +00:00
2019-06-18 13:31:39 +00:00
2019-07-19 16:12:02 +00:00
2019-03-21 20:33:30 +00:00
2019-08-07 08:42:17 +00:00
2019-06-26 11:36:57 +00:00
2019-07-24 14:42:27 +00:00
2019-06-26 11:36:57 +00:00
2019-06-18 13:54:35 +00:00
2019-07-16 15:05:10 +00:00
2019-06-18 13:54:35 +00:00
2019-06-19 15:56:18 +00:00
2018-06-24 22:53:37 +02:00
2019-06-18 13:31:39 +00:00
2019-03-29 16:02:27 +00:00
2019-03-29 16:02:27 +00:00
2019-07-26 13:27:14 +00:00
2019-07-31 13:00:35 +00:00
2019-07-31 16:17:36 +00:00
2019-03-29 19:33:33 +00:00
2019-02-26 11:31:42 +00:00
2019-03-29 16:02:27 +00:00
2019-07-31 16:33:15 +00:00
2019-06-25 12:37:13 +00:00
2018-04-13 08:48:00 +00:00