From 2c79e73545f8755ebd2d0588bc151dcccbf24174 Mon Sep 17 00:00:00 2001 From: Emre Ucan Date: Tue, 4 Aug 2015 15:49:03 +0200 Subject: ilmControl: remove ilm_getNativeHandle API it is not part of ILM APIs. it is not in ilm_control.h and it is not used. Signed-off-by: Emre Ucan --- .../ilmControl/src/ilm_control_wayland_platform.c | 34 ---------------------- 1 file changed, 34 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 85fa978..c87060b 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -75,12 +75,6 @@ struct screen_context { struct ilm_control_context *ctx; }; -struct nativehandle_context { - uint32_t pid; - uint32_t nativehandle; - struct wl_list link; -}; - static inline void lock_context(struct ilm_control_context *ctx) { pthread_mutex_lock(&ctx->mutex); @@ -1251,8 +1245,6 @@ init_control(void) struct wayland_context *wl = &ctx->wl; int ret = 0; - wl_list_init(&ctx->list_nativehandle); - wl->queue = wl_display_create_queue(wl->display); if (! wl->queue) { fprintf(stderr, "Could not create wayland event queue\n"); @@ -2407,32 +2399,6 @@ ilm_surfaceRemoveNotification(t_ilm_surface surface) return returnValue; } -ILM_EXPORT ilmErrorTypes -ilm_getNativeHandle(t_ilm_uint pid, t_ilm_int *n_handle, - t_ilm_nativehandle **p_handles) -{ - struct ilm_control_context *ctx = sync_and_acquire_instance(); - struct nativehandle_context *p_nh_ctx = NULL; - - *n_handle = 0; - *p_handles = NULL; - - wl_list_for_each(p_nh_ctx, &ctx->list_nativehandle, link) - { - if (p_nh_ctx->pid == pid) - { - *n_handle = 1; - *p_handles = - (t_ilm_nativehandle*)malloc(sizeof(t_ilm_nativehandle)); - (*p_handles)[0] = p_nh_ctx->nativehandle; - break; - } - } - - release_instance(); - return (*n_handle > 0) ? ILM_SUCCESS : ILM_FAILED; -} - ILM_EXPORT ilmErrorTypes ilm_getPropertiesOfSurface(t_ilm_uint surfaceID, struct ilmSurfaceProperties* pSurfaceProperties) -- cgit v1.2.1