};
struct ilm_control_context {
- struct wayland_context main_ctx;
+ struct wayland_context wl;
int32_t valid;
uint32_t num_screen;
struct screen_context *ctx_scrn;
struct screen_context *next;
- wl_list_for_each_safe(ctx_scrn, next, &ctx->main_ctx.list_screen, link) {
+ wl_list_for_each_safe(ctx_scrn, next, &ctx->wl.list_screen, link) {
if (ctx_scrn->output != NULL) {
wl_list_remove(&ctx_scrn->link);
wl_output_destroy(ctx_scrn->output);
free(ctx_scrn);
}
}
- if (ctx->main_ctx.controller != NULL) {
- ivi_controller_destroy(ctx->main_ctx.controller);
- ctx->main_ctx.controller = NULL;
+ if (ctx->wl.controller != NULL) {
+ ivi_controller_destroy(ctx->wl.controller);
+ ctx->wl.controller = NULL;
}
- wl_display_flush(ctx->main_ctx.display);
+ wl_display_flush(ctx->wl.display);
- wl_event_queue_destroy(ctx->main_ctx.queue);
- ctx->main_ctx.queue = NULL;
+ wl_event_queue_destroy(ctx->wl.queue);
+ ctx->wl.queue = NULL;
if (0 != pthread_mutex_destroy(&ctx->mutex)) {
fprintf(stderr, "failed to destroy pthread_mutex\n");
memset(ctx, 0, sizeof *ctx);
- ctx->main_ctx.display = (struct wl_display*)nativedisplay;
+ ctx->wl.display = (struct wl_display*)nativedisplay;
- wl_list_init(&ctx->main_ctx.list_screen);
- wl_list_init(&ctx->main_ctx.list_layer);
- wl_list_init(&ctx->main_ctx.list_surface);
+ wl_list_init(&ctx->wl.list_screen);
+ wl_list_init(&ctx->wl.list_layer);
+ wl_list_init(&ctx->wl.list_surface);
{
pthread_mutexattr_t a;
control_thread(void *p_ret)
{
struct ilm_control_context *ctx = &ilm_context;
- struct wayland_context *main_ctx = &ctx->main_ctx;
+ struct wayland_context *wl = &ctx->wl;
(void) p_ret;
}
lock_context(ctx);
- while (wl_display_prepare_read_queue(main_ctx->display, main_ctx->queue) != 0)
+ while (wl_display_prepare_read_queue(wl->display, wl->queue) != 0)
{
- wl_display_dispatch_queue_pending(main_ctx->display, main_ctx->queue);
+ wl_display_dispatch_queue_pending(wl->display, wl->queue);
}
unlock_context(ctx);
- if (wl_display_flush(main_ctx->display) == -1)
+ if (wl_display_flush(wl->display) == -1)
{
break;
}
struct pollfd pfd;
- pfd.fd = wl_display_get_fd(main_ctx->display);
+ pfd.fd = wl_display_get_fd(wl->display);
pfd.events = POLLIN;
pfd.revents = 0;
if (poll(&pfd, 1, -1) != -1 && (pfd.revents & POLLIN))
{
- wl_display_read_events(main_ctx->display);
+ wl_display_read_events(wl->display);
lock_context(ctx);
- int ret = wl_display_dispatch_queue_pending(main_ctx->display, main_ctx->queue);
+ int ret = wl_display_dispatch_queue_pending(wl->display, wl->queue);
unlock_context(ctx);
if (ret == -1)
}
else
{
- wl_display_cancel_read(main_ctx->display);
+ wl_display_cancel_read(wl->display);
}
}
init_control(void)
{
struct ilm_control_context *ctx = &ilm_context;
- struct wayland_context *main_ctx = &ctx->main_ctx;
+ struct wayland_context *wl = &ctx->wl;
int wait_count = 0;
int ret = 0;
wl_list_init(&ctx->list_nativehandle);
- main_ctx->queue = wl_display_create_queue(main_ctx->display);
+ wl->queue = wl_display_create_queue(wl->display);
/* registry_add_listener for request by ivi-controller */
- main_ctx->registry = wl_display_get_registry(main_ctx->display);
- if (main_ctx->registry == NULL) {
+ wl->registry = wl_display_get_registry(wl->display);
+ if (wl->registry == NULL) {
fprintf(stderr, "Failed to get registry\n");
return -1;
}
- wl_proxy_set_queue((void*)main_ctx->registry, main_ctx->queue);
+ wl_proxy_set_queue((void*)wl->registry, wl->queue);
- if (wl_registry_add_listener(main_ctx->registry,
+ if (wl_registry_add_listener(wl->registry,
®istry_control_listener, ctx)) {
fprintf(stderr, "Failed to add registry listener\n");
return -1;
}
- display_roundtrip_queue(main_ctx->display, main_ctx->queue);
- display_roundtrip_queue(main_ctx->display, main_ctx->queue);
+ display_roundtrip_queue(wl->display, wl->queue);
+ display_roundtrip_queue(wl->display, wl->queue);
ctx->valid = 1;
{
struct ilm_control_context *ctx = &ilm_context;
lock_context(ctx);
- display_roundtrip_queue(ctx->main_ctx.display, ctx->main_ctx.queue);
+ display_roundtrip_queue(ctx->wl.display, ctx->wl.queue);
return ctx;
}
struct layer_context *ctx_layer = NULL;
do {
int found = 0;
- if (wl_list_length(&ctx->main_ctx.list_layer) == 0) {
+ if (wl_list_length(&ctx->wl.list_layer) == 0) {
ctx->internal_id_layer++;
return ctx->internal_id_layer;
}
- wl_list_for_each(ctx_layer, &ctx->main_ctx.list_layer, link) {
+ wl_list_for_each(ctx_layer, &ctx->wl.list_layer, link) {
if (ctx_layer->id_layer == ctx->internal_id_layer) {
found = 1;
break;
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerID);
+ &ctx->wl, (uint32_t)layerID);
if (ctx_layer != NULL) {
*pLayerProperties = ctx_layer->prop;
if (pScreenProperties != NULL) {
struct screen_context *ctx_screen = NULL;
- ctx_screen = get_screen_context_by_id(&ctx->main_ctx, (uint32_t)screenID);
+ ctx_screen = get_screen_context_by_id(&ctx->wl, (uint32_t)screenID);
if (ctx_screen != NULL) {
*pScreenProperties = ctx_screen->prop;
create_layerids(ctx_screen, &pScreenProperties->layerIds,
if ((pNumberOfIDs != NULL) && (ppIDs != NULL)) {
struct screen_context *ctx_scrn = NULL;
- t_ilm_uint length = wl_list_length(&ctx->main_ctx.list_screen);
+ t_ilm_uint length = wl_list_length(&ctx->wl.list_screen);
*pNumberOfIDs = 0;
*ppIDs = (t_ilm_uint*)malloc(length * sizeof *ppIDs);
if (*ppIDs != NULL) {
t_ilm_uint* ids = *ppIDs;
- wl_list_for_each(ctx_scrn, &ctx->main_ctx.list_screen, link) {
+ wl_list_for_each(ctx_scrn, &ctx->wl.list_screen, link) {
*ids = ctx_scrn->id_screen;
ids++;
}
if ((pLength != NULL) && (ppArray != NULL)) {
struct layer_context *ctx_layer = NULL;
- t_ilm_uint length = wl_list_length(&ctx->main_ctx.list_layer);
+ t_ilm_uint length = wl_list_length(&ctx->wl.list_layer);
*pLength = 0;
*ppArray = (t_ilm_layer*)malloc(length * sizeof *ppArray);
// compositor sends layers in opposite order
// write ids from back to front to turn them around
t_ilm_layer* ids = *ppArray;
- wl_list_for_each_reverse(ctx_layer, &ctx->main_ctx.list_layer, link)
+ wl_list_for_each_reverse(ctx_layer, &ctx->wl.list_layer, link)
{
*ids = ctx_layer->id_layer;
++ids;
if ((pLength != NULL) && (ppArray != NULL)) {
struct screen_context *ctx_screen = NULL;
- ctx_screen = get_screen_context_by_id(&ctx->main_ctx, screenId);
+ ctx_screen = get_screen_context_by_id(&ctx->wl, screenId);
if (ctx_screen != NULL) {
struct layer_context *ctx_layer = NULL;
t_ilm_int length = wl_list_length(&ctx_screen->order.list_layer);
if ((pLength != NULL) && (ppArray != NULL)) {
struct surface_context *ctx_surf = NULL;
- t_ilm_uint length = wl_list_length(&ctx->main_ctx.list_surface);
+ t_ilm_uint length = wl_list_length(&ctx->wl.list_surface);
*pLength = 0;
*ppArray = (t_ilm_surface*)malloc(length * sizeof *ppArray);
if (*ppArray != NULL) {
t_ilm_surface* ids = *ppArray;
- wl_list_for_each_reverse(ctx_surf, &ctx->main_ctx.list_surface, link) {
+ wl_list_for_each_reverse(ctx_surf, &ctx->wl.list_surface, link) {
*ids = ctx_surf->id_surface;
ids++;
}
}
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layer);
+ &ctx->wl, (uint32_t)layer);
if (ctx_layer == NULL) {
release_instance();
if (*pLayerId != INVALID_ID) {
/* Return failed, if layerid is already inside list_layer */
is_inside = wayland_controller_is_inside_layer_list(
- &ctx->main_ctx.list_layer, *pLayerId);
+ &ctx->wl.list_layer, *pLayerId);
if (0 != is_inside) {
fprintf(stderr, "layerid=%d is already used.\n", *pLayerId);
break;
*pLayerId = layerid;
}
- if (create_controller_layer(&ctx->main_ctx, width, height, layerid) == 0)
+ if (create_controller_layer(&ctx->wl, width, height, layerid) == 0)
{
returnValue = ILM_SUCCESS;
}
struct layer_context *ctx_next = NULL;
wl_list_for_each_safe(ctx_layer, ctx_next,
- &ctx->main_ctx.list_layer, link) {
+ &ctx->wl.list_layer, link) {
if (ctx_layer->id_layer == layerId) {
ivi_controller_layer_destroy(ctx_layer->controller, 1);
struct ilm_control_context *ctx = sync_and_acquire_instance();
- *pLayerType = wayland_controller_is_inside_layer_list(&ctx->main_ctx.list_layer, layerId) ?
+ *pLayerType = wayland_controller_is_inside_layer_list(&ctx->wl.list_layer, layerId) ?
ILM_LAYERTYPE_SOFTWARE2D :
ILM_LAYERTYPE_UNKNOWN;
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
uint32_t visibility = 0;
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
*pVisibility = ctx_layer->prop.visibility;
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
wl_fixed_t opacity_fixed = wl_fixed_from_double((double)opacity);
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
*pOpacity = ctx_layer->prop.opacity;
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
ivi_controller_layer_set_source_rectangle(ctx_layer->controller,
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
ivi_controller_layer_set_destination_rectangle(
ctx_layer->controller,
if (pDimension != NULL) {
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
*pDimension = ctx_layer->prop.destWidth;
*(pDimension + 1) = ctx_layer->prop.destHeight;
if (pDimension != NULL) {
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
ivi_controller_layer_set_destination_rectangle(
ctx_layer->controller,
if (pPosition != NULL) {
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
*pPosition = ctx_layer->prop.destX;
*(pPosition + 1) = ctx_layer->prop.destY;
if (pPosition != NULL) {
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
ivi_controller_layer_set_destination_rectangle(
ctx_layer->controller,
}
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer == NULL) {
returnValue = ILM_FAILED;
break;
if (pOrientation != NULL) {
ctx_layer = (struct layer_context*)
wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer != NULL) {
*pOrientation = ctx_layer->prop.orientation;
returnValue = ILM_SUCCESS;
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
+ &ctx->wl, (uint32_t)layerId);
if (ctx_layer) {
int cnt = 0;
uint32_t id = 0;
for (cnt = 0; cnt < number; cnt++) {
id = (uint32_t)*(pSurfaceId + cnt);
- ctx_surf = get_surface_context(&ctx->main_ctx, id);
+ ctx_surf = get_surface_context(&ctx->wl, id);
if (ctx_surf == NULL) {
fprintf(stderr, "invalud argument \
if (newVisibility == ILM_TRUE) {
visibility = 1;
}
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
ivi_controller_surface_set_visibility(ctx_surf->controller,
visibility);
wl_fixed_t opacity_fixed = 0;
opacity_fixed = wl_fixed_from_double((double)opacity);
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
ivi_controller_surface_set_opacity(ctx_surf->controller,
opacity_fixed);
if (pOpacity != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
*pOpacity = ctx_surf->prop.opacity;
returnValue = ILM_SUCCESS;
struct ilm_control_context *ctx = sync_and_acquire_instance();
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
ivi_controller_surface_set_destination_rectangle(
ctx_surf->controller,
if (pDimension != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
uint32_t width = *pDimension;
uint32_t height = *(pDimension + 1);
if (pPosition != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
*pPosition = ctx_surf->prop.destX;
*(pPosition + 1) = ctx_surf->prop.destY;
if (pPosition != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
int32_t destX = (int32_t)*pPosition;
int32_t destY = (int32_t)*(pPosition + 1);
break;
}
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf == NULL) {
returnValue = ILM_FAILED;
break;
if (pOrientation != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
*pOrientation = ctx_surf->prop.orientation;
returnValue = ILM_SUCCESS;
if (pPixelformat != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, surfaceId);
if (ctx_surf) {
*pPixelformat = ctx_surf->prop.pixelformat;
returnValue = ILM_SUCCESS;
struct ilm_control_context *ctx = sync_and_acquire_instance();
struct screen_context *ctx_scrn = NULL;
- ctx_scrn = get_screen_context_by_id(&ctx->main_ctx, (uint32_t)display);
+ ctx_scrn = get_screen_context_by_id(&ctx->wl, (uint32_t)display);
if (ctx_scrn != NULL) {
int cnt = 0;
uint32_t id = 0;
id = (uint32_t)*(pLayerId + cnt);
ctx_layer =
(struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, id);
+ &ctx->wl, id);
if (ctx_layer != NULL) {
ivi_controller_screen_add_layer(ctx_scrn->controller,
ctx_layer->controller);
struct ilm_control_context *ctx = sync_and_acquire_instance();
struct screen_context *ctx_scrn = NULL;
- ctx_scrn = get_screen_context_by_id(&ctx->main_ctx, (uint32_t)screen);
+ ctx_scrn = get_screen_context_by_id(&ctx->wl, (uint32_t)screen);
if (ctx_scrn != NULL) {
ivi_controller_screen_screenshot(ctx_scrn->controller,
filename);
- wl_display_flush(ctx->main_ctx.display);
+ wl_display_flush(ctx->wl.display);
returnValue = ILM_SUCCESS;
}
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerid);
+ &ctx->wl, (uint32_t)layerid);
if (ctx_layer != NULL) {
ivi_controller_layer_screenshot(ctx_layer->controller,
filename);
- wl_display_flush(ctx->main_ctx.display);
+ wl_display_flush(ctx->wl.display);
returnValue = ILM_SUCCESS;
}
struct ilm_control_context *ctx = sync_and_acquire_instance();
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceid);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceid);
if (ctx_surf) {
ivi_controller_surface_screenshot(ctx_surf->controller,
filename);
- wl_display_flush(ctx->main_ctx.display);
+ wl_display_flush(ctx->wl.display);
returnValue = ILM_SUCCESS;
}
struct layer_context *ctx_layer = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layer);
+ &ctx->wl, (uint32_t)layer);
if (ctx_layer == NULL) {
returnValue = ILM_ERROR_INVALID_ARGUMENTS;
} else {
struct surface_context *ctx_surf = NULL;
ctx_surf = (struct surface_context*)get_surface_context(
- &ctx->main_ctx, (uint32_t)surface);
+ &ctx->wl, (uint32_t)surface);
if (ctx_surf == NULL) {
returnValue = ILM_ERROR_INVALID_ARGUMENTS;
} else {
if (pSurfaceProperties != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceID);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceID);
if (ctx_surf != NULL) {
*pSurfaceProperties = ctx_surf->prop;
struct surface_context *ctx_surf = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceId);
+ &ctx->wl, (uint32_t)layerId);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceId);
if ((ctx_layer != NULL) && (ctx_surf != NULL)) {
ivi_controller_layer_add_surface(ctx_layer->controller,
ctx_surf->controller);
struct surface_context *ctx_surf = NULL;
ctx_layer = (struct layer_context*)wayland_controller_get_layer_context(
- &ctx->main_ctx, (uint32_t)layerId);
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceId);
+ &ctx->wl, (uint32_t)layerId);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceId);
if ((ctx_layer != NULL) && (ctx_surf != NULL)) {
ivi_controller_layer_remove_surface(ctx_layer->controller,
ctx_surf->controller);
if (pDimension != NULL) {
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceId);
if (ctx_surf != NULL) {
*pDimension = (t_ilm_uint)ctx_surf->prop.destWidth;
*(pDimension + 1) = (t_ilm_uint)ctx_surf->prop.destHeight;
struct surface_context *ctx_surf = NULL;
if (pVisibility != NULL) {
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceId);
if (ctx_surf != NULL) {
*pVisibility = (t_ilm_bool)ctx_surf->prop.visibility;
returnValue = ILM_SUCCESS;
struct ilm_control_context *ctx = sync_and_acquire_instance();
struct surface_context *ctx_surf = NULL;
- ctx_surf = get_surface_context(&ctx->main_ctx, (uint32_t)surfaceId);
+ ctx_surf = get_surface_context(&ctx->wl, (uint32_t)surfaceId);
if (ctx_surf != NULL) {
if (ctx_surf->controller != NULL) {
ivi_controller_surface_set_source_rectangle(
ilmErrorTypes returnValue = ILM_FAILED;
struct ilm_control_context *ctx = sync_and_acquire_instance();
- if (ctx->main_ctx.controller != NULL) {
- ivi_controller_commit_changes(ctx->main_ctx.controller);
+ if (ctx->wl.controller != NULL) {
+ ivi_controller_commit_changes(ctx->wl.controller);
- display_roundtrip_queue(ctx->main_ctx.display, ctx->main_ctx.queue);
+ display_roundtrip_queue(ctx->wl.display, ctx->wl.queue);
returnValue = ILM_SUCCESS;
}