Module: wine Branch: master Commit: cf8c3eca416a00aaf22ec7cd85267ef88c480050 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf8c3eca416a00aaf22ec7cd85...
Author: Huw Davies huw@codeweavers.com Date: Wed Nov 11 10:48:44 2009 +0000
include: Add asynot.idl.
---
dlls/msdaps/usrmarshal.c | 44 ++++++++++++++++++++++++++++++++++ include/Makefile.in | 1 + include/asynot.idl | 59 ++++++++++++++++++++++++++++++++++++++++++++++ include/dbs.idl | 17 +++++++++++++ include/oledb.idl | 1 + tools/make_makefiles | 1 + 6 files changed, 123 insertions(+), 0 deletions(-)
diff --git a/dlls/msdaps/usrmarshal.c b/dlls/msdaps/usrmarshal.c index 2337b5e..6a436a3 100644 --- a/dlls/msdaps/usrmarshal.c +++ b/dlls/msdaps/usrmarshal.c @@ -773,3 +773,47 @@ HRESULT __RPC_STUB ICommandText_SetCommandText_Stub(ICommandText* This, REFGUID
return hr; } + +HRESULT CALLBACK IDBAsynchNotify_OnLowResource_Proxy(IDBAsynchNotify* This, DB_DWRESERVE dwReserved) +{ + FIXME("(%p)->(%08x): stub\n", This, dwReserved); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IDBAsynchNotify_OnLowResource_Stub(IDBAsynchNotify* This, DB_DWRESERVE dwReserved) +{ + FIXME("(%p)->(%08x): stub\n", This, dwReserved); + return E_NOTIMPL; +} + +HRESULT CALLBACK IDBAsynchNotify_OnProgress_Proxy(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation, + DBCOUNTITEM ulProgress, DBCOUNTITEM ulProgressMax, DBASYNCHPHASE eAsynchPhase, + LPOLESTR pwszStatusText) +{ + FIXME("(%p)->(%lx, %d, %d, %d, %d, %s): stub\n", This, hChapter, eOperation, ulProgress, ulProgressMax, + eAsynchPhase, debugstr_w(pwszStatusText)); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IDBAsynchNotify_OnProgress_Stub(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation, + DBCOUNTITEM ulProgress, DBCOUNTITEM ulProgressMax, DBASYNCHPHASE eAsynchPhase, + LPOLESTR pwszStatusText) +{ + FIXME("(%p)->(%lx, %d, %d, %d, %d, %s): stub\n", This, hChapter, eOperation, ulProgress, ulProgressMax, + eAsynchPhase, debugstr_w(pwszStatusText)); + return E_NOTIMPL; +} + +HRESULT CALLBACK IDBAsynchNotify_OnStop_Proxy(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation, + HRESULT hrStatus, LPOLESTR pwszStatusText) +{ + FIXME("(%p)->(%lx, %d, %08x, %s): stub\n", This, hChapter, eOperation, hrStatus, debugstr_w(pwszStatusText)); + return E_NOTIMPL; +} + +HRESULT __RPC_STUB IDBAsynchNotify_OnStop_Stub(IDBAsynchNotify* This, HCHAPTER hChapter, DBASYNCHOP eOperation, + HRESULT hrStatus, LPOLESTR pwszStatusText) +{ + FIXME("(%p)->(%lx, %d, %08x, %s): stub\n", This, hChapter, eOperation, hrStatus, debugstr_w(pwszStatusText)); + return E_NOTIMPL; +} diff --git a/include/Makefile.in b/include/Makefile.in index 2a49856..e34d393 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -105,6 +105,7 @@ SRCDIR_INCLUDES = \ advpub.h \ af_irda.h \ appmgmt.h \ + asynot.idl \ audevcod.h \ audiosessiontypes.h \ aviriff.h \ diff --git a/include/asynot.idl b/include/asynot.idl new file mode 100644 index 0000000..2f52713 --- /dev/null +++ b/include/asynot.idl @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2009 Huw Davies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +[ + object, + uuid(0c733a96-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] +interface IDBAsynchNotify : IUnknown +{ + [local] + HRESULT OnLowResource([in] DB_DWRESERVE dwReserved); + + [call_as(OnLowResource)] + HRESULT RemoteOnLowResource([in] DB_DWRESERVE dwReserved); + + [local] + HRESULT OnProgress([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] DBCOUNTITEM ulProgress, + [in] DBCOUNTITEM ulProgressMax, + [in] DBASYNCHPHASE eAsynchPhase, + [in, annotation("__in_opt")] LPOLESTR pwszStatusText); + + [call_as(OnProgress)] + HRESULT RemoteOnProgress([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] DBCOUNTITEM ulProgress, + [in] DBCOUNTITEM ulProgressMax, + [in] DBASYNCHPHASE eAsynchPhase, + [in, unique, string] LPOLESTR pwszStatusText); + + [local] + HRESULT OnStop([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] HRESULT hrStatus, + [in, annotation("__in_opt")] LPOLESTR pwszStatusText); + + [call_as(OnStop)] + HRESULT RemoteOnStop([in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] HRESULT hrStatus, + [in, unique, string] LPOLESTR pwszStatusText); +} diff --git a/include/dbs.idl b/include/dbs.idl index dd12628..8b3bb0d 100644 --- a/include/dbs.idl +++ b/include/dbs.idl @@ -287,6 +287,23 @@ typedef struct tagDBPARAMS HACCESSOR hAccessor; } DBPARAMS;
+typedef DWORD DBASYNCHOP; + +enum DBASYNCHOPENUM +{ + DBSYNCHOP_OPEN, +}; + +typedef DWORD DBASYNCHPHASE; + +enum DBASYNCHPHASEENUM +{ + DBASYNCHPHASE_INITIALIZATION, + DBASYNCHPHASE_POPULATION, + DBASYNCHPHASE_COMPLETE, + DBASYNCHPHASE_CANCELED, +}; + typedef struct tagRMTPACK { ISequentialStream *pISeqStream; diff --git a/include/oledb.idl b/include/oledb.idl index b525b56..b9f0654 100644 --- a/include/oledb.idl +++ b/include/oledb.idl @@ -54,6 +54,7 @@ typedef DWORD DBHASHVALUE; #include "dbprop.idl" #include "dbinit.idl" #include "dbdsad.idl" +#include "asynot.idl" #include "sesprp.idl" #include "opnrst.idl" #include "row.idl" diff --git a/tools/make_makefiles b/tools/make_makefiles index 828e6b0..1ef571b 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -110,6 +110,7 @@ my %exported_wine_headers = (
my %private_idl_headers = ( "access.idl" => 1, + "asynot.idl" => 1, "axcore.idl" => 1, "axextend.idl" => 1, "binres.idl" => 1,