]> wimlib.net Git - wimlib/blob - programs/wgetopt.h
Use --enable-ssse3-sha1 for x86_64 Windows builds
[wimlib] / programs / wgetopt.h
1 #ifndef _WGETOPT_H
2 #define _WGETOPT_H
3
4 #include <wchar.h>
5
6 extern wchar_t *woptarg;
7 extern int woptind, wopterr, woptopt;
8
9 struct woption {
10         const wchar_t *name;
11         int            has_arg;
12         int           *flag;
13         int            val;
14 };
15
16 #define no_argument 0
17 #define required_argument 1
18 #define optional_argument 2
19
20 extern int
21 wgetopt (int argc, wchar_t *const *argv, const wchar_t *optstring);
22
23 extern int
24 wgetopt_long(int argc, wchar_t * const *argv, const wchar_t *options,
25              const struct woption *long_options, int *opt_index);
26
27 extern int
28 wgetopt_long_only(int argc, wchar_t *const *argv, const wchar_t *options,
29                   const struct woption *long_options, int *opt_index);
30
31 #endif