[PATCH 02/10] d3d8: Mark internal symbols hidden.
Henri Verbeet
hverbeet at codeweavers.com
Thu Sep 17 05:35:22 CDT 2009
---
dlls/d3d8/d3d8_private.h | 47 +++++++++++++++++++++++----------------------
1 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/dlls/d3d8/d3d8_private.h b/dlls/d3d8/d3d8_private.h
index 501aba6..f1c7ded 100644
--- a/dlls/d3d8/d3d8_private.h
+++ b/dlls/d3d8/d3d8_private.h
@@ -97,7 +97,7 @@
_pD3D8Caps->PixelShaderVersion = _pWineCaps->PixelShaderVersion; \
_pD3D8Caps->MaxPixelShaderValue = _pWineCaps->PixelShader1xMaxValue;
-void fixup_caps(WINED3DCAPS *pWineCaps);
+void fixup_caps(WINED3DCAPS *pWineCaps) DECLSPEC_HIDDEN;
/* Direct3D8 Interfaces: */
typedef struct IDirect3DBaseTexture8Impl IDirect3DBaseTexture8Impl;
@@ -133,7 +133,7 @@ typedef struct IDirect3DVertexShader8Impl IDirect3DVertexShader8Impl;
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3D8Vtbl Direct3D8_Vtbl;
+extern const IDirect3D8Vtbl Direct3D8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3D implementation structure
@@ -155,8 +155,8 @@ struct IDirect3D8Impl
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl;
-extern const IWineD3DDeviceParentVtbl d3d8_wined3d_device_parent_vtbl;
+extern const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl DECLSPEC_HIDDEN;
+extern const IWineD3DDeviceParentVtbl d3d8_wined3d_device_parent_vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DDevice8 implementation structure
@@ -235,7 +235,7 @@ struct IDirect3DVolume8Impl
};
HRESULT volume_init(IDirect3DVolume8Impl *volume, IDirect3DDevice8Impl *device, UINT width, UINT height,
- UINT depth, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool);
+ UINT depth, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool) DECLSPEC_HIDDEN;
/* ------------------- */
/* IDirect3DSwapChain8 */
@@ -244,7 +244,7 @@ HRESULT volume_init(IDirect3DVolume8Impl *volume, IDirect3DDevice8Impl *device,
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DSwapChain8Vtbl Direct3DSwapChain8_Vtbl;
+extern const IDirect3DSwapChain8Vtbl Direct3DSwapChain8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DSwapChain8 implementation structure
@@ -290,7 +290,7 @@ struct IDirect3DSurface8Impl
HRESULT surface_init(IDirect3DSurface8Impl *surface, IDirect3DDevice8Impl *device,
UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level,
- DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality);
+ DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality) DECLSPEC_HIDDEN;
/* ------------------ */
/* IDirect3DResource8 */
@@ -299,7 +299,7 @@ HRESULT surface_init(IDirect3DSurface8Impl *surface, IDirect3DDevice8Impl *devic
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DResource8Vtbl Direct3DResource8_Vtbl;
+extern const IDirect3DResource8Vtbl Direct3DResource8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DResource8 implementation structure
@@ -321,7 +321,7 @@ struct IDirect3DResource8Impl
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl;
+extern const IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DVertexBuffer8 implementation structure
@@ -348,7 +348,7 @@ struct IDirect3DVertexBuffer8Impl
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DIndexBuffer8Vtbl Direct3DIndexBuffer8_Vtbl;
+extern const IDirect3DIndexBuffer8Vtbl Direct3DIndexBuffer8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DIndexBuffer8 implementation structure
@@ -392,7 +392,7 @@ struct IDirect3DBaseTexture8Impl
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DCubeTexture8Vtbl Direct3DCubeTexture8_Vtbl;
+extern const IDirect3DCubeTexture8Vtbl Direct3DCubeTexture8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DCubeTexture8 implementation structure
@@ -417,7 +417,7 @@ struct IDirect3DCubeTexture8Impl
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DTexture8Vtbl Direct3DTexture8_Vtbl;
+extern const IDirect3DTexture8Vtbl Direct3DTexture8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DTexture8 implementation structure
@@ -456,7 +456,7 @@ struct IDirect3DVolumeTexture8Impl
};
HRESULT volumetexture_init(IDirect3DVolumeTexture8Impl *texture, IDirect3DDevice8Impl *device,
- UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool);
+ UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN;
/* ----------------------- */
/* IDirect3DStateBlockImpl */
@@ -506,7 +506,7 @@ DECLARE_INTERFACE_(IDirect3DStateBlock8, IUnknown)
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DStateBlock8Vtbl Direct3DStateBlock8_Vtbl;
+extern const IDirect3DStateBlock8Vtbl Direct3DStateBlock8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DStateBlock implementation structure
@@ -539,7 +539,7 @@ DECLARE_INTERFACE_(IDirect3DVertexDeclaration8, IUnknown)
#define IDirect3DVertexDeclaration8_Release(p) (p)->lpVtbl->Release(p)
/*** Implementation ***/
-extern const IDirect3DVertexDeclaration8Vtbl Direct3DVertexDeclaration8_Vtbl;
+extern const IDirect3DVertexDeclaration8Vtbl Direct3DVertexDeclaration8_Vtbl DECLSPEC_HIDDEN;
typedef struct {
const IDirect3DVertexDeclaration8Vtbl *lpVtbl;
@@ -596,7 +596,7 @@ DECLARE_INTERFACE_(IDirect3DPixelShader8,IUnknown)
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DVertexShader8Vtbl Direct3DVertexShader8_Vtbl;
+extern const IDirect3DVertexShader8Vtbl Direct3DVertexShader8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DVertexShader implementation structure
@@ -621,7 +621,7 @@ struct IDirect3DVertexShader8Impl {
/*****************************************************************************
* Predeclare the interface implementation structures
*/
-extern const IDirect3DPixelShader8Vtbl Direct3DPixelShader8_Vtbl;
+extern const IDirect3DPixelShader8Vtbl Direct3DPixelShader8_Vtbl DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirect3DPixelShader implementation structure
@@ -639,13 +639,14 @@ typedef struct IDirect3DPixelShader8Impl {
*
* to see how not defined it here
*/
-D3DFORMAT d3dformat_from_wined3dformat(WINED3DFORMAT format);
-WINED3DFORMAT wined3dformat_from_d3dformat(D3DFORMAT format);
-void load_local_constants(const DWORD *d3d8_elements, IWineD3DVertexShader *wined3d_vertex_shader);
-UINT convert_to_wined3d_declaration(const DWORD *d3d8_elements, DWORD *d3d8_elements_size, WINED3DVERTEXELEMENT **wined3d_elements);
-size_t parse_token(const DWORD* pToken);
+D3DFORMAT d3dformat_from_wined3dformat(WINED3DFORMAT format) DECLSPEC_HIDDEN;
+WINED3DFORMAT wined3dformat_from_d3dformat(D3DFORMAT format) DECLSPEC_HIDDEN;
+void load_local_constants(const DWORD *d3d8_elements, IWineD3DVertexShader *wined3d_vertex_shader) DECLSPEC_HIDDEN;
+UINT convert_to_wined3d_declaration(const DWORD *d3d8_elements, DWORD *d3d8_elements_size,
+ WINED3DVERTEXELEMENT **wined3d_elements) DECLSPEC_HIDDEN;
+size_t parse_token(const DWORD *pToken) DECLSPEC_HIDDEN;
/* Callbacks */
-extern ULONG WINAPI D3D8CB_DestroySwapChain (IWineD3DSwapChain *pSwapChain);
+extern ULONG WINAPI D3D8CB_DestroySwapChain(IWineD3DSwapChain *pSwapChain) DECLSPEC_HIDDEN;
#endif /* __WINE_D3DX8_PRIVATE_H */
--
1.6.0.6
More information about the wine-patches
mailing list