Commit 15bfd4a9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

qmgr: Added parameter tracing for Job and Manager, make naming more compact.

parent 421a26a9
...@@ -25,10 +25,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(qmgr); ...@@ -25,10 +25,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
BackgroundCopyManagerImpl globalMgr; BackgroundCopyManagerImpl globalMgr;
static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(IBackgroundCopyManager *iface, static HRESULT WINAPI BackgroundCopyManager_QueryInterface(IBackgroundCopyManager *iface,
REFIID riid, void **ppv) REFIID riid, void **ppv)
{ {
TRACE("(%p,%s,%p)\n", iface, debugstr_guid(riid), ppv); TRACE("(%s, %p)\n", debugstr_guid(riid), ppv);
if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IBackgroundCopyManager)) if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IBackgroundCopyManager))
{ {
...@@ -41,24 +41,25 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(IBackgroundCopy ...@@ -41,24 +41,25 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(IBackgroundCopy
return E_NOINTERFACE; return E_NOINTERFACE;
} }
static ULONG WINAPI BITS_IBackgroundCopyManager_AddRef(IBackgroundCopyManager *iface) static ULONG WINAPI BackgroundCopyManager_AddRef(IBackgroundCopyManager *iface)
{ {
return 2; return 2;
} }
static ULONG WINAPI BITS_IBackgroundCopyManager_Release(IBackgroundCopyManager *iface) static ULONG WINAPI BackgroundCopyManager_Release(IBackgroundCopyManager *iface)
{ {
return 1; return 1;
} }
/*** IBackgroundCopyManager interface methods ***/ /*** IBackgroundCopyManager interface methods ***/
static HRESULT WINAPI BITS_IBackgroundCopyManager_CreateJob(IBackgroundCopyManager *iface, static HRESULT WINAPI BackgroundCopyManager_CreateJob(IBackgroundCopyManager *iface,
LPCWSTR DisplayName, BG_JOB_TYPE Type, GUID *pJobId, IBackgroundCopyJob **ppJob) LPCWSTR DisplayName, BG_JOB_TYPE Type, GUID *pJobId, IBackgroundCopyJob **ppJob)
{ {
BackgroundCopyJobImpl *job; BackgroundCopyJobImpl *job;
HRESULT hres; HRESULT hres;
TRACE("\n");
TRACE("(%s %d %p %p)\n", debugstr_w(DisplayName), Type, pJobId, ppJob);
hres = BackgroundCopyJobConstructor(DisplayName, Type, pJobId, &job); hres = BackgroundCopyJobConstructor(DisplayName, Type, pJobId, &job);
if (FAILED(hres)) if (FAILED(hres))
...@@ -73,7 +74,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_CreateJob(IBackgroundCopyManag ...@@ -73,7 +74,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_CreateJob(IBackgroundCopyManag
return S_OK; return S_OK;
} }
static HRESULT WINAPI BITS_IBackgroundCopyManager_GetJob(IBackgroundCopyManager *iface, static HRESULT WINAPI BackgroundCopyManager_GetJob(IBackgroundCopyManager *iface,
REFGUID jobID, IBackgroundCopyJob **job) REFGUID jobID, IBackgroundCopyJob **job)
{ {
BackgroundCopyManagerImpl *qmgr = &globalMgr; BackgroundCopyManagerImpl *qmgr = &globalMgr;
...@@ -104,34 +105,33 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_GetJob(IBackgroundCopyManager ...@@ -104,34 +105,33 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_GetJob(IBackgroundCopyManager
return hr; return hr;
} }
static HRESULT WINAPI BITS_IBackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface, static HRESULT WINAPI BackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface,
DWORD dwFlags, IEnumBackgroundCopyJobs **ppEnum) DWORD flags, IEnumBackgroundCopyJobs **ppEnum)
{ {
TRACE("\n"); TRACE("(0x%x %p)\n", flags, ppEnum);
return enum_copy_job_create(&globalMgr, ppEnum); return enum_copy_job_create(&globalMgr, ppEnum);
} }
static HRESULT WINAPI BITS_IBackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface, static HRESULT WINAPI BackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface,
HRESULT hResult, DWORD LanguageId, LPWSTR *pErrorDescription) HRESULT hr, DWORD langid, LPWSTR *error_description)
{ {
FIXME("Not implemented\n"); FIXME("(0x%08x 0x%x %p): stub\n", hr, langid, error_description);
return E_NOTIMPL; return E_NOTIMPL;
} }
static const IBackgroundCopyManagerVtbl BackgroundCopyManagerVtbl =
static const IBackgroundCopyManagerVtbl BITS_IBackgroundCopyManager_Vtbl =
{ {
BITS_IBackgroundCopyManager_QueryInterface, BackgroundCopyManager_QueryInterface,
BITS_IBackgroundCopyManager_AddRef, BackgroundCopyManager_AddRef,
BITS_IBackgroundCopyManager_Release, BackgroundCopyManager_Release,
BITS_IBackgroundCopyManager_CreateJob, BackgroundCopyManager_CreateJob,
BITS_IBackgroundCopyManager_GetJob, BackgroundCopyManager_GetJob,
BITS_IBackgroundCopyManager_EnumJobs, BackgroundCopyManager_EnumJobs,
BITS_IBackgroundCopyManager_GetErrorDescription BackgroundCopyManager_GetErrorDescription
}; };
BackgroundCopyManagerImpl globalMgr = { BackgroundCopyManagerImpl globalMgr = {
{ &BITS_IBackgroundCopyManager_Vtbl }, { &BackgroundCopyManagerVtbl },
{ NULL, -1, 0, 0, 0, 0 }, { NULL, -1, 0, 0, 0, 0 },
NULL, NULL,
LIST_INIT(globalMgr.jobs) LIST_INIT(globalMgr.jobs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment