From 1f4f9c57710f3ffe917366d37561353faa59f428 Mon Sep 17 00:00:00 2001 From: "JunSeok, Kim" Date: Tue, 19 Sep 2017 17:31:44 +0900 Subject: [PATCH] tizen_policy: change version of tizen_policy from 1 to 7. changing version of tizen_policy from 1 to 7 because of tizen_extensions version up. And implements destructor and dumy callback function for higher version. Change-Id: Ibfad583eee76a10eeb6cc876961d349e24d7f66d --- pepper-dali/internal/extensions/tizen-policy.cpp | 49 +++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/pepper-dali/internal/extensions/tizen-policy.cpp b/pepper-dali/internal/extensions/tizen-policy.cpp index 0a0f1ff..95d4a75 100644 --- a/pepper-dali/internal/extensions/tizen-policy.cpp +++ b/pepper-dali/internal/extensions/tizen-policy.cpp @@ -585,6 +585,48 @@ _tzpol_iface_cb_stack_mode_set(struct wl_client *client, struct wl_resource *res (void)mode; } +static void +_tzpol_iface_cb_subsurf_watcher_get(struct wl_client *client, struct wl_resource *res_tzpol, uint32_t id, struct wl_resource *surface) +{ + (void)client; + (void)res_tzpol; + (void)id; + (void)surface; +} + +static void +_tzpol_iface_cb_parent_set(struct wl_client *client, struct wl_resource *res_tzpol, struct wl_resource *child, struct wl_resource *parent) +{ + (void)client; + (void)res_tzpol; + (void)child; + (void)parent; +} + +static void +_tzpol_iface_cb_ack_conformant_region(struct wl_client *client, struct wl_resource *res_tzpol, struct wl_resource *surface, uint32_t serial) +{ + (void)client; + (void)res_tzpol; + (void)surface; + (void)serial; +} + +static void +_tzpol_iface_cb_destroy(struct wl_client *client, struct wl_resource *res_tzpol) +{ + wl_resource_destroy(res_tzpol); +} + +static void +_tzpol_iface_cb_has_video(struct wl_client *client, struct wl_resource *res_tzpol, struct wl_resource *surface, uint32_t has) +{ + (void)client; + (void)res_tzpol; + (void)surface; + (void)has; +} + static const struct tizen_policy_interface _tzpol_iface = { _tzpol_iface_cb_vis_get, @@ -621,6 +663,11 @@ static const struct tizen_policy_interface _tzpol_iface = _tzpol_iface_cb_floating_mode_unset, _tzpol_iface_cb_stack_mode_set, _tzpol_iface_cb_activate_above_by_res_id, + _tzpol_iface_cb_subsurf_watcher_get, + _tzpol_iface_cb_parent_set, + _tzpol_iface_cb_ack_conformant_region, + _tzpol_iface_cb_destroy, + _tzpol_iface_cb_has_video, }; static void @@ -656,7 +703,7 @@ TizenPolicyInit(pepper_compositor_t *comp) wl_list_init(&_tzpol_res_list); wl_disp = pepper_compositor_get_display(comp); - _tzpol_global = wl_global_create(wl_disp, &tizen_policy_interface, 1, NULL, _tzpol_cb_bind); + _tzpol_global = wl_global_create(wl_disp, &tizen_policy_interface, 7, NULL, _tzpol_cb_bind); if (!_tzpol_global) { DALI_LOG_INFO( gPepperTizenPolicyLogging, Debug::General, "failed to create global for tizen policy" ); -- 2.7.4