]> wimlib.net Git - wimlib/blobdiff - programs/imagex-win32.h
wimcapture.1: 7-Zip 15.12 supports LZMS decompression
[wimlib] / programs / imagex-win32.h
index 58441e83dd699762b51f3999bb0d8dc248a07090..11143f7b5429c6151d396955cdd68d4ec1d5e552 100644 (file)
@@ -2,26 +2,29 @@
 #define _IMAGEX_WIN32_H
 
 #include <stddef.h>
+#include <stdbool.h>
+#include <inttypes.h>
+#include <wchar.h>
 
-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
+win32_print_security_descriptor(const uint8_t *sd, size_t size);
 
-extern void globfree(glob_t *pglob);
+extern void
+set_fd_to_binary_mode(int fd);
 
-#define        GLOB_ERR        0x1 /* Return on read errors.  */
-#define        GLOB_NOSORT     0x2 /* Don't sort the names.  */
+#include "wgetopt.h"
 
-/* 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.  */
+#define optarg                 woptarg
+#define optind                 woptind
+#define opterr                 wopterr
+#define optopt                 woptopt
+#define option                 woption
+
+#define getopt_long_only       wgetopt_long_only
+#define getopt_long            wgetopt_long
+#define getopt                 wgetopt
 
 #endif