Skip to content

Commit be00852

Browse files
rbernonjulliard
authored andcommitted
dmband: Rename IDirectMusicBandImpl prefix to band.
1 parent 02e03a6 commit be00852

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

dlls/dmband/band.c

+26-27
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ static inline IDirectMusicBandImpl *impl_from_IDirectMusicBand(IDirectMusicBand
3939
return CONTAINING_RECORD(iface, IDirectMusicBandImpl, IDirectMusicBand_iface);
4040
}
4141

42-
/* DirectMusicBandImpl IDirectMusicBand part: */
43-
static HRESULT WINAPI IDirectMusicBandImpl_QueryInterface(IDirectMusicBand *iface, REFIID riid,
42+
static HRESULT WINAPI band_QueryInterface(IDirectMusicBand *iface, REFIID riid,
4443
void **ret_iface)
4544
{
4645
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
@@ -64,7 +63,7 @@ static HRESULT WINAPI IDirectMusicBandImpl_QueryInterface(IDirectMusicBand *ifac
6463
return S_OK;
6564
}
6665

67-
static ULONG WINAPI IDirectMusicBandImpl_AddRef(IDirectMusicBand *iface)
66+
static ULONG WINAPI band_AddRef(IDirectMusicBand *iface)
6867
{
6968
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
7069
LONG ref = InterlockedIncrement(&This->ref);
@@ -74,7 +73,7 @@ static ULONG WINAPI IDirectMusicBandImpl_AddRef(IDirectMusicBand *iface)
7473
return ref;
7574
}
7675

77-
static ULONG WINAPI IDirectMusicBandImpl_Release(IDirectMusicBand *iface)
76+
static ULONG WINAPI band_Release(IDirectMusicBand *iface)
7877
{
7978
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
8079
LONG ref = InterlockedDecrement(&This->ref);
@@ -86,7 +85,7 @@ static ULONG WINAPI IDirectMusicBandImpl_Release(IDirectMusicBand *iface)
8685
return ref;
8786
}
8887

89-
static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment(IDirectMusicBand *iface,
88+
static HRESULT WINAPI band_CreateSegment(IDirectMusicBand *iface,
9089
IDirectMusicSegment **segment)
9190
{
9291
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
@@ -110,33 +109,33 @@ static HRESULT WINAPI IDirectMusicBandImpl_CreateSegment(IDirectMusicBand *iface
110109
return hr;
111110
}
112111

113-
static HRESULT WINAPI IDirectMusicBandImpl_Download(IDirectMusicBand *iface,
112+
static HRESULT WINAPI band_Download(IDirectMusicBand *iface,
114113
IDirectMusicPerformance *pPerformance)
115114
{
116115
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
117116
FIXME("(%p, %p): stub\n", This, pPerformance);
118117
return S_OK;
119118
}
120119

121-
static HRESULT WINAPI IDirectMusicBandImpl_Unload(IDirectMusicBand *iface,
120+
static HRESULT WINAPI band_Unload(IDirectMusicBand *iface,
122121
IDirectMusicPerformance *pPerformance)
123122
{
124123
IDirectMusicBandImpl *This = impl_from_IDirectMusicBand(iface);
125124
FIXME("(%p, %p): stub\n", This, pPerformance);
126125
return S_OK;
127126
}
128127

129-
static const IDirectMusicBandVtbl dmband_vtbl = {
130-
IDirectMusicBandImpl_QueryInterface,
131-
IDirectMusicBandImpl_AddRef,
132-
IDirectMusicBandImpl_Release,
133-
IDirectMusicBandImpl_CreateSegment,
134-
IDirectMusicBandImpl_Download,
135-
IDirectMusicBandImpl_Unload
128+
static const IDirectMusicBandVtbl band_vtbl =
129+
{
130+
band_QueryInterface,
131+
band_AddRef,
132+
band_Release,
133+
band_CreateSegment,
134+
band_Download,
135+
band_Unload,
136136
};
137137

138-
/* IDirectMusicBandImpl IDirectMusicObject part: */
139-
static HRESULT WINAPI band_IDirectMusicObject_ParseDescriptor(IDirectMusicObject *iface,
138+
static HRESULT WINAPI band_object_ParseDescriptor(IDirectMusicObject *iface,
140139
IStream *stream, DMUS_OBJECTDESC *desc)
141140
{
142141
struct chunk_entry riff = {0};
@@ -175,18 +174,18 @@ static HRESULT WINAPI band_IDirectMusicObject_ParseDescriptor(IDirectMusicObject
175174
return S_OK;
176175
}
177176

178-
static const IDirectMusicObjectVtbl dmobject_vtbl = {
177+
static const IDirectMusicObjectVtbl band_object_vtbl =
178+
{
179179
dmobj_IDirectMusicObject_QueryInterface,
180180
dmobj_IDirectMusicObject_AddRef,
181181
dmobj_IDirectMusicObject_Release,
182182
dmobj_IDirectMusicObject_GetDescriptor,
183183
dmobj_IDirectMusicObject_SetDescriptor,
184-
band_IDirectMusicObject_ParseDescriptor
184+
band_object_ParseDescriptor,
185185
};
186186

187187
#define DMUS_IO_INSTRUMENT_DX7_SIZE offsetof(DMUS_IO_INSTRUMENT, nPitchBendRange)
188188

189-
/* IDirectMusicBandImpl IPersistStream part: */
190189
static HRESULT parse_instrument(IDirectMusicBandImpl *This, DMUS_PRIVATE_CHUNK *pChunk,
191190
IStream *pStm)
192191
{
@@ -447,7 +446,7 @@ static inline IDirectMusicBandImpl *impl_from_IPersistStream(IPersistStream *ifa
447446
return CONTAINING_RECORD(iface, IDirectMusicBandImpl, dmobj.IPersistStream_iface);
448447
}
449448

450-
static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pStm)
449+
static HRESULT WINAPI band_persist_stream_Load(IPersistStream *iface, IStream *pStm)
451450
{
452451
IDirectMusicBandImpl *This = impl_from_IPersistStream(iface);
453452
DMUS_PRIVATE_CHUNK Chunk;
@@ -490,30 +489,30 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pS
490489
return S_OK;
491490
}
492491

493-
static const IPersistStreamVtbl persiststream_vtbl = {
492+
static const IPersistStreamVtbl band_persist_stream_vtbl =
493+
{
494494
dmobj_IPersistStream_QueryInterface,
495495
dmobj_IPersistStream_AddRef,
496496
dmobj_IPersistStream_Release,
497497
unimpl_IPersistStream_GetClassID,
498498
unimpl_IPersistStream_IsDirty,
499-
IPersistStreamImpl_Load,
499+
band_persist_stream_Load,
500500
unimpl_IPersistStream_Save,
501-
unimpl_IPersistStream_GetSizeMax
501+
unimpl_IPersistStream_GetSizeMax,
502502
};
503503

504-
/* for ClassFactory */
505504
HRESULT create_dmband(REFIID lpcGUID, void **ppobj)
506505
{
507506
IDirectMusicBandImpl* obj;
508507
HRESULT hr;
509508

510509
*ppobj = NULL;
511510
if (!(obj = calloc(1, sizeof(*obj)))) return E_OUTOFMEMORY;
512-
obj->IDirectMusicBand_iface.lpVtbl = &dmband_vtbl;
511+
obj->IDirectMusicBand_iface.lpVtbl = &band_vtbl;
513512
obj->ref = 1;
514513
dmobject_init(&obj->dmobj, &CLSID_DirectMusicBand, (IUnknown *)&obj->IDirectMusicBand_iface);
515-
obj->dmobj.IDirectMusicObject_iface.lpVtbl = &dmobject_vtbl;
516-
obj->dmobj.IPersistStream_iface.lpVtbl = &persiststream_vtbl;
514+
obj->dmobj.IDirectMusicObject_iface.lpVtbl = &band_object_vtbl;
515+
obj->dmobj.IPersistStream_iface.lpVtbl = &band_persist_stream_vtbl;
517516
list_init (&obj->Instruments);
518517

519518
hr = IDirectMusicBand_QueryInterface(&obj->IDirectMusicBand_iface, lpcGUID, ppobj);

0 commit comments

Comments
 (0)