From c4fffc7c6f3b4ae4cc1f969c2d0985091fe41adb Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Thu, 29 Jan 2015 08:55:56 -0600 Subject: xgl: Remove XGL_* typedef wrappers Part of moving to xgl.h rev#38, svn rev 29293-29302 --- layers/basic.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'layers/basic.cpp') diff --git a/layers/basic.cpp b/layers/basic.cpp index 5b2bb580..ebbc45b6 100644 --- a/layers/basic.cpp +++ b/layers/basic.cpp @@ -28,7 +28,7 @@ #include "xgl_dispatch_table_helper.h" #include "xglLayer.h" -static std::unordered_map tableMap; +static std::unordered_map tableMap; static XGL_LAYER_DISPATCH_TABLE * initLayerTable(const XGL_BASE_LAYER_OBJECT *gpuw) { @@ -36,11 +36,11 @@ static XGL_LAYER_DISPATCH_TABLE * initLayerTable(const XGL_BASE_LAYER_OBJECT *gp XGL_LAYER_DISPATCH_TABLE *pTable; assert(gpuw); - std::unordered_map::const_iterator it = tableMap.find((XGL_VOID *) gpuw); + std::unordered_map::const_iterator it = tableMap.find((void *) gpuw); if (it == tableMap.end()) { pTable = new XGL_LAYER_DISPATCH_TABLE; - tableMap[(XGL_VOID *) gpuw] = pTable; + tableMap[(void *) gpuw] = pTable; } else { return it->second; @@ -58,7 +58,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglLayerExtension1(XGL_DEVICE device) return XGL_SUCCESS; } -XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetExtensionSupport(XGL_PHYSICAL_GPU gpu, const XGL_CHAR* pExtName) +XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetExtensionSupport(XGL_PHYSICAL_GPU gpu, const char* pExtName) { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; XGL_RESULT result; @@ -85,7 +85,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateDevice(XGL_PHYSICAL_GPU gpu, const X printf("Completed wrapped xglCreateDevice() call w/ pDevice, Device %p: %p\n", (void*)pDevice, (void *) *pDevice); return result; } -XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetFormatInfo(XGL_DEVICE device, XGL_FORMAT format, XGL_FORMAT_INFO_TYPE infoType, XGL_SIZE* pDataSize, XGL_VOID* pData) +XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetFormatInfo(XGL_DEVICE device, XGL_FORMAT format, XGL_FORMAT_INFO_TYPE infoType, size_t* pDataSize, void* pData) { XGL_LAYER_DISPATCH_TABLE* pTable = tableMap[device]; @@ -95,7 +95,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetFormatInfo(XGL_DEVICE device, XGL_FORMA return result; } -XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, XGL_SIZE maxLayerCount, XGL_SIZE maxStringSize, XGL_SIZE* pOutLayerCount, XGL_CHAR* const* pOutLayers, XGL_VOID* pReserved) +XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, size_t maxLayerCount, size_t maxStringSize, size_t* pOutLayerCount, char* const* pOutLayers, void* pReserved) { if (gpu != NULL) { @@ -114,7 +114,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, XGL_ XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT*) pReserved; xglGetGpuInfoType fpGetGpuInfo; XGL_PHYSICAL_GPU_PROPERTIES gpuProps; - XGL_SIZE dataSize = sizeof(XGL_PHYSICAL_GPU_PROPERTIES); + size_t dataSize = sizeof(XGL_PHYSICAL_GPU_PROPERTIES); fpGetGpuInfo = (xglGetGpuInfoType) gpuw->pGPA((XGL_PHYSICAL_GPU) gpuw->nextObject, "xglGetGpuInfo"); fpGetGpuInfo((XGL_PHYSICAL_GPU) gpuw->nextObject, XGL_INFO_TYPE_PHYSICAL_GPU_PROPERTIES, &dataSize, &gpuProps); if (gpuProps.vendorId == 0x8086) @@ -129,7 +129,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglEnumerateLayers(XGL_PHYSICAL_GPU gpu, XGL_ } } -XGL_LAYER_EXPORT XGL_VOID * XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XGL_CHAR* pName) +XGL_LAYER_EXPORT void * XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const char* pName) { if (gpu == NULL) return NULL; @@ -137,17 +137,17 @@ XGL_LAYER_EXPORT XGL_VOID * XGLAPI xglGetProcAddr(XGL_PHYSICAL_GPU gpu, const XG initLayerTable((const XGL_BASE_LAYER_OBJECT *) gpu); if (!strncmp("xglGetProcAddr", pName, sizeof("xglGetProcAddr"))) - return (XGL_VOID *) xglGetProcAddr; + return (void *) xglGetProcAddr; else if (!strncmp("xglCreateDevice", pName, sizeof ("xglCreateDevice"))) - return (XGL_VOID *) xglCreateDevice; + return (void *) xglCreateDevice; else if (!strncmp("xglGetExtensionSupport", pName, sizeof ("xglGetExtensionSupport"))) - return (XGL_VOID *) xglGetExtensionSupport; + return (void *) xglGetExtensionSupport; else if (!strncmp("xglEnumerateLayers", pName, sizeof ("xglEnumerateLayers"))) - return (XGL_VOID *) xglEnumerateLayers; + return (void *) xglEnumerateLayers; else if (!strncmp("xglGetFormatInfo", pName, sizeof ("xglGetFormatInfo"))) - return (XGL_VOID *) xglGetFormatInfo; + return (void *) xglGetFormatInfo; else if (!strncmp("xglLayerExtension1", pName, sizeof("xglLayerExtension1"))) - return (XGL_VOID *) xglLayerExtension1; + return (void *) xglLayerExtension1; else { XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu; if (gpuw->pGPA == NULL) -- cgit v1.2.3