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);
BackgroundCopyManagerImpl globalMgr;
static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(IBackgroundCopyManager *iface,
static HRESULT WINAPI BackgroundCopyManager_QueryInterface(IBackgroundCopyManager *iface,
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))
{
......@@ -41,24 +41,25 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(IBackgroundCopy
return E_NOINTERFACE;
}
static ULONG WINAPI BITS_IBackgroundCopyManager_AddRef(IBackgroundCopyManager *iface)
static ULONG WINAPI BackgroundCopyManager_AddRef(IBackgroundCopyManager *iface)
{
return 2;
}
static ULONG WINAPI BITS_IBackgroundCopyManager_Release(IBackgroundCopyManager *iface)
static ULONG WINAPI BackgroundCopyManager_Release(IBackgroundCopyManager *iface)
{
return 1;
}
/*** 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)
{
BackgroundCopyJobImpl *job;
HRESULT hres;
TRACE("\n");
TRACE("(%s %d %p %p)\n", debugstr_w(DisplayName), Type, pJobId, ppJob);
hres = BackgroundCopyJobConstructor(DisplayName, Type, pJobId, &job);
if (FAILED(hres))
......@@ -73,7 +74,7 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_CreateJob(IBackgroundCopyManag
return S_OK;
}
static HRESULT WINAPI BITS_IBackgroundCopyManager_GetJob(IBackgroundCopyManager *iface,
static HRESULT WINAPI BackgroundCopyManager_GetJob(IBackgroundCopyManager *iface,
REFGUID jobID, IBackgroundCopyJob **job)
{
BackgroundCopyManagerImpl *qmgr = &globalMgr;
......@@ -104,34 +105,33 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_GetJob(IBackgroundCopyManager
return hr;
}
static HRESULT WINAPI BITS_IBackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface,
DWORD dwFlags, IEnumBackgroundCopyJobs **ppEnum)
static HRESULT WINAPI BackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface,
DWORD flags, IEnumBackgroundCopyJobs **ppEnum)
{
TRACE("\n");
TRACE("(0x%x %p)\n", flags, ppEnum);
return enum_copy_job_create(&globalMgr, ppEnum);
}
static HRESULT WINAPI BITS_IBackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface,
HRESULT hResult, DWORD LanguageId, LPWSTR *pErrorDescription)
static HRESULT WINAPI BackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface,
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;
}
static const IBackgroundCopyManagerVtbl BITS_IBackgroundCopyManager_Vtbl =
static const IBackgroundCopyManagerVtbl BackgroundCopyManagerVtbl =
{
BITS_IBackgroundCopyManager_QueryInterface,
BITS_IBackgroundCopyManager_AddRef,
BITS_IBackgroundCopyManager_Release,
BITS_IBackgroundCopyManager_CreateJob,
BITS_IBackgroundCopyManager_GetJob,
BITS_IBackgroundCopyManager_EnumJobs,
BITS_IBackgroundCopyManager_GetErrorDescription
BackgroundCopyManager_QueryInterface,
BackgroundCopyManager_AddRef,
BackgroundCopyManager_Release,
BackgroundCopyManager_CreateJob,
BackgroundCopyManager_GetJob,
BackgroundCopyManager_EnumJobs,
BackgroundCopyManager_GetErrorDescription
};
BackgroundCopyManagerImpl globalMgr = {
{ &BITS_IBackgroundCopyManager_Vtbl },
{ &BackgroundCopyManagerVtbl },
{ NULL, -1, 0, 0, 0, 0 },
NULL,
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