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 CmdArgs* cmd_parse_args(int argc, char **argv); |
39 CmdArgs* cmd_parse_args(int argc, char **argv); |
40 char* cmd_getoption(CmdArgs *arg, char *name); |
40 char* cmd_getoption(CmdArgs *arg, const char *name); |
41 |
41 |
42 void cmd_args_free(CmdArgs *args); |
42 void cmd_args_free(CmdArgs *args); |
43 |
43 |
44 #ifdef __cplusplus |
44 #ifdef __cplusplus |
45 } |
45 } |