binding: manual lock on API call, do not use noconcurrent bit
[staging/windowmanager.git] / generate-binding-glue.py
index 3fd0828..086ad32 100644 (file)
@@ -50,6 +50,9 @@ 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('   #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,12 +130,7 @@ API = {
                 ],
             },
             { 'name': 'list_drawing_names', },
-            {
-                'name': 'demo_activate_surface',
-                'args': [ { 'name': 'surfaceid', 'type': 'uint32_t', 'jtype': 'int' } ]
-            },
-
-            { 'name': 'demo_activate_all' },
+            { 'name': 'ping' },
 
             { 'name': 'debug_status', },
             { 'name': 'debug_layers', },