]> wimlib.net Git - wimlib/blobdiff - programs/imagex-win32.h
v1.14.4
[wimlib] / programs / imagex-win32.h
index 1de8e9845bcfbc7fe25f52536b53dc4e57c35049..f7a751bd0256460754484ff68febc89927cb0358 100644 (file)
@@ -2,39 +2,24 @@
 #define _IMAGEX_WIN32_H
 
 #include <stddef.h>
-#include <stdbool.h>
+#include <inttypes.h>
 
-typedef struct {
-       size_t gl_pathc;
-       char **gl_pathv;
-       size_t gl_offs;
-} glob_t;
+void
+win32_print_security_descriptor(const uint8_t *sd, size_t size);
 
-/* 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);
+void
+set_fd_to_binary_mode(int fd);
 
-extern void globfree(glob_t *pglob);
+#include "wgetopt.h"
 
-#define        GLOB_ERR        0x1 /* Return on read errors.  */
-#define        GLOB_NOSORT     0x2 /* Don't sort the names.  */
+#define optarg                 woptarg
+#define optind                 woptind
+#define opterr                 wopterr
+#define optopt                 woptopt
+#define option                 woption
 
-/* 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 void
-win32_acquire_capture_privileges();
-
-extern void
-win32_release_capture_privileges();
-
-extern void
-win32_acquire_restore_privileges();
-
-extern void
-win32_release_restore_privileges();
+#define getopt_long_only       wgetopt_long_only
+#define getopt_long            wgetopt_long
+#define getopt                 wgetopt
 
 #endif