Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
c8a0e98b
Commit
c8a0e98b
authored
17 years ago
by
Roy Shea
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qmgr: Implement job lists for IBackgroundCopyManager.
parent
e6cbde10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/qmgr/qmgr.c
+19
-1
19 additions, 1 deletion
dlls/qmgr/qmgr.c
dlls/qmgr/qmgr.h
+2
-0
2 additions, 0 deletions
dlls/qmgr/qmgr.h
with
21 additions
and
1 deletion
dlls/qmgr/qmgr.c
+
19
−
1
View file @
c8a0e98b
...
...
@@ -26,7 +26,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
/* Destructor for instances of background copy manager */
static
void
BackgroundCopyManagerDestructor
(
BackgroundCopyManagerImpl
*
This
)
{
BackgroundCopyJobImpl
*
job
;
TRACE
(
"%p
\n
"
,
This
);
LIST_FOR_EACH_ENTRY
(
job
,
&
This
->
jobs
,
BackgroundCopyJobImpl
,
entryFromQmgr
)
job
->
lpVtbl
->
Release
((
IBackgroundCopyJob
*
)
job
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -91,9 +96,21 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_CreateJob(
GUID
*
pJobId
,
IBackgroundCopyJob
**
ppJob
)
{
BackgroundCopyManagerImpl
*
This
=
(
BackgroundCopyManagerImpl
*
)
iface
;
BackgroundCopyJobImpl
*
job
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
return
BackgroundCopyJobConstructor
(
DisplayName
,
Type
,
pJobId
,
hres
=
BackgroundCopyJobConstructor
(
DisplayName
,
Type
,
pJobId
,
(
LPVOID
*
)
ppJob
);
if
(
FAILED
(
hres
))
return
hres
;
/* Add a reference to the job to job list */
IBackgroundCopyJob_AddRef
(
*
ppJob
);
job
=
(
BackgroundCopyJobImpl
*
)
*
ppJob
;
list_add_head
(
&
This
->
jobs
,
&
job
->
entryFromQmgr
);
return
S_OK
;
}
static
HRESULT
WINAPI
BITS_IBackgroundCopyManager_GetJob
(
...
...
@@ -151,6 +168,7 @@ HRESULT BackgroundCopyManagerConstructor(IUnknown *pUnkOuter, LPVOID *ppObj)
This
->
lpVtbl
=
&
BITS_IBackgroundCopyManager_Vtbl
;
This
->
ref
=
1
;
list_init
(
&
This
->
jobs
);
*
ppObj
=
&
This
->
lpVtbl
;
return
S_OK
;
...
...
This diff is collapsed.
Click to expand it.
dlls/qmgr/qmgr.h
+
2
−
0
View file @
c8a0e98b
...
...
@@ -40,6 +40,7 @@ typedef struct
GUID
jobId
;
struct
list
files
;
BG_JOB_PROGRESS
jobProgress
;
struct
list
entryFromQmgr
;
}
BackgroundCopyJobImpl
;
/* Enum background copy jobs vtbl and related data */
...
...
@@ -74,6 +75,7 @@ typedef struct
{
const
IBackgroundCopyManagerVtbl
*
lpVtbl
;
LONG
ref
;
struct
list
jobs
;
}
BackgroundCopyManagerImpl
;
typedef
struct
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment