Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppapigen: simplify JSON format for services
[vpp.git]
/
src
/
tools
/
vppapigen
/
JSON.py
diff --git
a/src/tools/vppapigen/JSON.py
b/src/tools/vppapigen/JSON.py
index
d1f47eb
..
73bff76
100644
(file)
--- a/
src/tools/vppapigen/JSON.py
+++ b/
src/tools/vppapigen/JSON.py
@@
-15,14
+15,14
@@
def walk_enums(s):
def walk_services(s):
- r =
[]
+ r =
{}
for e in s:
d = {'reply': e.reply}
if e.stream:
d['stream'] = True
if e.events:
d['events'] = e.events
- r
.append({e.caller: d})
+ r
[e.caller] = d
return r