Added support for multi-texturing.
[wine.git] / dlls / dmloader / dmloader_private.h
blob3014d7dc8fc90b391459bdc1b561d8175d54bbe7
1 /* DirectMusicLoader Private Include
3 * Copyright (C) 2003 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __WINE_DMLOADER_PRIVATE_H
21 #define __WINE_DMLOADER_PRIVATE_H
23 #include "windef.h"
24 #include "wine/debug.h"
25 #include "winbase.h"
26 #include "winnt.h"
27 #include "dmusicc.h"
28 #include "dmusici.h"
29 #include "dmusics.h"
30 #include "dmplugin.h"
31 #include "dmusicf.h"
32 #include "dsound.h"
34 /*****************************************************************************
35 * Interfaces
37 typedef struct IDirectMusicLoader8Impl IDirectMusicLoader8Impl;
38 typedef struct IDirectMusicContainerImpl IDirectMusicContainerImpl;
39 typedef struct IDirectMusicGetLoaderImpl IDirectMusicGetLoaderImpl;
41 /*****************************************************************************
42 * Predeclare the interface implementation structures
44 extern ICOM_VTABLE(IDirectMusicLoader8) DirectMusicLoader8_Vtbl;
45 extern ICOM_VTABLE(IDirectMusicContainer) DirectMusicContainer_Vtbl;
46 extern ICOM_VTABLE(IDirectMusicGetLoader) DirectMusicGetLoader_Vtbl;
48 /*****************************************************************************
49 * ClassFactory
51 /* can support IID_IDirectMusicLoader and IID_IDirectMusicLoader8
52 * return always an IDirectMusicLoader8Impl
54 extern HRESULT WINAPI DMUSIC_CreateDirectMusicLoader (LPCGUID lpcGUID, LPDIRECTMUSICLOADER8 *ppDMLoad, LPUNKNOWN pUnkOuter);
55 /* can support IID_IDirectMusicContainer
56 * return always an IDirectMusicContainerImpl
58 extern HRESULT WINAPI DMUSIC_CreateDirectMusicContainer (LPCGUID lpcGUID, LPDIRECTMUSICCONTAINER *ppDMCon, LPUNKNOWN pUnkOuter);
59 /* can support IID_IDirectMusicGetLoader
60 * return always an IDirectMusicGetLoaderImpl
62 extern HRESULT WINAPI DMUSIC_CreateDirectMusicGetLoader (LPCGUID lpcGUID, LPDIRECTMUSICGETLOADER *ppDMGetLoad, LPUNKNOWN pUnkOuter);
64 /*****************************************************************************
65 * IDirectMusicLoader8Impl implementation structure
67 struct IDirectMusicLoader8Impl
69 /* IUnknown fields */
70 ICOM_VFIELD(IDirectMusicLoader8);
71 DWORD ref;
73 /* IDirectMusicLoaderImpl fields */
74 WCHAR wzSearchPath[MAX_PATH];
75 /* IDirectMusicLoader8Impl fields */
78 /* IUnknown: */
79 extern HRESULT WINAPI IDirectMusicLoader8Impl_QueryInterface (LPDIRECTMUSICLOADER8 iface, REFIID riid, LPVOID *ppobj);
80 extern ULONG WINAPI IDirectMusicLoader8Impl_AddRef (LPDIRECTMUSICLOADER8 iface);
81 extern ULONG WINAPI IDirectMusicLoader8Impl_Release (LPDIRECTMUSICLOADER8 iface);
82 /* IDirectMusicLoader: */
83 extern HRESULT WINAPI IDirectMusicLoader8Impl_GetObject (LPDIRECTMUSICLOADER8 iface, LPDMUS_OBJECTDESC pDesc, REFIID riid, LPVOID*ppv);
84 extern HRESULT WINAPI IDirectMusicLoader8Impl_SetObject (LPDIRECTMUSICLOADER8 iface, LPDMUS_OBJECTDESC pDesc);
85 extern HRESULT WINAPI IDirectMusicLoader8Impl_SetSearchDirectory (LPDIRECTMUSICLOADER8 iface, REFGUID rguidClass, WCHAR* pwzPath, BOOL fClear);
86 extern HRESULT WINAPI IDirectMusicLoader8Impl_ScanDirectory (LPDIRECTMUSICLOADER8 iface, REFGUID rguidClass, WCHAR* pwzFileExtension, WCHAR* pwzScanFileName);
87 extern HRESULT WINAPI IDirectMusicLoader8Impl_CacheObject (LPDIRECTMUSICLOADER8 iface, IDirectMusicObject* pObject);
88 extern HRESULT WINAPI IDirectMusicLoader8Impl_ReleaseObject (LPDIRECTMUSICLOADER8 iface, IDirectMusicObject* pObject);
89 extern HRESULT WINAPI IDirectMusicLoader8Impl_ClearCache (LPDIRECTMUSICLOADER8 iface, REFGUID rguidClass);
90 extern HRESULT WINAPI IDirectMusicLoader8Impl_EnableCache (LPDIRECTMUSICLOADER8 iface, REFGUID rguidClass, BOOL fEnable);
91 extern HRESULT WINAPI IDirectMusicLoader8Impl_EnumObject (LPDIRECTMUSICLOADER8 iface, REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc);
92 /* IDirectMusicLoader8: */
93 extern void WINAPI IDirectMusicLoader8Impl_CollectGarbage (LPDIRECTMUSICLOADER8 iface);
94 extern HRESULT WINAPI IDirectMusicLoader8Impl_ReleaseObjectByUnknown (LPDIRECTMUSICLOADER8 iface, IUnknown* pObject);
95 extern HRESULT WINAPI IDirectMusicLoader8Impl_LoadObjectFromFile (LPDIRECTMUSICLOADER8 iface, REFGUID rguidClassID, REFIID iidInterfaceID, WCHAR* pwzFilePath, void** ppObject);
97 /*****************************************************************************
98 * IDirectMusicContainerImpl implementation structure
100 struct IDirectMusicContainerImpl
102 /* IUnknown fields */
103 ICOM_VFIELD(IDirectMusicContainer);
104 DWORD ref;
106 /* IDirectMusicContainerImpl fields */
109 /* IUnknown: */
110 extern HRESULT WINAPI IDirectMusicContainerImpl_QueryInterface (LPDIRECTMUSICCONTAINER iface, REFIID riid, LPVOID *ppobj);
111 extern ULONG WINAPI IDirectMusicContainerImpl_AddRef (LPDIRECTMUSICCONTAINER iface);
112 extern ULONG WINAPI IDirectMusicContainerImpl_Release (LPDIRECTMUSICCONTAINER iface);
113 /* IDirectMusicContainer: */
114 extern HRESULT WINAPI IDirectMusicContainerImpl_EnumObject (LPDIRECTMUSICCONTAINER iface, REFGUID rguidClass, DWORD dwIndex, LPDMUS_OBJECTDESC pDesc, WCHAR* pwszAlias);
116 /*****************************************************************************
117 * IDirectMusicGetLoaderImpl implementation structure
119 struct IDirectMusicGetLoaderImpl
121 /* IUnknown fields */
122 ICOM_VFIELD(IDirectMusicGetLoader);
123 DWORD ref;
125 /* IDirectMusicGetLoaderImpl fields */
128 /* IUnknown: */
129 extern HRESULT WINAPI IDirectMusicGetLoaderImpl_QueryInterface (LPDIRECTMUSICGETLOADER iface, REFIID riid, LPVOID *ppobj);
130 extern ULONG WINAPI IDirectMusicGetLoaderImpl_AddRef (LPDIRECTMUSICGETLOADER iface);
131 extern ULONG WINAPI IDirectMusicGetLoaderImpl_Release (LPDIRECTMUSICGETLOADER iface);
132 /* IDirectMusicGetLoader: */
133 extern HRESULT WINAPI IDirectMusicGetLoaderImpl_GetLoader (LPDIRECTMUSICGETLOADER iface, IDirectMusicLoader** ppLoader);
135 #endif /* __WINE_DMLOADER_PRIVATE_H */