Commit 717c278b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmstyle: Rename IDirectMusicStyle8Impl method prefix to style.

parent 377ba8a7
...@@ -63,8 +63,7 @@ static inline IDirectMusicStyle8Impl *impl_from_IDirectMusicStyle8(IDirectMusicS ...@@ -63,8 +63,7 @@ static inline IDirectMusicStyle8Impl *impl_from_IDirectMusicStyle8(IDirectMusicS
return CONTAINING_RECORD(iface, IDirectMusicStyle8Impl, IDirectMusicStyle8_iface); return CONTAINING_RECORD(iface, IDirectMusicStyle8Impl, IDirectMusicStyle8_iface);
} }
/* DirectMusicStyle8Impl IDirectMusicStyle8 part: */ static HRESULT WINAPI style_QueryInterface(IDirectMusicStyle8 *iface, REFIID riid,
static HRESULT WINAPI IDirectMusicStyle8Impl_QueryInterface(IDirectMusicStyle8 *iface, REFIID riid,
void **ret_iface) void **ret_iface)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -89,7 +88,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_QueryInterface(IDirectMusicStyle8 * ...@@ -89,7 +88,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_QueryInterface(IDirectMusicStyle8 *
return S_OK; return S_OK;
} }
static ULONG WINAPI IDirectMusicStyle8Impl_AddRef(IDirectMusicStyle8 *iface) static ULONG WINAPI style_AddRef(IDirectMusicStyle8 *iface)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
LONG ref = InterlockedIncrement(&This->ref); LONG ref = InterlockedIncrement(&This->ref);
...@@ -99,7 +98,7 @@ static ULONG WINAPI IDirectMusicStyle8Impl_AddRef(IDirectMusicStyle8 *iface) ...@@ -99,7 +98,7 @@ static ULONG WINAPI IDirectMusicStyle8Impl_AddRef(IDirectMusicStyle8 *iface)
return ref; return ref;
} }
static ULONG WINAPI IDirectMusicStyle8Impl_Release(IDirectMusicStyle8 *iface) static ULONG WINAPI style_Release(IDirectMusicStyle8 *iface)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
LONG ref = InterlockedDecrement(&This->ref); LONG ref = InterlockedDecrement(&This->ref);
...@@ -131,8 +130,7 @@ static ULONG WINAPI IDirectMusicStyle8Impl_Release(IDirectMusicStyle8 *iface) ...@@ -131,8 +130,7 @@ static ULONG WINAPI IDirectMusicStyle8Impl_Release(IDirectMusicStyle8 *iface)
return ref; return ref;
} }
/* IDirectMusicStyle8Impl IDirectMusicStyle(8) part: */ static HRESULT WINAPI style_GetBand(IDirectMusicStyle8 *iface, WCHAR *name,
static HRESULT WINAPI IDirectMusicStyle8Impl_GetBand(IDirectMusicStyle8 *iface, WCHAR *name,
IDirectMusicBand **band) IDirectMusicBand **band)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -167,7 +165,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetBand(IDirectMusicStyle8 *iface, ...@@ -167,7 +165,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetBand(IDirectMusicStyle8 *iface,
return S_FALSE; return S_FALSE;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_EnumBand(IDirectMusicStyle8 *iface, DWORD dwIndex, static HRESULT WINAPI style_EnumBand(IDirectMusicStyle8 *iface, DWORD dwIndex,
WCHAR *pwszName) WCHAR *pwszName)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -175,7 +173,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumBand(IDirectMusicStyle8 *iface, ...@@ -175,7 +173,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumBand(IDirectMusicStyle8 *iface,
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultBand(IDirectMusicStyle8 *iface, static HRESULT WINAPI style_GetDefaultBand(IDirectMusicStyle8 *iface,
IDirectMusicBand **band) IDirectMusicBand **band)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -189,7 +187,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultBand(IDirectMusicStyle8 * ...@@ -189,7 +187,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultBand(IDirectMusicStyle8 *
return S_FALSE; return S_FALSE;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_EnumMotif(IDirectMusicStyle8 *iface, DWORD index, static HRESULT WINAPI style_EnumMotif(IDirectMusicStyle8 *iface, DWORD index,
WCHAR *name) WCHAR *name)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -222,7 +220,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumMotif(IDirectMusicStyle8 *iface ...@@ -222,7 +220,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumMotif(IDirectMusicStyle8 *iface
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetMotif(IDirectMusicStyle8 *iface, WCHAR *pwszName, static HRESULT WINAPI style_GetMotif(IDirectMusicStyle8 *iface, WCHAR *pwszName,
IDirectMusicSegment **ppSegment) IDirectMusicSegment **ppSegment)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -230,7 +228,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetMotif(IDirectMusicStyle8 *iface, ...@@ -230,7 +228,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetMotif(IDirectMusicStyle8 *iface,
return S_FALSE; return S_FALSE;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultChordMap(IDirectMusicStyle8 *iface, static HRESULT WINAPI style_GetDefaultChordMap(IDirectMusicStyle8 *iface,
IDirectMusicChordMap **ppChordMap) IDirectMusicChordMap **ppChordMap)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -238,7 +236,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultChordMap(IDirectMusicStyl ...@@ -238,7 +236,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetDefaultChordMap(IDirectMusicStyl
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_EnumChordMap(IDirectMusicStyle8 *iface, DWORD dwIndex, static HRESULT WINAPI style_EnumChordMap(IDirectMusicStyle8 *iface, DWORD dwIndex,
WCHAR *pwszName) WCHAR *pwszName)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -246,7 +244,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumChordMap(IDirectMusicStyle8 *if ...@@ -246,7 +244,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumChordMap(IDirectMusicStyle8 *if
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetChordMap(IDirectMusicStyle8 *iface, WCHAR *pwszName, static HRESULT WINAPI style_GetChordMap(IDirectMusicStyle8 *iface, WCHAR *pwszName,
IDirectMusicChordMap **ppChordMap) IDirectMusicChordMap **ppChordMap)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -254,7 +252,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetChordMap(IDirectMusicStyle8 *ifa ...@@ -254,7 +252,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetChordMap(IDirectMusicStyle8 *ifa
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetTimeSignature(IDirectMusicStyle8 *iface, static HRESULT WINAPI style_GetTimeSignature(IDirectMusicStyle8 *iface,
DMUS_TIMESIGNATURE *pTimeSig) DMUS_TIMESIGNATURE *pTimeSig)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -262,7 +260,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetTimeSignature(IDirectMusicStyle8 ...@@ -262,7 +260,7 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetTimeSignature(IDirectMusicStyle8
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetEmbellishmentLength(IDirectMusicStyle8 *iface, static HRESULT WINAPI style_GetEmbellishmentLength(IDirectMusicStyle8 *iface,
DWORD dwType, DWORD dwLevel, DWORD *pdwMin, DWORD *pdwMax) DWORD dwType, DWORD dwLevel, DWORD *pdwMin, DWORD *pdwMax)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -270,14 +268,14 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetEmbellishmentLength(IDirectMusic ...@@ -270,14 +268,14 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_GetEmbellishmentLength(IDirectMusic
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_GetTempo(IDirectMusicStyle8 *iface, double *pTempo) static HRESULT WINAPI style_GetTempo(IDirectMusicStyle8 *iface, double *pTempo)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
FIXME("(%p, %p): stub\n", This, pTempo); FIXME("(%p, %p): stub\n", This, pTempo);
return S_OK; return S_OK;
} }
static HRESULT WINAPI IDirectMusicStyle8Impl_EnumPattern(IDirectMusicStyle8 *iface, DWORD dwIndex, static HRESULT WINAPI style_EnumPattern(IDirectMusicStyle8 *iface, DWORD dwIndex,
DWORD dwPatternType, WCHAR *pwszName) DWORD dwPatternType, WCHAR *pwszName)
{ {
IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface); IDirectMusicStyle8Impl *This = impl_from_IDirectMusicStyle8(iface);
...@@ -286,24 +284,23 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumPattern(IDirectMusicStyle8 *ifa ...@@ -286,24 +284,23 @@ static HRESULT WINAPI IDirectMusicStyle8Impl_EnumPattern(IDirectMusicStyle8 *ifa
} }
static const IDirectMusicStyle8Vtbl dmstyle8_vtbl = { static const IDirectMusicStyle8Vtbl dmstyle8_vtbl = {
IDirectMusicStyle8Impl_QueryInterface, style_QueryInterface,
IDirectMusicStyle8Impl_AddRef, style_AddRef,
IDirectMusicStyle8Impl_Release, style_Release,
IDirectMusicStyle8Impl_GetBand, style_GetBand,
IDirectMusicStyle8Impl_EnumBand, style_EnumBand,
IDirectMusicStyle8Impl_GetDefaultBand, style_GetDefaultBand,
IDirectMusicStyle8Impl_EnumMotif, style_EnumMotif,
IDirectMusicStyle8Impl_GetMotif, style_GetMotif,
IDirectMusicStyle8Impl_GetDefaultChordMap, style_GetDefaultChordMap,
IDirectMusicStyle8Impl_EnumChordMap, style_EnumChordMap,
IDirectMusicStyle8Impl_GetChordMap, style_GetChordMap,
IDirectMusicStyle8Impl_GetTimeSignature, style_GetTimeSignature,
IDirectMusicStyle8Impl_GetEmbellishmentLength, style_GetEmbellishmentLength,
IDirectMusicStyle8Impl_GetTempo, style_GetTempo,
IDirectMusicStyle8Impl_EnumPattern style_EnumPattern
}; };
/* IDirectMusicStyle8Impl IDirectMusicObject part: */
static HRESULT WINAPI style_IDirectMusicObject_ParseDescriptor(IDirectMusicObject *iface, static HRESULT WINAPI style_IDirectMusicObject_ParseDescriptor(IDirectMusicObject *iface,
IStream *stream, DMUS_OBJECTDESC *desc) IStream *stream, DMUS_OBJECTDESC *desc)
{ {
...@@ -344,7 +341,6 @@ static const IDirectMusicObjectVtbl dmobject_vtbl = { ...@@ -344,7 +341,6 @@ static const IDirectMusicObjectVtbl dmobject_vtbl = {
style_IDirectMusicObject_ParseDescriptor style_IDirectMusicObject_ParseDescriptor
}; };
/* IDirectMusicStyle8Impl IPersistStream part: */
static inline IDirectMusicStyle8Impl *impl_from_IPersistStream(IPersistStream *iface) static inline IDirectMusicStyle8Impl *impl_from_IPersistStream(IPersistStream *iface)
{ {
return CONTAINING_RECORD(iface, IDirectMusicStyle8Impl, dmobj.IPersistStream_iface); return CONTAINING_RECORD(iface, IDirectMusicStyle8Impl, dmobj.IPersistStream_iface);
...@@ -958,7 +954,6 @@ static const IPersistStreamVtbl persiststream_vtbl = { ...@@ -958,7 +954,6 @@ static const IPersistStreamVtbl persiststream_vtbl = {
unimpl_IPersistStream_GetSizeMax unimpl_IPersistStream_GetSizeMax
}; };
/* for ClassFactory */
HRESULT create_dmstyle(REFIID lpcGUID, void **ppobj) HRESULT create_dmstyle(REFIID lpcGUID, void **ppobj)
{ {
IDirectMusicStyle8Impl* obj; IDirectMusicStyle8Impl* obj;
......
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