X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=generate-binding-glue.py;h=db0b546138e9507d600342a0dd8119298ea64049;hb=6b648180458e9625e1f700962537c3d4e501f6cc;hp=7e003a5389481975ca6345c296186a9475f35ecb;hpb=a9d482a22be08a004da6acb7efdcbc180018462e;p=staging%2Fwindowmanager.git 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 guard(binding_m);') + #p(' std::lock_guard 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', },