Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
35extern "C" {
36#endif
37
38WS_DLL_PUBLIC int ws_getopt(int, char * const [], const char *);
39WS_DLL_PUBLIC char *ws_optarg;
40WS_DLL_PUBLIC int ws_optind, ws_opterr, ws_optopt, ws_optpos, ws_optreset;
41
42struct ws_option {
43 const char *name;
44 int has_arg;
45 int *flag;
46 int val;
47};
48
49WS_DLL_PUBLIC int ws_getopt_long(int, char *const *, const char *, const struct ws_option *, int *);
50WS_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