11 #include <stdarg.h> |
11 #include <stdarg.h> |
12 #include <stdio.h> |
12 #include <stdio.h> |
13 #include <stdlib.h> |
13 #include <stdlib.h> |
14 |
14 |
15 #include "types.h" |
15 #include "types.h" |
|
16 #include "optparser.h" |
16 |
17 |
17 |
18 extern void libtu_init(const char *argv0); |
18 typedef struct{ |
19 extern void libtu_init_copt(int argc, char *const argv[], |
19 const char *name; |
20 const OptParserCommonInfo *cinfo); |
20 const char *version; |
21 |
21 const char *authors; |
|
22 const char *license; |
|
23 const char *usage; |
|
24 } ProgInfo; |
|
25 |
|
26 |
|
27 extern void libtu_init_argv0(const char *argv0, const ProgInfo *info); |
|
28 extern void libtu_init(int *argc, char *argv[], const ProgInfo *info); |
|
29 |
22 |
30 extern const char *prog_execname(); |
23 extern const char *prog_execname(); |
31 extern const ProgInfo *prog_info(); |
|
32 extern const char *prog_name(); |
|
33 extern const char *prog_version(); |
|
34 extern const char *prog_authors(); |
|
35 extern const char *prog_license(); |
|
36 extern const char *prog_usage(); |
|
37 |
24 |
38 #endif /* LIBTU_UTIL_H */ |
25 #endif /* LIBTU_UTIL_H */ |