dmusic: Move a struct to the .c file it is used.
This commit is contained in:
parent
54bf34f1e7
commit
176b7aa842
|
@ -23,6 +23,28 @@
|
|||
WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
|
||||
WINE_DECLARE_DEBUG_CHANNEL(dmfile);
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectMusicCollectionImpl implementation
|
||||
*/
|
||||
typedef struct IDirectMusicCollectionImpl {
|
||||
IDirectMusicCollection IDirectMusicCollection_iface;
|
||||
IDirectMusicObject IDirectMusicObject_iface;
|
||||
IPersistStream IPersistStream_iface;
|
||||
LONG ref;
|
||||
/* IDirectMusicCollectionImpl fields */
|
||||
IStream *pStm; /* stream from which we load collection and later instruments */
|
||||
LARGE_INTEGER liCollectionPosition; /* offset in a stream where collection was loaded from */
|
||||
LARGE_INTEGER liWavePoolTablePosition; /* offset in a stream where wave pool table can be found */
|
||||
DMUS_OBJECTDESC *pDesc;
|
||||
CHAR *szCopyright; /* FIXME: should probably placed somewhere else */
|
||||
DLSHEADER *pHeader;
|
||||
/* pool table */
|
||||
POOLTABLE *pPoolTable;
|
||||
POOLCUE *pPoolCues;
|
||||
/* instruments */
|
||||
struct list Instruments;
|
||||
} IDirectMusicCollectionImpl;
|
||||
|
||||
static inline IDirectMusicCollectionImpl *impl_from_IDirectMusicCollection(IDirectMusicCollection *iface)
|
||||
{
|
||||
return CONTAINING_RECORD(iface, IDirectMusicCollectionImpl, IDirectMusicCollection_iface);
|
||||
|
@ -38,9 +60,6 @@ static inline IDirectMusicCollectionImpl *impl_from_IPersistStream(IPersistStrea
|
|||
return CONTAINING_RECORD(iface, IDirectMusicCollectionImpl, IPersistStream_iface);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectMusicCollectionImpl implementation
|
||||
*/
|
||||
/* IDirectMusicCollectionImpl IUnknown part: */
|
||||
static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_QueryInterface(LPDIRECTMUSICCOLLECTION iface, REFIID riid, LPVOID *ret_iface)
|
||||
{
|
||||
|
|
|
@ -51,7 +51,6 @@ typedef struct IDirectMusicDownloadedInstrumentImpl IDirectMusicDownloadedInstru
|
|||
typedef struct IDirectMusicDownloadImpl IDirectMusicDownloadImpl;
|
||||
typedef struct IReferenceClockImpl IReferenceClockImpl;
|
||||
|
||||
typedef struct IDirectMusicCollectionImpl IDirectMusicCollectionImpl;
|
||||
typedef struct IDirectMusicInstrumentImpl IDirectMusicInstrumentImpl;
|
||||
|
||||
typedef struct SynthPortImpl SynthPortImpl;
|
||||
|
@ -209,30 +208,6 @@ typedef struct _DMUS_PRIVATE_POOLCUE {
|
|||
struct list entry; /* for listing elements */
|
||||
} DMUS_PRIVATE_POOLCUE, *LPDMUS_PRIVATE_POOLCUE;
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectMusicCollectionImpl implementation structure
|
||||
*/
|
||||
struct IDirectMusicCollectionImpl {
|
||||
/* IUnknown fields */
|
||||
IDirectMusicCollection IDirectMusicCollection_iface;
|
||||
IDirectMusicObject IDirectMusicObject_iface;
|
||||
IPersistStream IPersistStream_iface;
|
||||
LONG ref;
|
||||
|
||||
/* IDirectMusicCollectionImpl fields */
|
||||
IStream *pStm; /* stream from which we load collection and later instruments */
|
||||
LARGE_INTEGER liCollectionPosition; /* offset in a stream where collection was loaded from */
|
||||
LARGE_INTEGER liWavePoolTablePosition; /* offset in a stream where wave pool table can be found */
|
||||
LPDMUS_OBJECTDESC pDesc;
|
||||
CHAR* szCopyright; /* FIXME: should probably placed somewhere else */
|
||||
LPDLSHEADER pHeader;
|
||||
/* pool table */
|
||||
LPPOOLTABLE pPoolTable;
|
||||
LPPOOLCUE pPoolCues;
|
||||
/* instruments */
|
||||
struct list Instruments;
|
||||
};
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectMusicInstrumentImpl implementation structure
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue