X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fpolicy-default.c;h=fa22097860a2e942f7619637bd9fcf866a942b9a;hb=d8e72099ecbcadc6e8b242686cf012763a5f1a3a;hp=16c8b2db56493c3ccf999ae06c39ce045fb45edc;hpb=795eb91d057b491011594162b402543c525d6545;p=src%2Fagl-compositor.git diff --git a/src/policy-default.c b/src/policy-default.c index 16c8b2d..fa22097 100644 --- a/src/policy-default.c +++ b/src/policy-default.c @@ -26,6 +26,8 @@ #include "ivi-compositor.h" #include "policy.h" +#include + /* * default policy implementation allows every action to be possible * @@ -71,6 +73,22 @@ ivi_policy_default_surface_activate_default(struct ivi_surface *surf, void *user return true; } +static bool +ivi_policy_default_surface_advertise_state_change(struct ivi_surface *surf, void *user_data) +{ + /* verify that the surface should sent as notification */ + return true; +} + +/* we allow all applications to bind to private extensions. See the deny-all + * policy instead for how to retrieve the clients fd and its label to check + * against */ +static bool +ivi_policy_default_shell_bind_interface(void *client, void *interface) +{ + return true; +} + static bool ivi_policy_default_allow_to_add(void *user_data) { @@ -105,6 +123,8 @@ static const struct ivi_policy_api policy_api = { .surface_activate = ivi_policy_default_surface_activate, .surface_deactivate = ivi_policy_default_surface_deactivate, .surface_activate_by_default = ivi_policy_default_surface_activate_default, + .surface_advertise_state_change = ivi_policy_default_surface_advertise_state_change, + .shell_bind_interface = ivi_policy_default_shell_bind_interface, .policy_rule_allow_to_add = ivi_policy_default_allow_to_add, .policy_rule_try_event = ivi_policy_default_try_event, }; @@ -116,5 +136,6 @@ ivi_policy_init(struct ivi_compositor *ivi) if (!ivi->policy) return -1; + weston_log("Installing 'allow-all' policy engine\n"); return 0; }