From e21c981f0ba536c5973bb91e9bf72c6b9d4bf9f2 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 14 May 2018 09:03:32 +0900 Subject: Set LOA level for some verbs Window Manager client needs to get authority to call some verbs. Change-Id: I48fe9922b35c6b1e6f59d68f1966d7f5a2c75beb Signed-off-by: Kazumasa Mitsunari --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 2f813a3..3828afd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -620,11 +620,11 @@ void windowmanager_debug_terminate(afb_req req) noexcept { const struct afb_verb_v2 windowmanager_verbs[] = { { "requestsurface", windowmanager_requestsurface, nullptr, nullptr, AFB_SESSION_NONE }, { "requestsurfacexdg", windowmanager_requestsurfacexdg, nullptr, nullptr, AFB_SESSION_NONE }, - { "activatesurface", windowmanager_activatesurface, nullptr, nullptr, AFB_SESSION_NONE }, - { "deactivatesurface", windowmanager_deactivatesurface, nullptr, nullptr, AFB_SESSION_NONE }, - { "enddraw", windowmanager_enddraw, nullptr, nullptr, AFB_SESSION_NONE }, + { "activatesurface", windowmanager_activatesurface, nullptr, nullptr, AFB_SESSION_LOA_1 }, + { "deactivatesurface", windowmanager_deactivatesurface, nullptr, nullptr, AFB_SESSION_LOA_1 }, + { "enddraw", windowmanager_enddraw, nullptr, nullptr, AFB_SESSION_LOA_1 }, { "getdisplayinfo", windowmanager_getdisplayinfo_thunk, nullptr, nullptr, AFB_SESSION_NONE }, - { "getareainfo", windowmanager_getareainfo_thunk, nullptr, nullptr, AFB_SESSION_NONE }, + { "getareainfo", windowmanager_getareainfo_thunk, nullptr, nullptr, AFB_SESSION_LOA_1 }, { "wm_subscribe", windowmanager_wm_subscribe, nullptr, nullptr, AFB_SESSION_NONE }, { "list_drawing_names", windowmanager_list_drawing_names, nullptr, nullptr, AFB_SESSION_NONE }, { "ping", windowmanager_ping, nullptr, nullptr, AFB_SESSION_NONE }, -- cgit 1.2.3-korg