diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-29 14:55:35 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-04 16:53:59 +0200 |
commit | 38da977e18f4b9e9a295119b8bac194a8a87a498 (patch) | |
tree | 3da50543ce6bd03d40cb7427f3ab55cf3e358ad7 /generate-binding-glue.py | |
parent | 7a5d735041a1390fffda46ef451d70859137a808 (diff) |
app/main: add send_event() to binding_api
* Preliminary event support - wrong names, likely wrong implementation
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'generate-binding-glue.py')
-rw-r--r-- | generate-binding-glue.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generate-binding-glue.py b/generate-binding-glue.py index 66f55cf..a489b63 100644 --- a/generate-binding-glue.py +++ b/generate-binding-glue.py @@ -87,6 +87,7 @@ def emit_afb_api(api): p('struct binding_api {') p(' typedef wm::result<json_object *> result_type;') p(' struct wm::App *app;') + p(' void send_event(char const *evname, json_object *payload);') for f in api['functions']: p(' result_type %(name)s(' % f + ', '.join(map(lambda x: '%(type)s %(name)s' % x, f.get('args', []))) + ');') p('};', '') |