diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-11-01 11:00:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2017-11-01 11:00:08 +0000 |
commit | c0f383d989821c61872aaa38932fa7719dc97120 (patch) | |
tree | a0a812ed805803cddb3c4c47abc711134f208130 /generate-binding-glue.py | |
parent | 022def7c34eff5814ef9b5ba3bba7c7d8b869297 (diff) | |
parent | eb7fc4eb593d723f1ac2ed4e5b523afd34e992ac (diff) |
Merge "Add drawing_area parameter to API"
Diffstat (limited to 'generate-binding-glue.py')
-rw-r--r-- | generate-binding-glue.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generate-binding-glue.py b/generate-binding-glue.py index de78634..dbebbcd 100644 --- a/generate-binding-glue.py +++ b/generate-binding-glue.py @@ -93,6 +93,7 @@ def emit_afb_api(api): p(' typedef wm::result<json_object *> result_type;') p(' struct wm::App *app;') p(' void send_event(char const *evname, char const *label);') + p(' void send_event(char const *evname, char const *label, char const *area);') for f in api['functions']: p(' result_type %(name)s(' % f + ', '.join(map(lambda x: '%(type)s %(name)s' % x, f.get('args', []))) + ');') p('};', '') @@ -116,6 +117,7 @@ API = { 'name': 'activatesurface', 'args': [ { 'name': 'drawing_name', 'type': 'char const*', 'jtype': 'string' }, + { 'name': 'drawing_area', 'type': 'char const*', 'jtype': 'string' }, ], }, { |