Bernhard Kölbl : windows.media.speech: Add IAsyncInfo to IAsyncAction.

Alexandre Julliard julliard at winehq.org
Tue May 24 15:55:00 CDT 2022


Module: wine
Branch: master
Commit: a01fa46146842bb53830073731a8747ddda15476
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a01fa46146842bb53830073731a8747ddda15476

Author: Bernhard Kölbl <besentv at gmail.com>
Date:   Tue May  3 13:37:10 2022 +0200

windows.media.speech: Add IAsyncInfo to IAsyncAction.

Signed-off-by: Bernhard Kölbl <besentv at gmail.com>

---

 dlls/windows.media.speech/async.c | 63 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/dlls/windows.media.speech/async.c b/dlls/windows.media.speech/async.c
index 1abb88528ef..d7ac090be78 100644
--- a/dlls/windows.media.speech/async.c
+++ b/dlls/windows.media.speech/async.c
@@ -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;




More information about the wine-cvs mailing list