add a callback type to do more complicated processing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7023 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -51,7 +51,8 @@ struct getargs{
|
||||
arg_flag,
|
||||
arg_negative_flag,
|
||||
arg_strings,
|
||||
arg_double
|
||||
arg_double,
|
||||
arg_collect
|
||||
} type;
|
||||
void *value;
|
||||
const char *help;
|
||||
@@ -69,6 +70,11 @@ typedef struct getarg_strings {
|
||||
char **strings;
|
||||
} getarg_strings;
|
||||
|
||||
typedef struct getarg_collect_info {
|
||||
int (*func)(char *optarg, int argc, char **argv, int *optind, void *data);
|
||||
void *data;
|
||||
} getarg_collect_info;
|
||||
|
||||
int getarg(struct getargs *args, size_t num_args,
|
||||
int argc, char **argv, int *optind);
|
||||
|
||||
|
Reference in New Issue
Block a user