X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=generate-binding-glue.py;h=086ad32bbafab2236314cbd2f770a76faa206c10;hb=01058af8b919e1c58207008ea9609f2e7b23efac;hp=3fd0828f57ff580e59cd8165a07242519ab7bf5f;hpb=1575879e922f6c49107ae13d769a057142acc66d;p=staging%2Fwindowmanager.git diff --git a/generate-binding-glue.py b/generate-binding-glue.py index 3fd0828..086ad32 100644 --- a/generate-binding-glue.py +++ b/generate-binding-glue.py @@ -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 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', },