]> wimlib.net Git - wimlib/blob - programs/imagex-win32.h
58441e83dd699762b51f3999bb0d8dc248a07090
[wimlib] / programs / imagex-win32.h
1 #ifndef _IMAGEX_WIN32_H
2 #define _IMAGEX_WIN32_H
3
4 #include <stddef.h>
5
6 typedef struct {
7         size_t gl_pathc;
8         char **gl_pathv;
9         size_t gl_offs;
10 } glob_t;
11
12 /* WARNING: this is a reduced functionality replacement */
13 extern int glob(const char *pattern, int flags,
14                 int (*errfunc)(const char *epath, int eerrno),
15                 glob_t *pglob);
16
17 extern void globfree(glob_t *pglob);
18
19 #define GLOB_ERR        0x1 /* Return on read errors.  */
20 #define GLOB_NOSORT     0x2 /* Don't sort the names.  */
21
22 /* Error returns from `glob'.  */
23 #define GLOB_NOSPACE    1       /* Ran out of memory.  */
24 #define GLOB_ABORTED    2       /* Read error.  */
25 #define GLOB_NOMATCH    3       /* No matches found.  */
26
27 #endif