#include "qmgr.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (qmgr) |
|
static HRESULT WINAPI | BackgroundCopyManager_QueryInterface (IBackgroundCopyManager *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | BackgroundCopyManager_AddRef (IBackgroundCopyManager *iface) |
|
static ULONG WINAPI | BackgroundCopyManager_Release (IBackgroundCopyManager *iface) |
|
static HRESULT WINAPI | BackgroundCopyManager_CreateJob (IBackgroundCopyManager *iface, LPCWSTR DisplayName, BG_JOB_TYPE Type, GUID *pJobId, IBackgroundCopyJob **ppJob) |
|
static HRESULT WINAPI | BackgroundCopyManager_GetJob (IBackgroundCopyManager *iface, REFGUID jobID, IBackgroundCopyJob **job) |
|
static HRESULT WINAPI | BackgroundCopyManager_EnumJobs (IBackgroundCopyManager *iface, DWORD flags, IEnumBackgroundCopyJobs **ppEnum) |
|
static HRESULT WINAPI | BackgroundCopyManager_GetErrorDescription (IBackgroundCopyManager *iface, HRESULT hr, DWORD langid, LPWSTR *error_description) |
|
HRESULT | BackgroundCopyManagerConstructor (LPVOID *ppObj) |
|
DWORD WINAPI | fileTransfer (void *param) |
|
◆ BackgroundCopyManager_AddRef()
◆ BackgroundCopyManager_CreateJob()
Definition at line 56 of file qmgr.c.
58{
61
63
67
68
70 IBackgroundCopyJob_AddRef(*ppJob);
75}
static void list_add_head(struct list_entry *head, struct list_entry *entry)
HRESULT BackgroundCopyJobConstructor(LPCWSTR displayName, BG_JOB_TYPE type, GUID *job_id, BackgroundCopyJobImpl **job)
BackgroundCopyManagerImpl globalMgr
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
◆ BackgroundCopyManager_EnumJobs()
Definition at line 108 of file qmgr.c.
110{
113}
HRESULT enum_copy_job_create(BackgroundCopyManagerImpl *qmgr, IEnumBackgroundCopyJobs **enumjob)
◆ BackgroundCopyManager_GetErrorDescription()
Definition at line 115 of file qmgr.c.
117{
118 FIXME(
"(0x%08x 0x%x %p): stub\n",
hr,
langid, error_description);
120}
◆ BackgroundCopyManager_GetJob()
Definition at line 77 of file qmgr.c.
79{
83
85
87
89
91
93 {
95 {
97 IBackgroundCopyJob3_AddRef(&
cur->IBackgroundCopyJob3_iface);
99 break;
100 }
101 }
102
104
106}
#define IsEqualGUID(rguid1, rguid2)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
◆ BackgroundCopyManager_QueryInterface()
Definition at line 28 of file qmgr.c.
30{
32
34 {
36 IBackgroundCopyManager_AddRef(iface);
38 }
39
42}
◆ BackgroundCopyManager_Release()
◆ BackgroundCopyManagerConstructor()
◆ fileTransfer()
Definition at line 148 of file qmgr.c.
149{
152
155
156 for (;;)
157 {
160
161
163 {
165 {
167 IBackgroundCopyJob3_Release(&
job->IBackgroundCopyJob3_iface);
168 }
169 return 0;
170 }
171
172
173
174
176
178 {
179 if (
job->state == BG_JOB_STATE_ACKNOWLEDGED ||
job->state == BG_JOB_STATE_CANCELLED)
180 {
182 IBackgroundCopyJob3_Release(&
job->IBackgroundCopyJob3_iface);
183 }
184 else if (
job->state == BG_JOB_STATE_QUEUED)
185 {
187 break;
188 }
189 else if (
job->state == BG_JOB_STATE_CONNECTING
190 ||
job->state == BG_JOB_STATE_TRANSFERRING)
191 {
192 ERR(
"Invalid state for job %p: %d\n",
job,
job->state);
193 }
194 }
195
196 if (!haveJob)
198
200
201 if (haveJob)
203 }
204}
static void list_remove(struct list_entry *entry)
void processJob(BackgroundCopyJobImpl *job)
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
DWORD WINAPI WaitForMultipleObjects(IN DWORD nCount, IN CONST HANDLE *lpHandles, IN BOOL bWaitAll, IN DWORD dwMilliseconds)
BOOL WINAPI DECLSPEC_HOTPATCH ResetEvent(IN HANDLE hEvent)
Referenced by ServiceMain().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
qmgr |
| ) |
|
◆ BackgroundCopyManagerVtbl
const IBackgroundCopyManagerVtbl BackgroundCopyManagerVtbl |
|
static |
Initial value:=
{
}
static ULONG WINAPI BackgroundCopyManager_AddRef(IBackgroundCopyManager *iface)
static HRESULT WINAPI BackgroundCopyManager_QueryInterface(IBackgroundCopyManager *iface, REFIID riid, void **ppv)
static HRESULT WINAPI BackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface, HRESULT hr, DWORD langid, LPWSTR *error_description)
static HRESULT WINAPI BackgroundCopyManager_CreateJob(IBackgroundCopyManager *iface, LPCWSTR DisplayName, BG_JOB_TYPE Type, GUID *pJobId, IBackgroundCopyJob **ppJob)
static ULONG WINAPI BackgroundCopyManager_Release(IBackgroundCopyManager *iface)
static HRESULT WINAPI BackgroundCopyManager_GetJob(IBackgroundCopyManager *iface, REFGUID jobID, IBackgroundCopyJob **job)
static HRESULT WINAPI BackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface, DWORD flags, IEnumBackgroundCopyJobs **ppEnum)
Definition at line 122 of file qmgr.c.
◆ globalMgr
Initial value:= {
{
NULL, -1, 0, 0, 0, 0 },
}
static const IBackgroundCopyManagerVtbl BackgroundCopyManagerVtbl
Definition at line 26 of file qmgr.c.
Referenced by BackgroundCopyJob_Resume(), BackgroundCopyManager_CreateJob(), BackgroundCopyManager_EnumJobs(), BackgroundCopyManager_GetJob(), BackgroundCopyManagerConstructor(), fileTransfer(), ServiceMain(), and transitionJobState().