27 */ |
27 */ |
28 |
28 |
29 #ifndef OPTPARSER_H |
29 #ifndef OPTPARSER_H |
30 #define OPTPARSER_H |
30 #define OPTPARSER_H |
31 |
31 |
32 #include <ucx/map.h> |
32 #include <cx/map.h> |
33 #include "opt.h" |
33 #include "opt.h" |
34 |
34 |
35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
36 extern "C" { |
36 extern "C" { |
37 #endif |
37 #endif |
38 |
38 |
39 typedef void* ArgBool; |
39 typedef void* ArgBool; |
40 |
40 |
41 void cmd_args_free(CmdArgs *args); |
41 void cmd_args_free(CmdArgs *args); |
42 CmdArgs* cmd_parse_args(int argc, char **argv); |
42 CmdArgs* cmd_parse_args(int argc, char **argv); |
43 char* cmd_getoption(CmdArgs *arg, char *name); |
43 char* cmd_getoption(CmdArgs *arg, const char *name); |
44 |
44 |
45 #ifdef __cplusplus |
45 #ifdef __cplusplus |
46 } |
46 } |
47 #endif |
47 #endif |
48 |
48 |