From: Joonbum Ko Date: Tue, 27 Apr 2021 10:51:22 +0000 (+0900) Subject: Make the prefix of backend APIs shorten X-Git-Tag: accepted/tizen/unified/20210506.103530~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9f7aefc520f8f79b7cd909cd5a5adb5704b6b0f;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Make the prefix of backend APIs shorten Change-Id: I8ccfcd5402ad9071854f7ea69695a553fe9e213c Signed-off-by: Joonbum Ko --- diff --git a/src/tpl.c b/src/tpl.c index 50e19af..c239b4b 100644 --- a/src/tpl.c +++ b/src/tpl.c @@ -312,7 +312,7 @@ __tpl_display_init_backend(tpl_display_t *display, tpl_backend_type_t type) __tpl_display_init_backend_wayland_vk_wsi(&display->backend); break; case TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD: - __tpl_display_init_backend_wl_vk_wsi_thread(&display->backend); + __tpl_display_init_backend_wl_vk_thread(&display->backend); break; case TPL_BACKEND_TBM: __tpl_display_init_backend_tbm(&display->backend, type); @@ -451,7 +451,7 @@ __tpl_surface_init_backend(tpl_surface_t *surface, tpl_backend_type_t type) __tpl_surface_init_backend_wayland_vk_wsi(&surface->backend); break; case TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD: - __tpl_surface_init_backend_wl_vk_wsi_thread(&surface->backend); + __tpl_surface_init_backend_wl_vk_thread(&surface->backend); break; case TPL_BACKEND_TBM: __tpl_surface_init_backend_tbm(&surface->backend, type); diff --git a/src/tpl_internal.h b/src/tpl_internal.h index 2b663ed..f978f4f 100755 --- a/src/tpl_internal.h +++ b/src/tpl_internal.h @@ -231,7 +231,7 @@ void __tpl_display_init_backend_tbm(tpl_display_backend_t *backend, void __tpl_display_init_backend_wayland_egl(tpl_display_backend_t *backend); void __tpl_display_init_backend_wl_egl_thread(tpl_display_backend_t *backend); void __tpl_display_init_backend_wayland_vk_wsi(tpl_display_backend_t *backend); -void __tpl_display_init_backend_wl_vk_wsi_thread(tpl_display_backend_t *backend); +void __tpl_display_init_backend_wl_vk_thread(tpl_display_backend_t *backend); void __tpl_display_init_backend_x11_dri2(tpl_display_backend_t *backend); void __tpl_display_init_backend_x11_dri3(tpl_display_backend_t *backend); void __tpl_surface_init_backend_tbm(tpl_surface_backend_t *backend, @@ -239,7 +239,7 @@ void __tpl_surface_init_backend_tbm(tpl_surface_backend_t *backend, void __tpl_surface_init_backend_wayland_egl(tpl_surface_backend_t *backend); void __tpl_surface_init_backend_wl_egl_thread(tpl_surface_backend_t *backend); void __tpl_surface_init_backend_wayland_vk_wsi(tpl_surface_backend_t *backend); -void __tpl_surface_init_backend_wl_vk_wsi_thread(tpl_surface_backend_t *backend); +void __tpl_surface_init_backend_wl_vk_thread(tpl_surface_backend_t *backend); void __tpl_surface_init_backend_x11_dri2(tpl_surface_backend_t *backend); void __tpl_surface_init_backend_x11_dri3(tpl_surface_backend_t *backend); diff --git a/src/tpl_wl_vk_thread.c b/src/tpl_wl_vk_thread.c index 185eee7..643f496 100644 --- a/src/tpl_wl_vk_thread.c +++ b/src/tpl_wl_vk_thread.c @@ -659,7 +659,7 @@ static tpl_gsource_functions disp_funcs = { }; static tpl_result_t -__tpl_wl_vk_wsi_display_init(tpl_display_t *display) +__tpl_wl_vk_display_init(tpl_display_t *display) { TPL_ASSERT(display); @@ -774,7 +774,7 @@ free_display: } static void -__tpl_wl_vk_wsi_display_fini(tpl_display_t *display) +__tpl_wl_vk_display_fini(tpl_display_t *display) { tpl_wl_vk_display_t *wl_vk_display; @@ -812,7 +812,7 @@ __tpl_wl_vk_wsi_display_fini(tpl_display_t *display) } static tpl_result_t -__tpl_wl_vk_wsi_display_query_config(tpl_display_t *display, +__tpl_wl_vk_display_query_config(tpl_display_t *display, tpl_surface_type_t surface_type, int red_size, int green_size, int blue_size, int alpha_size, @@ -841,7 +841,7 @@ __tpl_wl_vk_wsi_display_query_config(tpl_display_t *display, } static tpl_result_t -__tpl_wl_vk_wsi_display_filter_config(tpl_display_t *display, +__tpl_wl_vk_display_filter_config(tpl_display_t *display, int *visual_id, int alpha_size) { @@ -852,7 +852,7 @@ __tpl_wl_vk_wsi_display_filter_config(tpl_display_t *display, } static tpl_result_t -__tpl_wl_vk_wsi_display_query_window_supported_buffer_count( +__tpl_wl_vk_display_query_window_supported_buffer_count( tpl_display_t *display, tpl_handle_t window, int *min, int *max) { @@ -871,7 +871,7 @@ __tpl_wl_vk_wsi_display_query_window_supported_buffer_count( } static tpl_result_t -__tpl_wl_vk_wsi_display_query_window_supported_present_modes( +__tpl_wl_vk_display_query_window_supported_present_modes( tpl_display_t *display, tpl_handle_t window, int *present_modes) { @@ -1162,7 +1162,7 @@ static tpl_gsource_functions surf_funcs = { static tpl_result_t -__tpl_wl_vk_wsi_surface_init(tpl_surface_t *surface) +__tpl_wl_vk_surface_init(tpl_surface_t *surface) { tpl_wl_vk_surface_t *wl_vk_surface = NULL; tpl_wl_vk_display_t *wl_vk_display = NULL; @@ -1240,7 +1240,7 @@ __tpl_wl_vk_wsi_surface_init(tpl_surface_t *surface) } static void -__tpl_wl_vk_wsi_surface_fini(tpl_surface_t *surface) +__tpl_wl_vk_surface_fini(tpl_surface_t *surface) { tpl_wl_vk_surface_t *wl_vk_surface = NULL; tpl_wl_vk_display_t *wl_vk_display = NULL; @@ -1288,7 +1288,7 @@ __tpl_wl_vk_wsi_surface_fini(tpl_surface_t *surface) } static tpl_result_t -__tpl_wl_vk_wsi_surface_set_post_interval(tpl_surface_t *surface, +__tpl_wl_vk_surface_set_post_interval(tpl_surface_t *surface, int post_interval) { tpl_wl_vk_surface_t *wl_vk_surface = NULL; @@ -1309,7 +1309,7 @@ __tpl_wl_vk_wsi_surface_set_post_interval(tpl_surface_t *surface, } static tpl_bool_t -__tpl_wl_vk_wsi_surface_validate(tpl_surface_t *surface) +__tpl_wl_vk_surface_validate(tpl_surface_t *surface) { TPL_ASSERT(surface); TPL_ASSERT(surface->backend.data); @@ -1541,7 +1541,7 @@ _thread_swapchain_create_tbm_queue(tpl_wl_vk_surface_t *wl_vk_surface) } static tpl_result_t -__tpl_wl_vk_wsi_surface_create_swapchain(tpl_surface_t *surface, +__tpl_wl_vk_surface_create_swapchain(tpl_surface_t *surface, tbm_format format, int width, int height, int buffer_count, int present_mode) { @@ -1612,7 +1612,7 @@ _thread_swapchain_destroy_tbm_queue(tpl_wl_vk_surface_t *wl_vk_surface) } static tpl_result_t -__tpl_wl_vk_wsi_surface_destroy_swapchain(tpl_surface_t *surface) +__tpl_wl_vk_surface_destroy_swapchain(tpl_surface_t *surface) { tpl_wl_vk_swapchain_t *swapchain = NULL; tpl_wl_vk_surface_t *wl_vk_surface = NULL; @@ -1675,7 +1675,7 @@ __tpl_wl_vk_wsi_surface_destroy_swapchain(tpl_surface_t *surface) } static tpl_result_t -__tpl_wl_vk_wsi_surface_get_swapchain_buffers(tpl_surface_t *surface, +__tpl_wl_vk_surface_get_swapchain_buffers(tpl_surface_t *surface, tbm_surface_h **buffers, int *buffer_count) { @@ -1884,7 +1884,7 @@ _wl_vk_buffer_create(tpl_wl_vk_surface_t *wl_vk_surface, } static tbm_surface_h -__tpl_wl_vk_wsi_surface_dequeue_buffer(tpl_surface_t *surface, +__tpl_wl_vk_surface_dequeue_buffer(tpl_surface_t *surface, uint64_t timeout_ns, int32_t *release_fence) { @@ -1981,7 +1981,7 @@ __tpl_wl_vk_wsi_surface_dequeue_buffer(tpl_surface_t *surface, } static tpl_result_t -__tpl_wl_vk_wsi_surface_cancel_buffer(tpl_surface_t *surface, +__tpl_wl_vk_surface_cancel_buffer(tpl_surface_t *surface, tbm_surface_h tbm_surface) { TPL_ASSERT(surface); @@ -2026,7 +2026,7 @@ __tpl_wl_vk_wsi_surface_cancel_buffer(tpl_surface_t *surface, } static tpl_result_t -__tpl_wl_vk_wsi_surface_enqueue_buffer(tpl_surface_t *surface, +__tpl_wl_vk_surface_enqueue_buffer(tpl_surface_t *surface, tbm_surface_h tbm_surface, int num_rects, const int *rects, int32_t acquire_fence) @@ -2521,44 +2521,44 @@ __tpl_display_choose_backend_wayland_vk_wsi_thread(tpl_handle_t native_dpy) } void -__tpl_display_init_backend_wl_vk_wsi_thread(tpl_display_backend_t *backend) +__tpl_display_init_backend_wl_vk_thread(tpl_display_backend_t *backend) { TPL_ASSERT(backend); backend->type = TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD; backend->data = NULL; - backend->init = __tpl_wl_vk_wsi_display_init; - backend->fini = __tpl_wl_vk_wsi_display_fini; - backend->query_config = __tpl_wl_vk_wsi_display_query_config; - backend->filter_config = __tpl_wl_vk_wsi_display_filter_config; + backend->init = __tpl_wl_vk_display_init; + backend->fini = __tpl_wl_vk_display_fini; + backend->query_config = __tpl_wl_vk_display_query_config; + backend->filter_config = __tpl_wl_vk_display_filter_config; backend->query_window_supported_buffer_count = - __tpl_wl_vk_wsi_display_query_window_supported_buffer_count; + __tpl_wl_vk_display_query_window_supported_buffer_count; backend->query_window_supported_present_modes = - __tpl_wl_vk_wsi_display_query_window_supported_present_modes; + __tpl_wl_vk_display_query_window_supported_present_modes; } void -__tpl_surface_init_backend_wl_vk_wsi_thread(tpl_surface_backend_t *backend) +__tpl_surface_init_backend_wl_vk_thread(tpl_surface_backend_t *backend) { TPL_ASSERT(backend); backend->type = TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD; backend->data = NULL; - backend->init = __tpl_wl_vk_wsi_surface_init; - backend->fini = __tpl_wl_vk_wsi_surface_fini; - backend->validate = __tpl_wl_vk_wsi_surface_validate; + backend->init = __tpl_wl_vk_surface_init; + backend->fini = __tpl_wl_vk_surface_fini; + backend->validate = __tpl_wl_vk_surface_validate; backend->cancel_dequeued_buffer = - __tpl_wl_vk_wsi_surface_cancel_buffer; - backend->dequeue_buffer = __tpl_wl_vk_wsi_surface_dequeue_buffer; - backend->enqueue_buffer = __tpl_wl_vk_wsi_surface_enqueue_buffer; + __tpl_wl_vk_surface_cancel_buffer; + backend->dequeue_buffer = __tpl_wl_vk_surface_dequeue_buffer; + backend->enqueue_buffer = __tpl_wl_vk_surface_enqueue_buffer; backend->get_swapchain_buffers = - __tpl_wl_vk_wsi_surface_get_swapchain_buffers; - backend->create_swapchain = __tpl_wl_vk_wsi_surface_create_swapchain; - backend->destroy_swapchain = __tpl_wl_vk_wsi_surface_destroy_swapchain; + __tpl_wl_vk_surface_get_swapchain_buffers; + backend->create_swapchain = __tpl_wl_vk_surface_create_swapchain; + backend->destroy_swapchain = __tpl_wl_vk_surface_destroy_swapchain; backend->set_post_interval = - __tpl_wl_vk_wsi_surface_set_post_interval; + __tpl_wl_vk_surface_set_post_interval; } static int