summaryrefslogtreecommitdiffstats
path: root/generate-binding-glue.py
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:27 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:27 +0200
commit6b648180458e9625e1f700962537c3d4e501f6cc (patch)
tree75c95e97968bb1cbdf2a635ea2ce74be9ad6f0ac /generate-binding-glue.py
parenta9d482a22be08a004da6acb7efdcbc180018462e (diff)
binding: add ping() API call
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'generate-binding-glue.py')
-rw-r--r--generate-binding-glue.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/generate-binding-glue.py b/generate-binding-glue.py
index 7e003a5..db0b546 100644
--- a/generate-binding-glue.py
+++ b/generate-binding-glue.py
@@ -49,7 +49,10 @@ def emit_func_impl(api, f):
def emit_func(api, f):
p('void %(impl_name)s(afb_req req) noexcept {' % f)
- p(' std::lock_guard<std::mutex> guard(binding_m);')
+ #p(' std::lock_guard<std::mutex> guard(binding_m);')
+ p(' #ifdef ST')
+ p(' ST();')
+ p(' #endif')
p(' if (g_afb_instance == nullptr) {',
' afb_req_fail(req, "failed", "Binding not initialized, did the compositor die?");',
' return;',
@@ -127,6 +130,7 @@ API = {
],
},
{ 'name': 'list_drawing_names', },
+ { 'name': 'ping' },
{ 'name': 'debug_status', },
{ 'name': 'debug_layers', },