Wireshark  4.3.0
The Wireshark network protocol analyzer
ws_getopt.h
Go to the documentation of this file.
1 
29 #ifndef _WS_GETOPT_H_
30 #define _WS_GETOPT_H_
31 
32 #include <ws_symbol_export.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 WS_DLL_PUBLIC int ws_getopt(int, char * const [], const char *);
39 WS_DLL_PUBLIC char *ws_optarg;
40 WS_DLL_PUBLIC int ws_optind, ws_opterr, ws_optopt, ws_optpos, ws_optreset;
41 
42 struct ws_option {
43  const char *name;
44  int has_arg;
45  int *flag;
46  int val;
47 };
48 
49 WS_DLL_PUBLIC int ws_getopt_long(int, char *const *, const char *, const struct ws_option *, int *);
50 WS_DLL_PUBLIC int ws_getopt_long_only(int, char *const *, const char *, const struct ws_option *, int *);
51 
52 #define ws_no_argument 0
53 #define ws_required_argument 1
54 #define ws_optional_argument 2
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
Definition: pcapio.c:146