7 #define PARAM_OPTION_ARG_YES 16 8 #define PARAM_OPTION_ARG_MAYBE (8 + PARAM_OPTION_ARG_YES) 10 #define PARAM_OPTION_BOOL (1 + PARAM_OPTION_ARG_MAYBE) 11 #define ARG_TYPE_INT (2 + PARAM_OPTION_ARG_YES) 12 #define ARG_TYPE_STR (4 + PARAM_OPTION_ARG_YES) 13 #define ARG_TYPE_DOUBLE (ARG_TYPE_INT | ARG_TYPE_STR) 15 #define PARAM_ACTION_FUNC 64 16 #define PARAM_ACTION_VAR 32 19 #define FAIL_ON_UNKNOWN 1 << 0
int getparam(option_t **o, int argc, char **argv)
void print_options_help(option_t *o)
int(* option_func_t)(option_t, void *, option_t **)
size_t add_config_options(option_t **o_in, option_t add[])
void print_options_config(option_t *o)
int readconfig(option_t **o, const char *file, int options)