#include "qmgr.h"
#include "wine/debug.h"
Go to the source code of this file.
◆ enum_copy_job_create()
Definition at line 179 of file enum_jobs.c.
180{
184
185 TRACE(
"%p, %p)\n", qmgr, enumjob);
186
192
193
195
198
199 if (0 <
This->numJobs)
200 {
202 This->numJobs *
sizeof *
This->jobs);
204 {
208 }
209 }
210 else
212
215 {
216 IBackgroundCopyJob3_AddRef(&
job->IBackgroundCopyJob3_iface);
217 This->jobs[
i++] = &
job->IBackgroundCopyJob3_iface;
218 }
220
221 *enumjob = &
This->IEnumBackgroundCopyJobs_iface;
223}
#define HeapFree(x, y, z)
static const IEnumBackgroundCopyJobsVtbl EnumBackgroundCopyJobsVtbl
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
__WINE_SERVER_LIST_INLINE unsigned int list_count(const struct list *list)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
Referenced by BackgroundCopyManager_EnumJobs().
◆ EnumBackgroundCopyJobs_AddRef()
Definition at line 58 of file enum_jobs.c.
59{
62
64
66}
#define InterlockedIncrement
static EnumBackgroundCopyJobsImpl * impl_from_IEnumBackgroundCopyJobs(IEnumBackgroundCopyJobs *iface)
◆ EnumBackgroundCopyJobs_Clone()
◆ EnumBackgroundCopyJobs_GetCount()
Definition at line 156 of file enum_jobs.c.
158{
160
162
163 *puCount =
This->numJobs;
165}
◆ EnumBackgroundCopyJobs_Next()
Definition at line 86 of file enum_jobs.c.
88{
93
94 TRACE(
"(%p)->(%d %p %p)\n",
This, celt, rgelt, pceltFetched);
95
96 fetched =
min(celt,
This->numJobs -
This->indexJobs);
97 if (pceltFetched)
98 *pceltFetched = fetched;
99 else
100 {
101
102
103 for (
i = 0;
i < celt; ++
i)
105
106
107 if (celt != 1)
109 }
110
111
112 for (
i = 0;
i < fetched; ++
i)
113 {
115 IBackgroundCopyJob3_AddRef(
job);
117 }
118
120}
◆ EnumBackgroundCopyJobs_QueryInterface()
Definition at line 40 of file enum_jobs.c.
42{
44
46
48 {
50 IEnumBackgroundCopyJobs_AddRef(iface);
52 }
53
56}
#define IsEqualGUID(rguid1, rguid2)
◆ EnumBackgroundCopyJobs_Release()
Definition at line 68 of file enum_jobs.c.
69{
73
75
77 for(
i = 0;
i <
This->numJobs;
i++)
78 IBackgroundCopyJob3_Release(
This->jobs[
i]);
81 }
82
84}
#define InterlockedDecrement
◆ EnumBackgroundCopyJobs_Reset()
◆ EnumBackgroundCopyJobs_Skip()
Definition at line 122 of file enum_jobs.c.
123{
125
127
128 if (
This->numJobs -
This->indexJobs < celt)
129 {
132 }
133
134 This->indexJobs += celt;
136}
◆ impl_from_IEnumBackgroundCopyJobs()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
qmgr |
| ) |
|
◆ EnumBackgroundCopyJobsVtbl
const IEnumBackgroundCopyJobsVtbl EnumBackgroundCopyJobsVtbl |
|
static |
Initial value:=
{
}
static HRESULT WINAPI EnumBackgroundCopyJobs_Clone(IEnumBackgroundCopyJobs *iface, IEnumBackgroundCopyJobs **ppenum)
static HRESULT WINAPI EnumBackgroundCopyJobs_GetCount(IEnumBackgroundCopyJobs *iface, ULONG *puCount)
static HRESULT WINAPI EnumBackgroundCopyJobs_Skip(IEnumBackgroundCopyJobs *iface, ULONG celt)
static ULONG WINAPI EnumBackgroundCopyJobs_Release(IEnumBackgroundCopyJobs *iface)
static HRESULT WINAPI EnumBackgroundCopyJobs_Next(IEnumBackgroundCopyJobs *iface, ULONG celt, IBackgroundCopyJob **rgelt, ULONG *pceltFetched)
static HRESULT WINAPI EnumBackgroundCopyJobs_QueryInterface(IEnumBackgroundCopyJobs *iface, REFIID riid, void **ppv)
static ULONG WINAPI EnumBackgroundCopyJobs_AddRef(IEnumBackgroundCopyJobs *iface)
static HRESULT WINAPI EnumBackgroundCopyJobs_Reset(IEnumBackgroundCopyJobs *iface)
Definition at line 167 of file enum_jobs.c.
Referenced by enum_copy_job_create().