API: Add support for type aliases 06/15906/9
authorOle Troan <ot@cisco.com>
Tue, 13 Nov 2018 11:36:56 +0000 (12:36 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 29 Nov 2018 07:39:22 +0000 (07:39 +0000)
commit53fffa1db7cb04982db8977acd61b808ef60d5a8
tree7f8c8b25b51d722cc6353c028ddad4e0ad6fcd31
parent4f10db317382832068d67b5d19be4a696d80c19a
API: Add support for type aliases

Previously all types are compound. This adds support for aliases,
so one can do things like:

typedef u32 interface_index;

or
typedef u8 ip4_address[4];

Change-Id: I0455cad0123fc88acb491d2a3ea2725426bdb246
Signed-off-by: Ole Troan <ot@cisco.com>
Signed-off-by: Klement Sekera <ksekera@cisco.com>
13 files changed:
extras/japi/java/jvpp/gen/jvppgen/jvpp_model.py
src/tools/vppapigen/vppapigen.py
src/tools/vppapigen/vppapigen_c.py
src/tools/vppapigen/vppapigen_json.py
src/vnet/interface.api
src/vnet/interface_types.api [new file with mode: 0644]
src/vnet/ipip/ipip.api
src/vpp-api/python/vpp_papi/vpp_papi.py
src/vpp-api/python/vpp_papi/vpp_serializer.py
src/vpp-api/vapi/vapi_c_gen.py
src/vpp-api/vapi/vapi_cpp_gen.py
src/vpp-api/vapi/vapi_json_parser.py
test/ext/fake.api.json