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
a01fa461
Commit
a01fa461
authored
May 03, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
May 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Add IAsyncInfo to IAsyncAction.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
38bf1a70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
async.c
dlls/windows.media.speech/async.c
+63
-0
No files found.
dlls/windows.media.speech/async.c
View file @
a01fa461
...
...
@@ -35,6 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(speech);
struct
async_void
{
IAsyncAction
IAsyncAction_iface
;
IAsyncInfo
IAsyncInfo_iface
;
LONG
ref
;
};
...
...
@@ -58,6 +59,12 @@ HRESULT WINAPI async_void_QueryInterface( IAsyncAction *iface, REFIID iid, void
return
S_OK
;
}
if
(
IsEqualGUID
(
iid
,
&
IID_IAsyncInfo
))
{
IInspectable_AddRef
((
*
out
=
&
impl
->
IAsyncInfo_iface
));
return
S_OK
;
}
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
*
out
=
NULL
;
return
E_NOINTERFACE
;
...
...
@@ -131,6 +138,61 @@ static const struct IAsyncActionVtbl async_void_vtbl =
async_void_GetResults
};
/*
*
* IAsyncInfo for IAsyncAction
*
*/
DEFINE_IINSPECTABLE_
(
async_void_info
,
IAsyncInfo
,
struct
async_void
,
impl_from_async_void_IAsyncInfo
,
IAsyncInfo_iface
,
&
impl
->
IAsyncAction_iface
)
static
HRESULT
WINAPI
async_void_info_get_Id
(
IAsyncInfo
*
iface
,
UINT32
*
id
)
{
FIXME
(
"iface %p, id %p stub!
\n
"
,
iface
,
id
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
async_void_info_get_Status
(
IAsyncInfo
*
iface
,
AsyncStatus
*
status
)
{
FIXME
(
"iface %p, status %p.
\n
"
,
iface
,
status
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
async_void_info_get_ErrorCode
(
IAsyncInfo
*
iface
,
HRESULT
*
error_code
)
{
FIXME
(
"iface %p, error_code %p.
\n
"
,
iface
,
error_code
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
async_void_info_Cancel
(
IAsyncInfo
*
iface
)
{
TRACE
(
"iface %p.
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
async_void_info_Close
(
IAsyncInfo
*
iface
)
{
TRACE
(
"iface %p.
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
const
struct
IAsyncInfoVtbl
async_void_info_vtbl
=
{
/* IUnknown methods */
async_void_info_QueryInterface
,
async_void_info_AddRef
,
async_void_info_Release
,
/* IInspectable methods */
async_void_info_GetIids
,
async_void_info_GetRuntimeClassName
,
async_void_info_GetTrustLevel
,
/* IAsyncInfo */
async_void_info_get_Id
,
async_void_info_get_Status
,
async_void_info_get_ErrorCode
,
async_void_info_Cancel
,
async_void_info_Close
};
HRESULT
async_action_create
(
IAsyncAction
**
out
)
{
...
...
@@ -145,6 +207,7 @@ HRESULT async_action_create( IAsyncAction **out )
}
impl
->
IAsyncAction_iface
.
lpVtbl
=
&
async_void_vtbl
;
impl
->
IAsyncInfo_iface
.
lpVtbl
=
&
async_void_info_vtbl
;
impl
->
ref
=
1
;
*
out
=
&
impl
->
IAsyncAction_iface
;
...
...
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