Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
15024010
Commit
15024010
authored
Sep 06, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Rename IDirectMusicCollectionImpl method prefix to collection.
parent
ed4327ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
25 deletions
+24
-25
collection.c
dlls/dmusic/collection.c
+24
-25
No files found.
dlls/dmusic/collection.c
View file @
15024010
...
...
@@ -54,8 +54,7 @@ static inline IDirectMusicCollectionImpl *impl_from_IPersistStream(IPersistStrea
return
CONTAINING_RECORD
(
iface
,
IDirectMusicCollectionImpl
,
dmobj
.
IPersistStream_iface
);
}
/* IDirectMusicCollectionImpl IUnknown part: */
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_QueryInterface
(
IDirectMusicCollection
*
iface
,
static
HRESULT
WINAPI
collection_QueryInterface
(
IDirectMusicCollection
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
...
...
@@ -80,7 +79,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_QueryInterface(IDirectMusicColl
return
S_OK
;
}
static
ULONG
WINAPI
IDirectMusicCollectionImpl
_AddRef
(
IDirectMusicCollection
*
iface
)
static
ULONG
WINAPI
collection
_AddRef
(
IDirectMusicCollection
*
iface
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -90,7 +89,7 @@ static ULONG WINAPI IDirectMusicCollectionImpl_AddRef(IDirectMusicCollection *if
return
ref
;
}
static
ULONG
WINAPI
IDirectMusicCollectionImpl
_Release
(
IDirectMusicCollection
*
iface
)
static
ULONG
WINAPI
collection
_Release
(
IDirectMusicCollection
*
iface
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -104,8 +103,7 @@ static ULONG WINAPI IDirectMusicCollectionImpl_Release(IDirectMusicCollection *i
return
ref
;
}
/* IDirectMusicCollection Interface follows: */
static
HRESULT
WINAPI
IDirectMusicCollectionImpl_GetInstrument
(
IDirectMusicCollection
*
iface
,
static
HRESULT
WINAPI
collection_GetInstrument
(
IDirectMusicCollection
*
iface
,
DWORD
patch
,
IDirectMusicInstrument
**
instrument
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
...
...
@@ -132,7 +130,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_GetInstrument(IDirectMusicColle
return
DMUS_E_INVALIDPATCH
;
}
static
HRESULT
WINAPI
IDirectMusicCollectionImpl
_EnumInstrument
(
IDirectMusicCollection
*
iface
,
static
HRESULT
WINAPI
collection
_EnumInstrument
(
IDirectMusicCollection
*
iface
,
DWORD
index
,
DWORD
*
patch
,
LPWSTR
name
,
DWORD
name_length
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IDirectMusicCollection
(
iface
);
...
...
@@ -161,16 +159,16 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_EnumInstrument(IDirectMusicColl
return
S_FALSE
;
}
static
const
IDirectMusicCollectionVtbl
DirectMusicCollection_Collection_Vtbl
=
{
IDirectMusicCollectionImpl_QueryInterface
,
IDirectMusicCollectionImpl_AddRef
,
IDirectMusicCollectionImpl_Release
,
IDirectMusicCollectionImpl_GetInstrument
,
IDirectMusicCollectionImpl_EnumInstrument
static
const
IDirectMusicCollectionVtbl
collection_vtbl
=
{
collection_QueryInterface
,
collection_AddRef
,
collection_Release
,
collection_GetInstrument
,
collection_EnumInstrument
,
};
/* IDirectMusicCollectionImpl IDirectMusicObject part: */
static
HRESULT
WINAPI
col_IDirectMusicObject_ParseDescriptor
(
IDirectMusicObject
*
iface
,
static
HRESULT
WINAPI
collection_object_ParseDescriptor
(
IDirectMusicObject
*
iface
,
IStream
*
stream
,
DMUS_OBJECTDESC
*
desc
)
{
struct
chunk_entry
riff
=
{
0
};
...
...
@@ -201,17 +199,17 @@ static HRESULT WINAPI col_IDirectMusicObject_ParseDescriptor(IDirectMusicObject
return
S_OK
;
}
static
const
IDirectMusicObjectVtbl
dmobject_vtbl
=
{
static
const
IDirectMusicObjectVtbl
collection_object_vtbl
=
{
dmobj_IDirectMusicObject_QueryInterface
,
dmobj_IDirectMusicObject_AddRef
,
dmobj_IDirectMusicObject_Release
,
dmobj_IDirectMusicObject_GetDescriptor
,
dmobj_IDirectMusicObject_SetDescriptor
,
col
_IDirectMusicObject_ParseDescriptor
col
lection_object_ParseDescriptor
,
};
/* IDirectMusicCollectionImpl IPersistStream part: */
static
HRESULT
WINAPI
IPersistStreamImpl_Load
(
IPersistStream
*
iface
,
static
HRESULT
WINAPI
collection_stream_Load
(
IPersistStream
*
iface
,
IStream
*
stream
)
{
IDirectMusicCollectionImpl
*
This
=
impl_from_IPersistStream
(
iface
);
...
...
@@ -509,15 +507,16 @@ static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface,
return
S_OK
;
}
static
const
IPersistStreamVtbl
persiststream_vtbl
=
{
static
const
IPersistStreamVtbl
collection_stream_vtbl
=
{
dmobj_IPersistStream_QueryInterface
,
dmobj_IPersistStream_AddRef
,
dmobj_IPersistStream_Release
,
unimpl_IPersistStream_GetClassID
,
unimpl_IPersistStream_IsDirty
,
IPersistStreamImpl
_Load
,
collection_stream
_Load
,
unimpl_IPersistStream_Save
,
unimpl_IPersistStream_GetSizeMax
unimpl_IPersistStream_GetSizeMax
,
};
HRESULT
collection_create
(
IUnknown
**
ret_iface
)
...
...
@@ -526,12 +525,12 @@ HRESULT collection_create(IUnknown **ret_iface)
*
ret_iface
=
NULL
;
if
(
!
(
obj
=
calloc
(
1
,
sizeof
(
*
obj
))))
return
E_OUTOFMEMORY
;
obj
->
IDirectMusicCollection_iface
.
lpVtbl
=
&
DirectMusicCollection_Collection_V
tbl
;
obj
->
IDirectMusicCollection_iface
.
lpVtbl
=
&
collection_v
tbl
;
obj
->
ref
=
1
;
dmobject_init
(
&
obj
->
dmobj
,
&
CLSID_DirectMusicCollection
,
(
IUnknown
*
)
&
obj
->
IDirectMusicCollection_iface
);
obj
->
dmobj
.
IDirectMusicObject_iface
.
lpVtbl
=
&
dm
object_vtbl
;
obj
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persist
stream_vtbl
;
obj
->
dmobj
.
IDirectMusicObject_iface
.
lpVtbl
=
&
collection_
object_vtbl
;
obj
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
collection_
stream_vtbl
;
list_init
(
&
obj
->
Instruments
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment