diff options
author | Emre Ucan <eucan@de.adit-jv.com> | 2015-07-02 13:52:13 +0200 |
---|---|---|
committer | Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp> | 2015-07-17 09:09:36 +0900 |
commit | 2a290f5f47323d23101a89c433f0de673705a196 (patch) | |
tree | 409e478c7c53ad812a17632685dd865478f5fc4a /ivi-layermanagement-api | |
parent | 1817b4589d32eca2b5d332b8999b227529af7e60 (diff) | |
download | wayland-ivi-extension-2a290f5f47323d23101a89c433f0de673705a196.tar.gz |
ilmControl: send notifications for layer creation/deletion
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-layermanagement-api')
-rw-r--r-- | ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c index 1e7a538..47fc70c 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -434,6 +434,13 @@ controller_layer_listener_destroyed(void *data, struct layer_context *ctx_layer = data; wl_list_remove(&ctx_layer->order.link); wl_list_remove(&ctx_layer->link); + + if (ctx_layer->ctx->notification != NULL) { + ilmObjectType layer = ILM_LAYER; + ctx_layer->ctx->notification(layer, ctx_layer->id_layer, ILM_FALSE, + ctx_layer->ctx->notification_user_data); + } + free(ctx_layer); } @@ -1722,6 +1729,12 @@ static int create_controller_layer(struct wayland_context *ctx, t_ilm_uint width ivi_controller_layer_add_listener(ctx_layer->controller, &controller_layer_listener, ctx_layer); + if (ctx->notification != NULL) { + ilmObjectType layer = ILM_LAYER; + ctx->notification(layer, ctx_layer->id_layer, ILM_TRUE, + ctx->notification_user_data); + } + return 0; } |