From: Sangjin Lee Date: Mon, 14 Mar 2016 09:02:56 +0000 (+0900) Subject: change deprecated APIs X-Git-Tag: accepted/tizen/common/20160317.155505~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66f7ca417b5fbe400b43d52cd8dd21b063c1be1c;p=platform%2Fcore%2Fuifw%2Flibtdm.git change deprecated APIs Change-Id: I82daf13d77b949e9bffb8db14df39f1efcda981d --- diff --git a/src/tdm_display.c b/src/tdm_display.c index 7f4857a..cbcf675 100644 --- a/src/tdm_display.c +++ b/src/tdm_display.c @@ -1290,10 +1290,10 @@ tdm_layer_set_buffer_queue(tdm_layer *layer, tbm_surface_queue_h buffer_queue) } private_layer->buffer_queue = buffer_queue; - tbm_surface_queue_set_acquirable_cb(private_layer->buffer_queue, + tbm_surface_queue_add_acquirable_cb(private_layer->buffer_queue, _tbm_layer_queue_acquirable_cb, layer); - tbm_surface_queue_set_destroy_cb(private_layer->buffer_queue, + tbm_surface_queue_add_destroy_cb(private_layer->buffer_queue, _tbm_layer_queue_destroy_cb, layer); pthread_mutex_unlock(&private_display->lock); @@ -1337,8 +1337,8 @@ tdm_layer_unset_buffer_queue(tdm_layer *layer) private_layer, private_layer->showing_buffer); } - tbm_surface_queue_set_acquirable_cb(private_layer->buffer_queue, NULL, NULL); - tbm_surface_queue_set_destroy_cb(private_layer->buffer_queue, NULL, NULL); + tbm_surface_queue_remove_acquirable_cb(private_layer->buffer_queue, _tbm_layer_queue_acquirable_cb, layer); + tbm_surface_queue_remove_destroy_cb(private_layer->buffer_queue, _tbm_layer_queue_destroy_cb, layer); private_layer->buffer_queue = NULL; private_layer->usable = 1;