Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
72103ab7
Commit
72103ab7
authored
Jun 05, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Update to IBackgroundCopyJob3.
parent
04f3c2bb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
enum_jobs.c
dlls/qmgr/enum_jobs.c
+7
-8
file.c
dlls/qmgr/file.c
+2
-2
job.c
dlls/qmgr/job.c
+0
-0
qmgr.c
dlls/qmgr/qmgr.c
+5
-5
qmgr.h
dlls/qmgr/qmgr.h
+1
-1
No files found.
dlls/qmgr/enum_jobs.c
View file @
72103ab7
...
...
@@ -27,7 +27,7 @@ typedef struct
{
IEnumBackgroundCopyJobs
IEnumBackgroundCopyJobs_iface
;
LONG
ref
;
IBackgroundCopyJob
**
jobs
;
IBackgroundCopyJob
3
**
jobs
;
ULONG
numJobs
;
ULONG
indexJobs
;
}
EnumBackgroundCopyJobsImpl
;
...
...
@@ -75,7 +75,7 @@ static ULONG WINAPI EnumBackgroundCopyJobs_Release(IEnumBackgroundCopyJobs *ifac
if
(
ref
==
0
)
{
for
(
i
=
0
;
i
<
This
->
numJobs
;
i
++
)
IBackgroundCopyJob_Release
(
This
->
jobs
[
i
]);
IBackgroundCopyJob
3
_Release
(
This
->
jobs
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
jobs
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -89,7 +89,7 @@ static HRESULT WINAPI EnumBackgroundCopyJobs_Next(IEnumBackgroundCopyJobs *iface
EnumBackgroundCopyJobsImpl
*
This
=
impl_from_IEnumBackgroundCopyJobs
(
iface
);
ULONG
fetched
;
ULONG
i
;
IBackgroundCopyJob
*
job
;
IBackgroundCopyJob
3
*
job
;
TRACE
(
"(%p)->(%d %p %p)
\n
"
,
This
,
celt
,
rgelt
,
pceltFetched
);
...
...
@@ -112,8 +112,8 @@ static HRESULT WINAPI EnumBackgroundCopyJobs_Next(IEnumBackgroundCopyJobs *iface
for
(
i
=
0
;
i
<
fetched
;
++
i
)
{
job
=
This
->
jobs
[
This
->
indexJobs
++
];
IBackgroundCopyJob_AddRef
(
job
);
rgelt
[
i
]
=
job
;
IBackgroundCopyJob
3
_AddRef
(
job
);
rgelt
[
i
]
=
(
IBackgroundCopyJob
*
)
job
;
}
return
fetched
==
celt
?
S_OK
:
S_FALSE
;
...
...
@@ -213,9 +213,8 @@ HRESULT enum_copy_job_create(BackgroundCopyManagerImpl *qmgr, IEnumBackgroundCop
i
=
0
;
LIST_FOR_EACH_ENTRY
(
job
,
&
qmgr
->
jobs
,
BackgroundCopyJobImpl
,
entryFromQmgr
)
{
IBackgroundCopyJob
*
job_iface
=
(
IBackgroundCopyJob
*
)
&
job
->
IBackgroundCopyJob2_iface
;
IBackgroundCopyJob_AddRef
(
job_iface
);
This
->
jobs
[
i
++
]
=
job_iface
;
IBackgroundCopyJob3_AddRef
(
&
job
->
IBackgroundCopyJob3_iface
);
This
->
jobs
[
i
++
]
=
&
job
->
IBackgroundCopyJob3_iface
;
}
LeaveCriticalSection
(
&
qmgr
->
cs
);
...
...
dlls/qmgr/file.c
View file @
72103ab7
...
...
@@ -82,7 +82,7 @@ static ULONG WINAPI BackgroundCopyFile_Release(
if
(
ref
==
0
)
{
IBackgroundCopyJob
2_Release
(
&
file
->
owner
->
IBackgroundCopyJob2
_iface
);
IBackgroundCopyJob
3_Release
(
&
file
->
owner
->
IBackgroundCopyJob3
_iface
);
HeapFree
(
GetProcessHeap
(),
0
,
file
->
info
.
LocalName
);
HeapFree
(
GetProcessHeap
(),
0
,
file
->
info
.
RemoteName
);
HeapFree
(
GetProcessHeap
(),
0
,
file
);
...
...
@@ -201,7 +201,7 @@ HRESULT BackgroundCopyFileConstructor(BackgroundCopyJobImpl *owner,
This
->
fileProgress
.
BytesTransferred
=
0
;
This
->
fileProgress
.
Completed
=
FALSE
;
This
->
owner
=
owner
;
IBackgroundCopyJob
2_AddRef
(
&
owner
->
IBackgroundCopyJob2
_iface
);
IBackgroundCopyJob
3_AddRef
(
&
owner
->
IBackgroundCopyJob3
_iface
);
*
file
=
This
;
return
S_OK
;
...
...
dlls/qmgr/job.c
View file @
72103ab7
This diff is collapsed.
Click to expand it.
dlls/qmgr/qmgr.c
View file @
72103ab7
...
...
@@ -66,7 +66,7 @@ static HRESULT WINAPI BackgroundCopyManager_CreateJob(IBackgroundCopyManager *if
return
hres
;
/* Add a reference to the job to job list */
*
ppJob
=
(
IBackgroundCopyJob
*
)
&
job
->
IBackgroundCopyJob2
_iface
;
*
ppJob
=
(
IBackgroundCopyJob
*
)
&
job
->
IBackgroundCopyJob3
_iface
;
IBackgroundCopyJob_AddRef
(
*
ppJob
);
EnterCriticalSection
(
&
globalMgr
.
cs
);
list_add_head
(
&
globalMgr
.
jobs
,
&
job
->
entryFromQmgr
);
...
...
@@ -93,8 +93,8 @@ static HRESULT WINAPI BackgroundCopyManager_GetJob(IBackgroundCopyManager *iface
{
if
(
IsEqualGUID
(
&
cur
->
jobId
,
jobID
))
{
*
job
=
(
IBackgroundCopyJob
*
)
&
cur
->
IBackgroundCopyJob2
_iface
;
IBackgroundCopyJob
2_AddRef
(
&
cur
->
IBackgroundCopyJob2
_iface
);
*
job
=
(
IBackgroundCopyJob
*
)
&
cur
->
IBackgroundCopyJob3
_iface
;
IBackgroundCopyJob
3_AddRef
(
&
cur
->
IBackgroundCopyJob3
_iface
);
hr
=
S_OK
;
break
;
}
...
...
@@ -164,7 +164,7 @@ DWORD WINAPI fileTransfer(void *param)
LIST_FOR_EACH_ENTRY_SAFE
(
job
,
jobCur
,
&
qmgr
->
jobs
,
BackgroundCopyJobImpl
,
entryFromQmgr
)
{
list_remove
(
&
job
->
entryFromQmgr
);
IBackgroundCopyJob
2_Release
(
&
job
->
IBackgroundCopyJob2
_iface
);
IBackgroundCopyJob
3_Release
(
&
job
->
IBackgroundCopyJob3
_iface
);
}
return
0
;
}
...
...
@@ -179,7 +179,7 @@ DWORD WINAPI fileTransfer(void *param)
if
(
job
->
state
==
BG_JOB_STATE_ACKNOWLEDGED
||
job
->
state
==
BG_JOB_STATE_CANCELLED
)
{
list_remove
(
&
job
->
entryFromQmgr
);
IBackgroundCopyJob
2_Release
(
&
job
->
IBackgroundCopyJob2
_iface
);
IBackgroundCopyJob
3_Release
(
&
job
->
IBackgroundCopyJob3
_iface
);
}
else
if
(
job
->
state
==
BG_JOB_STATE_QUEUED
)
{
...
...
dlls/qmgr/qmgr.h
View file @
72103ab7
...
...
@@ -36,7 +36,7 @@
/* Background copy job vtbl and related data */
typedef
struct
{
IBackgroundCopyJob
2
IBackgroundCopyJob2
_iface
;
IBackgroundCopyJob
3
IBackgroundCopyJob3
_iface
;
LONG
ref
;
LPWSTR
displayName
;
LPWSTR
description
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment