summaryrefslogtreecommitdiffstats
path: root/src/policy.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-06-09 13:18:11 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-06-26 15:00:49 +0000
commitbbf173123cdd4c64330fbf77631a9ae120e7d09f (patch)
tree4492f4856d57438c10d401decc7eaa45813eae28 /src/policy.h
parent9827cfd255780640650f7c9667daa7802dc1bb34 (diff)
policy: Add a new policy hook to restrict access to private extensions
In this manner we can control which clients can bind to which interface (either the agl_shell one or the agl_shell_desktop one). Bug-AGL: SPEC-3394 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I9da4b3596dc5980b325aada8f8fcc7a11431c755
Diffstat (limited to 'src/policy.h')
-rw-r--r--src/policy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/policy.h b/src/policy.h
index 67da4aa..c59fbe4 100644
--- a/src/policy.h
+++ b/src/policy.h
@@ -75,6 +75,8 @@ struct ivi_policy_api {
bool (*surface_activate_by_default)(struct ivi_surface *surf, void *user_data);
bool (*surface_advertise_state_change)(struct ivi_surface *surf, void *user_data);
+ bool (*shell_bind_interface)(void *client, void *interface);
+
/** see also ivi_policy_add(). If set this will be executed before
* adding a new policy rule */
bool (*policy_rule_allow_to_add)(void *user_data);