Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
94386b4f
Commit
94386b4f
authored
Sep 22, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Get rid of the IDirectMusicSegmentState8Impl typedef.
parent
939162b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
segmentstate.c
dlls/dmime/segmentstate.c
+17
-17
No files found.
dlls/dmime/segmentstate.c
View file @
94386b4f
/* IDirectMusicSegmentState8 Implementation
*
/*
* Copyright (C) 2003-2004 Rok Mandeljc
*
* This program is free software; you can redistribute it and/or
...
...
@@ -22,19 +21,20 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmime
);
typedef
struct
IDirectMusicSegmentState8Impl
{
struct
segment_state
{
IDirectMusicSegmentState8
IDirectMusicSegmentState8_iface
;
LONG
ref
;
}
IDirectMusicSegmentState8Impl
;
};
static
inline
IDirectMusicSegmentState8Impl
*
impl_from_IDirectMusicSegmentState8
(
IDirectMusicSegmentState8
*
iface
)
static
inline
struct
segment_state
*
impl_from_IDirectMusicSegmentState8
(
IDirectMusicSegmentState8
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectMusicSegmentState8Impl
,
IDirectMusicSegmentState8_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
segment_state
,
IDirectMusicSegmentState8_iface
);
}
static
HRESULT
WINAPI
segment_state_QueryInterface
(
IDirectMusicSegmentState8
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_dmguid
(
riid
),
ppobj
);
...
...
@@ -58,7 +58,7 @@ static HRESULT WINAPI segment_state_QueryInterface(IDirectMusicSegmentState8 *if
static
ULONG
WINAPI
segment_state_AddRef
(
IDirectMusicSegmentState8
*
iface
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
...
...
@@ -68,7 +68,7 @@ static ULONG WINAPI segment_state_AddRef(IDirectMusicSegmentState8 *iface)
static
ULONG
WINAPI
segment_state_Release
(
IDirectMusicSegmentState8
*
iface
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
...
...
@@ -80,35 +80,35 @@ static ULONG WINAPI segment_state_Release(IDirectMusicSegmentState8 *iface)
static
HRESULT
WINAPI
segment_state_GetRepeats
(
IDirectMusicSegmentState8
*
iface
,
DWORD
*
pdwRepeats
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pdwRepeats
);
return
S_OK
;
}
static
HRESULT
WINAPI
segment_state_GetSegment
(
IDirectMusicSegmentState8
*
iface
,
IDirectMusicSegment
**
ppSegment
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
ppSegment
);
return
S_OK
;
}
static
HRESULT
WINAPI
segment_state_GetStartTime
(
IDirectMusicSegmentState8
*
iface
,
MUSIC_TIME
*
pmtStart
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pmtStart
);
return
S_OK
;
}
static
HRESULT
WINAPI
segment_state_GetSeek
(
IDirectMusicSegmentState8
*
iface
,
MUSIC_TIME
*
pmtSeek
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pmtSeek
);
return
S_OK
;
}
static
HRESULT
WINAPI
segment_state_GetStartPoint
(
IDirectMusicSegmentState8
*
iface
,
MUSIC_TIME
*
pmtStart
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pmtStart
);
return
S_OK
;
}
...
...
@@ -116,7 +116,7 @@ static HRESULT WINAPI segment_state_GetStartPoint(IDirectMusicSegmentState8 *ifa
static
HRESULT
WINAPI
segment_state_SetTrackConfig
(
IDirectMusicSegmentState8
*
iface
,
REFGUID
rguidTrackClassID
,
DWORD
dwGroupBits
,
DWORD
dwIndex
,
DWORD
dwFlagsOn
,
DWORD
dwFlagsOff
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %s, %ld, %ld, %ld, %ld): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidTrackClassID
),
dwGroupBits
,
dwIndex
,
dwFlagsOn
,
dwFlagsOff
);
return
S_OK
;
}
...
...
@@ -124,7 +124,7 @@ static HRESULT WINAPI segment_state_SetTrackConfig(IDirectMusicSegmentState8 *if
static
HRESULT
WINAPI
segment_state_GetObjectInPath
(
IDirectMusicSegmentState8
*
iface
,
DWORD
dwPChannel
,
DWORD
dwStage
,
DWORD
dwBuffer
,
REFGUID
guidObject
,
DWORD
dwIndex
,
REFGUID
iidInterface
,
void
**
ppObject
)
{
IDirectMusicSegmentState8Impl
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %ld, %ld, %ld, %s, %ld, %s, %p): stub
\n
"
,
This
,
dwPChannel
,
dwStage
,
dwBuffer
,
debugstr_dmguid
(
guidObject
),
dwIndex
,
debugstr_dmguid
(
iidInterface
),
ppObject
);
return
S_OK
;
}
...
...
@@ -146,7 +146,7 @@ static const IDirectMusicSegmentState8Vtbl segment_state_vtbl =
/* for ClassFactory */
HRESULT
create_dmsegmentstate
(
REFIID
riid
,
void
**
ret_iface
)
{
IDirectMusicSegmentState8Impl
*
obj
;
struct
segment_state
*
obj
;
HRESULT
hr
;
*
ret_iface
=
NULL
;
...
...
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