diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2020-11-24 23:26:06 -0500 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2020-12-04 09:40:27 +0000 |
commit | a51f9b3747d3e065b4bc7bb46aea8df11719b6cd (patch) | |
tree | 1f95c7a5f3c46f7741c836e183ec3d8dda937da7 /src/tools/vppapigen/vppapigen_json.py | |
parent | 86ffb6b232d5ebce03cf53249fa1514384f31cce (diff) |
vppapigen: add parser support for enumflags
Type: improvement
Change-Id: I0f15862cc8399a4f7c8a81fe44ba8b27d8772278
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Signed-off-by: Ole Troan <ot@cisco.com>
(cherry picked from commit e15523297bb3905f2e0eef4272fc69a8a92463cc)
Diffstat (limited to 'src/tools/vppapigen/vppapigen_json.py')
-rw-r--r-- | src/tools/vppapigen/vppapigen_json.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/vppapigen/vppapigen_json.py b/src/tools/vppapigen/vppapigen_json.py index 19f7d65b8c5..93ec21fcc88 100644 --- a/src/tools/vppapigen/vppapigen_json.py +++ b/src/tools/vppapigen/vppapigen_json.py @@ -96,6 +96,8 @@ def run(args, filename, s): if o.__class__.__name__ == 'Union'])) j['enums'] = (walk_enums([o for o in s['types'] if o.__class__.__name__ == 'Enum'])) + j['enumflags'] = (walk_enums([o for o in s['types'] + if o.__class__.__name__ == 'EnumFlag'])) j['services'] = walk_services(s['Service']) j['options'] = s['Option'] j['aliases'] = {o.name:o.alias for o in s['types'] if o.__class__.__name__ == 'Using'} |