libs/vkd3d-utils: Naming conventions.

This commit is contained in:
Henri Verbeet 2016-10-17 17:46:27 +02:00
parent 1be59ad2e3
commit 53e0839698
3 changed files with 13 additions and 13 deletions

View File

@ -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
}

View File

@ -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;

View File

@ -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