diff options
author | Sangjin Lee <lsj119@samsung.com> | 2016-03-29 14:26:09 +0900 |
---|---|---|
committer | Sangjin Lee <lsj119@samsung.com> | 2016-03-29 14:26:09 +0900 |
commit | a70794d5db56251ae492ab9204d5b11bdbc5546d (patch) | |
tree | d27ce4497b086ef7db998eeaa69ec177436b0416 | |
parent | cee099c870d10faf019ad9f61e8d10c824cc4702 (diff) | |
download | libtbm-a70794d5db56251ae492ab9204d5b11bdbc5546d.tar.gz libtbm-a70794d5db56251ae492ab9204d5b11bdbc5546d.tar.bz2 libtbm-a70794d5db56251ae492ab9204d5b11bdbc5546d.zip |
queue: remove deprecated apis
Change-Id: I5207e9c4c7102bf19368bfdcba3265d557f6e728
-rwxr-xr-x | src/tbm_surface_queue.c | 103 | ||||
-rw-r--r-- | src/tbm_surface_queue.h | 17 |
2 files changed, 0 insertions, 120 deletions
diff --git a/src/tbm_surface_queue.c b/src/tbm_surface_queue.c index 4f7be75..a12bbb2 100755 --- a/src/tbm_surface_queue.c +++ b/src/tbm_surface_queue.c @@ -98,18 +98,6 @@ struct _tbm_surface_queue { struct list_head acquirable_noti; struct list_head reset_noti; - tbm_surface_queue_notify_cb destroy_cb; - void *destroy_cb_data; - - tbm_surface_queue_notify_cb dequeuable_cb; - void *dequeuable_cb_data; - - tbm_surface_queue_notify_cb acquirable_cb; - void *acquirable_cb_data; - - tbm_surface_queue_notify_cb reset_cb; - void *reset_cb_data; - pthread_mutex_t lock; pthread_cond_t free_cond; pthread_cond_t dirty_cond; @@ -432,26 +420,6 @@ _tbm_surface_queue_init(tbm_surface_queue_h surface_queue, } tbm_surface_queue_error_e -tbm_surface_queue_set_destroy_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb destroy_cb, - void *data) -{ - TBM_RETURN_VAL_IF_FAIL(surface_queue != NULL, - TBM_SURFACE_QUEUE_ERROR_INVALID_QUEUE); - - pthread_mutex_lock(&surface_queue->lock); - - TBM_QUEUE_TRACE("tbm_surface_queue(%p)\n", surface_queue); - - surface_queue->destroy_cb = destroy_cb; - surface_queue->destroy_cb_data = data; - - pthread_mutex_unlock(&surface_queue->lock); - - return TBM_SURFACE_QUEUE_ERROR_NONE; -} - -tbm_surface_queue_error_e tbm_surface_queue_add_destroy_cb( tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb destroy_cb, void *data) @@ -490,26 +458,6 @@ tbm_surface_queue_remove_destroy_cb( } tbm_surface_queue_error_e -tbm_surface_queue_set_dequeuable_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb dequeuable_cb, - void *data) -{ - TBM_RETURN_VAL_IF_FAIL(surface_queue != NULL, - TBM_SURFACE_QUEUE_ERROR_INVALID_QUEUE); - - pthread_mutex_lock(&surface_queue->lock); - - TBM_QUEUE_TRACE("tbm_surface_queue(%p)\n", surface_queue); - - surface_queue->dequeuable_cb = dequeuable_cb; - surface_queue->dequeuable_cb_data = data; - - pthread_mutex_unlock(&surface_queue->lock); - - return TBM_SURFACE_QUEUE_ERROR_NONE; -} - -tbm_surface_queue_error_e tbm_surface_queue_add_dequeuable_cb( tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb dequeuable_cb, void *data) @@ -548,26 +496,6 @@ tbm_surface_queue_remove_dequeuable_cb( } tbm_surface_queue_error_e -tbm_surface_queue_set_acquirable_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb acquirable_cb, - void *data) -{ - TBM_RETURN_VAL_IF_FAIL(surface_queue != NULL, - TBM_SURFACE_QUEUE_ERROR_INVALID_QUEUE); - - pthread_mutex_lock(&surface_queue->lock); - - TBM_QUEUE_TRACE("tbm_surface_queue(%p)\n", surface_queue); - - surface_queue->acquirable_cb = acquirable_cb; - surface_queue->acquirable_cb_data = data; - - pthread_mutex_unlock(&surface_queue->lock); - - return TBM_SURFACE_QUEUE_ERROR_NONE; -} - -tbm_surface_queue_error_e tbm_surface_queue_add_acquirable_cb( tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb acquirable_cb, void *data) @@ -671,26 +599,6 @@ tbm_surface_queue_get_size(tbm_surface_queue_h surface_queue) } tbm_surface_queue_error_e -tbm_surface_queue_set_reset_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb reset_cb, - void *data) -{ - TBM_RETURN_VAL_IF_FAIL(surface_queue != NULL, - TBM_SURFACE_QUEUE_ERROR_INVALID_QUEUE); - - pthread_mutex_lock(&surface_queue->lock); - - TBM_QUEUE_TRACE("tbm_surface_queue(%p)\n", surface_queue); - - surface_queue->reset_cb = reset_cb; - surface_queue->reset_cb_data = data; - - pthread_mutex_unlock(&surface_queue->lock); - - return TBM_SURFACE_QUEUE_ERROR_NONE; -} - -tbm_surface_queue_error_e tbm_surface_queue_add_reset_cb( tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb reset_cb, void *data) @@ -766,8 +674,6 @@ tbm_surface_queue_enqueue(tbm_surface_queue_h pthread_cond_signal(&surface_queue->dirty_cond); _notify_emit(surface_queue, &surface_queue->acquirable_noti); - if (surface_queue->acquirable_cb) - surface_queue->acquirable_cb(surface_queue, surface_queue->acquirable_cb_data); return TBM_SURFACE_QUEUE_ERROR_NONE; } @@ -880,8 +786,6 @@ tbm_surface_queue_release(tbm_surface_queue_h pthread_cond_signal(&surface_queue->free_cond); _notify_emit(surface_queue, &surface_queue->dequeuable_noti); - if (surface_queue->dequeuable_cb) - surface_queue->dequeuable_cb(surface_queue, surface_queue->dequeuable_cb_data); return TBM_SURFACE_QUEUE_ERROR_NONE; } @@ -960,9 +864,6 @@ tbm_surface_queue_destroy(tbm_surface_queue_h surface_queue) TBM_QUEUE_TRACE("tbm_surface_queue(%p)\n", surface_queue); - if (surface_queue->destroy_cb) - surface_queue->destroy_cb(surface_queue, surface_queue->destroy_cb_data); - _notify_emit(surface_queue, &surface_queue->destory_noti); if (surface_queue->impl && surface_queue->impl->destroy) @@ -1019,8 +920,6 @@ tbm_surface_queue_reset(tbm_surface_queue_h pthread_cond_signal(&surface_queue->free_cond); _notify_emit(surface_queue, &surface_queue->reset_noti); - if (surface_queue->reset_cb) - surface_queue->reset_cb(surface_queue, surface_queue->reset_cb_data); return TBM_SURFACE_QUEUE_ERROR_NONE; } @@ -1051,8 +950,6 @@ tbm_surface_queue_flush(tbm_surface_queue_h surface_queue) surface_queue->impl->reset(surface_queue); _notify_emit(surface_queue, &surface_queue->reset_noti); - if (surface_queue->reset_cb) - surface_queue->reset_cb(surface_queue, surface_queue->reset_cb_data); pthread_mutex_unlock(&surface_queue->lock); pthread_cond_signal(&surface_queue->free_cond); diff --git a/src/tbm_surface_queue.h b/src/tbm_surface_queue.h index 812fa9a..e3587b5 100644 --- a/src/tbm_surface_queue.h +++ b/src/tbm_surface_queue.h @@ -133,23 +133,6 @@ tbm_surface_queue_h tbm_surface_queue_create(int queue_size, int width, tbm_surface_queue_h tbm_surface_queue_sequence_create(int queue_size, int width, int height, int format, int flags); - -/*DEPRECATED apis*/ -tbm_surface_queue_error_e tbm_surface_queue_set_destroy_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb destroy_cb, - void *data); - -tbm_surface_queue_error_e tbm_surface_queue_set_dequeuable_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb dequeuable_cb, - void *data); - -tbm_surface_queue_error_e tbm_surface_queue_set_acquirable_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb acquirable_cb, - void *data); - -tbm_surface_queue_error_e tbm_surface_queue_set_reset_cb( - tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb reset_cb, - void *data); #ifdef __cplusplus } #endif |