X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=programs%2Fimagex-win32.h;h=bf1d2a7f0979df29d9abd7851c6d96234914a917;hb=637f86d129be63bb9dc431e8e2ead370330ca5ce;hp=1de8e9845bcfbc7fe25f52536b53dc4e57c35049;hpb=9fb3aaca115429b0af2a623bf20bfceef74f047f;p=wimlib diff --git a/programs/imagex-win32.h b/programs/imagex-win32.h index 1de8e984..bf1d2a7f 100644 --- a/programs/imagex-win32.h +++ b/programs/imagex-win32.h @@ -3,38 +3,27 @@ #include #include +#include -typedef struct { - size_t gl_pathc; - char **gl_pathv; - size_t gl_offs; -} glob_t; +extern wchar_t * +win32_mbs_to_wcs(const char *mbs, size_t mbs_nbytes, size_t *num_wchars_ret); -/* WARNING: this is a reduced functionality replacement */ -extern int glob(const char *pattern, int flags, - int (*errfunc)(const char *epath, int eerrno), - glob_t *pglob); - -extern void globfree(glob_t *pglob); - -#define GLOB_ERR 0x1 /* Return on read errors. */ -#define GLOB_NOSORT 0x2 /* Don't sort the names. */ - -/* Error returns from `glob'. */ -#define GLOB_NOSPACE 1 /* Ran out of memory. */ -#define GLOB_ABORTED 2 /* Read error. */ -#define GLOB_NOMATCH 3 /* No matches found. */ +extern wchar_t * +win32_wbasename(wchar_t *path); extern void -win32_acquire_capture_privileges(); +set_fd_to_binary_mode(int fd); -extern void -win32_release_capture_privileges(); +#include "wgetopt.h" -extern void -win32_acquire_restore_privileges(); +#define optarg woptarg +#define optind woptind +#define opterr wopterr +#define optopt woptopt +#define option woption -extern void -win32_release_restore_privileges(); +#define getopt_long_only wgetopt_long_only +#define getopt_long wgetopt_long +#define getopt wgetopt #endif