Commit 0b4bc2f9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmstyle: Move struct definitions to the files that need them.

parent 15eba399
...@@ -28,6 +28,14 @@ static ULONG WINAPI IDirectMusicAuditionTrack_IPersistStream_AddRef (LPPERSISTST ...@@ -28,6 +28,14 @@ static ULONG WINAPI IDirectMusicAuditionTrack_IPersistStream_AddRef (LPPERSISTST
/***************************************************************************** /*****************************************************************************
* IDirectMusicAuditionTrack implementation * IDirectMusicAuditionTrack implementation
*/ */
typedef struct IDirectMusicAuditionTrack {
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
DMUS_OBJECTDESC *pDesc;
} IDirectMusicAuditionTrack;
/* IDirectMusicAuditionTrack IUnknown part: */ /* IDirectMusicAuditionTrack IUnknown part: */
static HRESULT WINAPI IDirectMusicAuditionTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) { static HRESULT WINAPI IDirectMusicAuditionTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {
ICOM_THIS_MULTI(IDirectMusicAuditionTrack, UnknownVtbl, iface); ICOM_THIS_MULTI(IDirectMusicAuditionTrack, UnknownVtbl, iface);
......
...@@ -30,6 +30,15 @@ static ULONG WINAPI IDirectMusicChordTrack_IPersistStream_AddRef (LPPERSISTSTREA ...@@ -30,6 +30,15 @@ static ULONG WINAPI IDirectMusicChordTrack_IPersistStream_AddRef (LPPERSISTSTREA
/***************************************************************************** /*****************************************************************************
* IDirectMusicChordTrack implementation * IDirectMusicChordTrack implementation
*/ */
typedef struct IDirectMusicChordTrack {
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
DMUS_OBJECTDESC *pDesc;
DWORD dwScale;
} IDirectMusicChordTrack;
/* IDirectMusicChordTrack IUnknown part: */ /* IDirectMusicChordTrack IUnknown part: */
static HRESULT WINAPI IDirectMusicChordTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) { static HRESULT WINAPI IDirectMusicChordTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {
ICOM_THIS_MULTI(IDirectMusicChordTrack, UnknownVtbl, iface); ICOM_THIS_MULTI(IDirectMusicChordTrack, UnknownVtbl, iface);
......
...@@ -29,6 +29,15 @@ static ULONG WINAPI IDirectMusicCommandTrack_IPersistStream_AddRef (LPPERSISTSTR ...@@ -29,6 +29,15 @@ static ULONG WINAPI IDirectMusicCommandTrack_IPersistStream_AddRef (LPPERSISTSTR
/***************************************************************************** /*****************************************************************************
* IDirectMusicCommandTrack implementation * IDirectMusicCommandTrack implementation
*/ */
typedef struct IDirectMusicCommandTrack {
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
DMUS_OBJECTDESC *pDesc;
struct list Commands;
} IDirectMusicCommandTrack;
/* IDirectMusicCommandTrack IUnknown part: */ /* IDirectMusicCommandTrack IUnknown part: */
static HRESULT WINAPI IDirectMusicCommandTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) { static HRESULT WINAPI IDirectMusicCommandTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {
ICOM_THIS_MULTI(IDirectMusicCommandTrack, UnknownVtbl, iface); ICOM_THIS_MULTI(IDirectMusicCommandTrack, UnknownVtbl, iface);
......
...@@ -45,13 +45,7 @@ ...@@ -45,13 +45,7 @@
/***************************************************************************** /*****************************************************************************
* Interfaces * Interfaces
*/ */
typedef struct IDirectMusicAuditionTrack IDirectMusicAuditionTrack;
typedef struct IDirectMusicChordTrack IDirectMusicChordTrack;
typedef struct IDirectMusicCommandTrack IDirectMusicCommandTrack;
typedef struct IDirectMusicMelodyFormulationTrack IDirectMusicMelodyFormulationTrack; typedef struct IDirectMusicMelodyFormulationTrack IDirectMusicMelodyFormulationTrack;
typedef struct IDirectMusicMotifTrack IDirectMusicMotifTrack;
typedef struct IDirectMusicMuteTrack IDirectMusicMuteTrack;
typedef struct IDirectMusicStyleTrack IDirectMusicStyleTrack;
/***************************************************************************** /*****************************************************************************
* ClassFactory * ClassFactory
...@@ -97,35 +91,6 @@ typedef struct _DMUS_PRIVATE_STYLE_ITEM { ...@@ -97,35 +91,6 @@ typedef struct _DMUS_PRIVATE_STYLE_ITEM {
} DMUS_PRIVATE_STYLE_ITEM, *LPDMUS_PRIVATE_STYLE_ITEM; } DMUS_PRIVATE_STYLE_ITEM, *LPDMUS_PRIVATE_STYLE_ITEM;
/*****************************************************************************
* IDirectMusicAuditionTrack implementation structure
*/
struct IDirectMusicAuditionTrack {
/* IUnknown fields */
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
/* IDirectMusicAuditionTrack fields */
LPDMUS_OBJECTDESC pDesc;
};
/*****************************************************************************
* IDirectMusicChordTrack implementation structure
*/
struct IDirectMusicChordTrack {
/* IUnknown fields */
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
/* IDirectMusicChordTrack fields */
LPDMUS_OBJECTDESC pDesc;
DWORD dwScale;
};
typedef struct _DMUS_PRIVATE_COMMAND { typedef struct _DMUS_PRIVATE_COMMAND {
struct list entry; /* for listing elements */ struct list entry; /* for listing elements */
DMUS_IO_COMMAND pCommand; DMUS_IO_COMMAND pCommand;
...@@ -133,22 +98,6 @@ typedef struct _DMUS_PRIVATE_COMMAND { ...@@ -133,22 +98,6 @@ typedef struct _DMUS_PRIVATE_COMMAND {
} DMUS_PRIVATE_COMMAND, *LPDMUS_PRIVATE_COMMAND; } DMUS_PRIVATE_COMMAND, *LPDMUS_PRIVATE_COMMAND;
/***************************************************************************** /*****************************************************************************
* IDirectMusicCommandTrack implementation structure
*/
struct IDirectMusicCommandTrack {
/* IUnknown fields */
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
/* IDirectMusicCommandTrack fields */
LPDMUS_OBJECTDESC pDesc;
/* track data */
struct list Commands;
};
/*****************************************************************************
* IDirectMusicMelodyFormulationTrack implementation structure * IDirectMusicMelodyFormulationTrack implementation structure
*/ */
struct IDirectMusicMelodyFormulationTrack { struct IDirectMusicMelodyFormulationTrack {
...@@ -170,50 +119,6 @@ extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IDirectMusicTrack_AddRe ...@@ -170,50 +119,6 @@ extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IDirectMusicTrack_AddRe
/* IPersistStream: */ /* IPersistStream: */
extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface) DECLSPEC_HIDDEN; extern ULONG WINAPI IDirectMusicMelodyFormulationTrack_IPersistStream_AddRef (LPPERSISTSTREAM iface) DECLSPEC_HIDDEN;
/*****************************************************************************
* IDirectMusicMotifTrack implementation structure
*/
struct IDirectMusicMotifTrack {
/* IUnknown fields */
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
/* IDirectMusicMotifTrack fields */
LPDMUS_OBJECTDESC pDesc;
};
/*****************************************************************************
* IDirectMusicMuteTrack implementation structure
*/
struct IDirectMusicMuteTrack {
/* IUnknown fields */
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
/* IDirectMusicMuteTrack fields */
LPDMUS_OBJECTDESC pDesc;
};
/*****************************************************************************
* IDirectMusicStyleTrack implementation structure
*/
struct IDirectMusicStyleTrack {
/* IUnknown fields */
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
/* IDirectMusicStyleTrack fields */
LPDMUS_OBJECTDESC pDesc;
struct list Items;
};
/********************************************************************** /**********************************************************************
* Dll lifetime tracking declaration for dmstyle.dll * Dll lifetime tracking declaration for dmstyle.dll
*/ */
......
...@@ -28,6 +28,14 @@ static ULONG WINAPI IDirectMusicMotifTrack_IPersistStream_AddRef (LPPERSISTSTREA ...@@ -28,6 +28,14 @@ static ULONG WINAPI IDirectMusicMotifTrack_IPersistStream_AddRef (LPPERSISTSTREA
/***************************************************************************** /*****************************************************************************
* IDirectMusicMotifTrack implementation * IDirectMusicMotifTrack implementation
*/ */
typedef struct IDirectMusicMotifTrack {
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
DMUS_OBJECTDESC *pDesc;
} IDirectMusicMotifTrack;
/* IDirectMusicMotifTrack IUnknown part: */ /* IDirectMusicMotifTrack IUnknown part: */
static HRESULT WINAPI IDirectMusicMotifTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) { static HRESULT WINAPI IDirectMusicMotifTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {
ICOM_THIS_MULTI(IDirectMusicMotifTrack, UnknownVtbl, iface); ICOM_THIS_MULTI(IDirectMusicMotifTrack, UnknownVtbl, iface);
......
...@@ -28,6 +28,14 @@ static ULONG WINAPI IDirectMusicMuteTrack_IPersistStream_AddRef (LPPERSISTSTREAM ...@@ -28,6 +28,14 @@ static ULONG WINAPI IDirectMusicMuteTrack_IPersistStream_AddRef (LPPERSISTSTREAM
/***************************************************************************** /*****************************************************************************
* IDirectMusicMuteTrack implementation * IDirectMusicMuteTrack implementation
*/ */
typedef struct IDirectMusicMuteTrack {
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
DMUS_OBJECTDESC *pDesc;
} IDirectMusicMuteTrack;
/* IDirectMusicMuteTrack IUnknown part: */ /* IDirectMusicMuteTrack IUnknown part: */
static HRESULT WINAPI IDirectMusicMuteTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) { static HRESULT WINAPI IDirectMusicMuteTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {
ICOM_THIS_MULTI(IDirectMusicMuteTrack, UnknownVtbl, iface); ICOM_THIS_MULTI(IDirectMusicMuteTrack, UnknownVtbl, iface);
......
...@@ -29,6 +29,15 @@ static ULONG WINAPI IDirectMusicStyleTrack_IPersistStream_AddRef (LPPERSISTSTREA ...@@ -29,6 +29,15 @@ static ULONG WINAPI IDirectMusicStyleTrack_IPersistStream_AddRef (LPPERSISTSTREA
/***************************************************************************** /*****************************************************************************
* IDirectMusicStyleTrack implementation * IDirectMusicStyleTrack implementation
*/ */
typedef struct IDirectMusicStyleTrack {
const IUnknownVtbl *UnknownVtbl;
const IDirectMusicTrack8Vtbl *TrackVtbl;
const IPersistStreamVtbl *PersistStreamVtbl;
LONG ref;
DMUS_OBJECTDESC *pDesc;
struct list Items;
} IDirectMusicStyleTrack;
/* IDirectMusicStyleTrack IUnknown part: */ /* IDirectMusicStyleTrack IUnknown part: */
static HRESULT WINAPI IDirectMusicStyleTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) { static HRESULT WINAPI IDirectMusicStyleTrack_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {
ICOM_THIS_MULTI(IDirectMusicStyleTrack, UnknownVtbl, iface); ICOM_THIS_MULTI(IDirectMusicStyleTrack, UnknownVtbl, iface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment