From 53e0839698a7672424e8c3f77aad0d3c81723bf0 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 17 Oct 2016 17:46:27 +0200 Subject: [PATCH] libs/vkd3d-utils: Naming conventions. --- include/vkd3d_utils.h | 8 ++++---- libs/vkd3d-utils/vkd3d_utils_main.c | 10 +++++----- tests/d3d12.c | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/vkd3d_utils.h b/include/vkd3d_utils.h index 6b13d3d2..a1ea425c 100644 --- a/include/vkd3d_utils.h +++ b/include/vkd3d_utils.h @@ -34,10 +34,10 @@ extern "C" { #define WAIT_FAILED (~0u) #define INFINITE (~0u) -HANDLE WINAPI VKD3DCreateEvent(void); -BOOL WINAPI VKD3DSignalEvent(HANDLE event); -unsigned int WINAPI VKD3DWaitEvent(HANDLE event, unsigned int milliseconds); -void WINAPI VKD3DDestroyEvent(HANDLE event); +HANDLE WINAPI vkd3d_create_event(void); +BOOL WINAPI vkd3d_signal_event(HANDLE event); +unsigned int WINAPI vkd3d_wait_event(HANDLE event, unsigned int milliseconds); +void WINAPI vkd3d_destroy_event(HANDLE event); #ifdef __cplusplus } diff --git a/libs/vkd3d-utils/vkd3d_utils_main.c b/libs/vkd3d-utils/vkd3d_utils_main.c index e7933633..7c9bb75a 100644 --- a/libs/vkd3d-utils/vkd3d_utils_main.c +++ b/libs/vkd3d-utils/vkd3d_utils_main.c @@ -41,13 +41,13 @@ HRESULT WINAPI D3D12CreateDevice(IUnknown *adapter, FIXME("Ignoring adapter %p.\n", adapter); create_info.minimum_feature_level = minimum_feature_level; - create_info.signal_event_pfn = VKD3DSignalEvent; + create_info.signal_event_pfn = vkd3d_signal_event; return vkd3d_create_device(&create_info, riid, device); } /* Events */ -HANDLE WINAPI VKD3DCreateEvent(void) +HANDLE WINAPI vkd3d_create_event(void) { struct vkd3d_event *event; int rc; @@ -78,7 +78,7 @@ HANDLE WINAPI VKD3DCreateEvent(void) return event; } -unsigned int WINAPI VKD3DWaitEvent(HANDLE event, unsigned int milliseconds) +unsigned int WINAPI vkd3d_wait_event(HANDLE event, unsigned int milliseconds) { struct vkd3d_event *impl = event; int rc; @@ -121,7 +121,7 @@ unsigned int WINAPI VKD3DWaitEvent(HANDLE event, unsigned int milliseconds) return WAIT_FAILED; } -BOOL WINAPI VKD3DSignalEvent(HANDLE event) +BOOL WINAPI vkd3d_signal_event(HANDLE event) { struct vkd3d_event *impl = event; int rc; @@ -140,7 +140,7 @@ BOOL WINAPI VKD3DSignalEvent(HANDLE event) return TRUE; } -void WINAPI VKD3DDestroyEvent(HANDLE event) +void WINAPI vkd3d_destroy_event(HANDLE event) { struct vkd3d_event *impl = event; int rc; diff --git a/tests/d3d12.c b/tests/d3d12.c index 3987c60f..31119bf3 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -164,22 +164,22 @@ static void destroy_event(HANDLE event) #else static HANDLE create_event(void) { - return VKD3DCreateEvent(); + return vkd3d_create_event(); } static void signal_event(HANDLE event) { - VKD3DSignalEvent(event); + vkd3d_signal_event(event); } static unsigned int wait_event(HANDLE event, unsigned int milliseconds) { - return VKD3DWaitEvent(event, milliseconds); + return vkd3d_wait_event(event, milliseconds); } static void destroy_event(HANDLE event) { - VKD3DDestroyEvent(event); + vkd3d_destroy_event(event); } #endif