API: Add support for type aliases
[vpp.git] / src / tools / vppapigen / vppapigen_json.py
index 2991bec..b57e16c 100644 (file)
@@ -65,5 +65,6 @@ def run(filename, s, file_crc):
     j['unions'] = walk_defs([o for o in s['types'] if o.__class__.__name__ == 'Union'])
     j['enums'] = walk_enums([o for o in s['types'] if o.__class__.__name__ == 'Enum'])
     j['services'] = walk_services(s['Service'])
+    j['aliases'] = s['Alias']
     j['vl_api_version'] = hex(file_crc)
     return json.dumps(j, indent=4, separators=(',', ': '))