#include "qmgr.h"
#include "wine/debug.h"
Go to the source code of this file.
◆ EnumBackgroundCopyFiles_AddRef()
Definition at line 58 of file enum_files.c.
59{
62
65}
#define InterlockedIncrement
static EnumBackgroundCopyFilesImpl * impl_from_IEnumBackgroundCopyFiles(IEnumBackgroundCopyFiles *iface)
◆ EnumBackgroundCopyFiles_Clone()
◆ EnumBackgroundCopyFiles_GetCount()
◆ EnumBackgroundCopyFiles_Next()
Definition at line 87 of file enum_files.c.
89{
94
95 TRACE(
"(%p)->(%d %p %p)\n",
This, celt, rgelt, pceltFetched);
96
97
98
99
100 fetched =
min(celt,
This->numFiles -
This->indexFiles);
101 if (pceltFetched)
102 *pceltFetched = fetched;
103 else
104 {
105
106
107 for (
i = 0;
i < celt;
i++)
109
110
111 if (celt != 1)
113 }
114
115
116 for (
i = 0;
i < fetched;
i++)
117 {
119 IBackgroundCopyFile2_AddRef(
file);
121 }
122
124}
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
◆ EnumBackgroundCopyFiles_QueryInterface()
Definition at line 40 of file enum_files.c.
42{
44
46
48 {
50 IEnumBackgroundCopyFiles_AddRef(iface);
52 }
53
56}
#define IsEqualGUID(rguid1, rguid2)
◆ EnumBackgroundCopyFiles_Release()
Definition at line 67 of file enum_files.c.
68{
72
74
76 {
77 for(
i = 0;
i <
This->numFiles;
i++)
78 IBackgroundCopyFile2_Release(
This->files[
i]);
81 }
82
84}
#define InterlockedDecrement
#define HeapFree(x, y, z)
◆ EnumBackgroundCopyFiles_Reset()
◆ EnumBackgroundCopyFiles_Skip()
Definition at line 127 of file enum_files.c.
129{
131
133
134 if (celt >
This->numFiles -
This->indexFiles)
135 {
138 }
139
140 This->indexFiles += celt;
142}
◆ EnumBackgroundCopyFilesConstructor()
Definition at line 183 of file enum_files.c.
184{
188
189 TRACE(
"%p, %p)\n",
job, enum_files);
190
194
197
198
199 This->indexFiles = 0;
203 if (
This->numFiles > 0)
204 {
206 This->numFiles *
sizeof This->files[0]);
208 {
212 }
213 }
214
217 {
218 IBackgroundCopyFile2_AddRef(&
file->IBackgroundCopyFile2_iface);
219 This->files[
i] = &
file->IBackgroundCopyFile2_iface;
221 }
223
224 *enum_files = &
This->IEnumBackgroundCopyFiles_iface;
226}
static const IEnumBackgroundCopyFilesVtbl EnumBackgroundCopyFilesVtbl
__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 BackgroundCopyJob_EnumFiles().
◆ impl_from_IEnumBackgroundCopyFiles()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
qmgr |
| ) |
|
◆ EnumBackgroundCopyFilesVtbl
const IEnumBackgroundCopyFilesVtbl EnumBackgroundCopyFilesVtbl |
|
static |
Initial value:=
{
}
static HRESULT WINAPI EnumBackgroundCopyFiles_Clone(IEnumBackgroundCopyFiles *iface, IEnumBackgroundCopyFiles **ppenum)
static HRESULT WINAPI EnumBackgroundCopyFiles_QueryInterface(IEnumBackgroundCopyFiles *iface, REFIID riid, void **ppv)
static HRESULT WINAPI EnumBackgroundCopyFiles_Reset(IEnumBackgroundCopyFiles *iface)
static HRESULT WINAPI EnumBackgroundCopyFiles_Skip(IEnumBackgroundCopyFiles *iface, ULONG celt)
static ULONG WINAPI EnumBackgroundCopyFiles_Release(IEnumBackgroundCopyFiles *iface)
static HRESULT WINAPI EnumBackgroundCopyFiles_GetCount(IEnumBackgroundCopyFiles *iface, ULONG *puCount)
static HRESULT WINAPI EnumBackgroundCopyFiles_Next(IEnumBackgroundCopyFiles *iface, ULONG celt, IBackgroundCopyFile **rgelt, ULONG *pceltFetched)
static ULONG WINAPI EnumBackgroundCopyFiles_AddRef(IEnumBackgroundCopyFiles *iface)
Definition at line 171 of file enum_files.c.
Referenced by EnumBackgroundCopyFilesConstructor().