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
f27fbbc8
Commit
f27fbbc8
authored
Jun 02, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Make use of DEFINE_IINSPECTABLE for IClosable from ISpeechSynthesizer.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
54edfab1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
56 deletions
+1
-56
synthesizer.c
dlls/windows.media.speech/synthesizer.c
+1
-56
No files found.
dlls/windows.media.speech/synthesizer.c
View file @
f27fbbc8
...
...
@@ -152,11 +152,6 @@ static inline struct speech_synthesizer *impl_from_ISpeechSynthesizer( ISpeechSy
return
CONTAINING_RECORD
(
iface
,
struct
speech_synthesizer
,
ISpeechSynthesizer_iface
);
}
static
inline
struct
speech_synthesizer
*
impl_from_IClosable
(
IClosable
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
speech_synthesizer
,
IClosable_iface
);
}
static
HRESULT
WINAPI
speech_synthesizer_QueryInterface
(
ISpeechSynthesizer
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
speech_synthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
...
...
@@ -305,61 +300,11 @@ static const struct ISpeechSynthesizer2Vtbl speech_synthesizer2_vtbl =
speech_synthesizer2_get_Options
,
};
static
HRESULT
WINAPI
closable_QueryInterface
(
IClosable
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
speech_synthesizer
*
impl
=
impl_from_IClosable
(
iface
);
return
ISpeechSynthesizer_QueryInterface
(
&
impl
->
ISpeechSynthesizer_iface
,
iid
,
out
);
}
static
ULONG
WINAPI
closable_AddRef
(
IClosable
*
iface
)
{
struct
speech_synthesizer
*
impl
=
impl_from_IClosable
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %lu.
\n
"
,
iface
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
closable_Release
(
IClosable
*
iface
)
{
struct
speech_synthesizer
*
impl
=
impl_from_IClosable
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %lu.
\n
"
,
iface
,
ref
);
if
(
!
ref
)
free
(
impl
);
return
ref
;
}
static
HRESULT
WINAPI
closable_GetIids
(
IClosable
*
iface
,
ULONG
*
iid_count
,
IID
**
iids
)
{
FIXME
(
"iface %p, iid_count %p, iids %p stub.
\n
"
,
iface
,
iid_count
,
iids
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
closable_GetRuntimeClassName
(
IClosable
*
iface
,
HSTRING
*
class_name
)
{
FIXME
(
"iface %p, class_name %p stub.
\n
"
,
iface
,
class_name
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
closable_GetTrustLevel
(
IClosable
*
iface
,
TrustLevel
*
trust_level
)
{
FIXME
(
"iface %p, trust_level %p stub.
\n
"
,
iface
,
trust_level
);
return
E_NOTIMPL
;
}
DEFINE_IINSPECTABLE
(
closable
,
IClosable
,
struct
speech_synthesizer
,
ISpeechSynthesizer_iface
)
static
HRESULT
WINAPI
closable_Close
(
IClosable
*
iface
)
{
FIXME
(
"iface %p stub.
\n
"
,
iface
);
return
E_NOTIMPL
;
}
...
...
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