comparison th_args.h @ 380:ac10155d2b4a

Rename th_optarg_t to t_optarg. API break.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 01 Mar 2016 17:21:22 +0200
parents f4e182720870
children 4e7e0a74e73e
comparison
equal deleted inserted replaced
379:f4e182720870 380:ac10155d2b4a
34 int id; 34 int id;
35 char o_hort; 35 char o_hort;
36 char *o_long; 36 char *o_long;
37 char *desc; 37 char *desc;
38 int flags; 38 int flags;
39 } th_optarg_t; 39 } th_optarg;
40 40
41 41
42 BOOL th_args_process(int argc, char *argv[], 42 BOOL th_args_process(int argc, char *argv[],
43 const th_optarg_t *opts, const int nopts, 43 const th_optarg *opts, const int nopts,
44 BOOL (*handle_option)(int id, char *, char *), 44 BOOL (*handle_option)(int id, char *, char *),
45 BOOL (*handle_other)(char *), const int flags); 45 BOOL (*handle_other)(char *), const int flags);
46 46
47 void th_args_help(FILE *, const th_optarg_t *opts, 47 void th_args_help(FILE *, const th_optarg *opts,
48 const int nopts, const int flags); 48 const int nopts, const int flags);
49 49
50 #ifdef __cplusplus 50 #ifdef __cplusplus
51 } 51 }
52 #endif 52 #endif