aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-14 09:03:32 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-14 09:16:51 +0900
commite21c981f0ba536c5973bb91e9bf72c6b9d4bf9f2 (patch)
treeece17d80768b494b57538657b5adff0b6fb14b5d /src
parentd50188f726b15a0ae2777bf2d91ee88836feeac5 (diff)
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 <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
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 },