Lines Matching refs:args_struct

183 void cmd_args_set_defaults(struct args_struct_t args_struct[])  in cmd_args_set_defaults()  argument
187 while (args_struct[count].option != NULL) { in cmd_args_set_defaults()
189 if (args_struct[count].dest == NULL) { in cmd_args_set_defaults()
194 switch (args_struct[count].type) { in cmd_args_set_defaults()
198 *(bool *)args_struct[count].dest = false; in cmd_args_set_defaults()
201 *(char **)args_struct[count].dest = NULL; in cmd_args_set_defaults()
204 *(uint32_t *)args_struct[count].dest = UINT32_MAX; in cmd_args_set_defaults()
207 *(uint64_t *)args_struct[count].dest = UINT64_MAX; in cmd_args_set_defaults()
210 *(int32_t *)args_struct[count].dest = INT32_MAX; in cmd_args_set_defaults()
213 *(int64_t *)args_struct[count].dest = INT64_MAX; in cmd_args_set_defaults()
216 *(double *)args_struct[count].dest = (double)NAN; in cmd_args_set_defaults()
220 args_struct[count].type); in cmd_args_set_defaults()
285 void cmd_print_switches_help(struct args_struct_t args_struct[]) in cmd_print_switches_help() argument
292 while (args_struct[count].option != NULL) { in cmd_print_switches_help()
296 &args_struct[count]); in cmd_print_switches_help()
314 void cmd_print_long_help(struct args_struct_t args_struct[]) in cmd_print_long_help() argument
321 cmd_print_switches_help(args_struct); in cmd_print_long_help()
326 while (args_struct[count].option != NULL) { in cmd_print_long_help()
332 &args_struct[count]); in cmd_print_long_help()
337 toprint = args_struct[count].descript; in cmd_print_long_help()
392 bool cmd_parse_one_arg(char *argv, struct args_struct_t args_struct[]) in cmd_parse_one_arg() argument
398 cmd_print_long_help(args_struct); in cmd_parse_one_arg()
402 while (args_struct[count].option != NULL) { in cmd_parse_one_arg()
403 if (args_struct[count].manual) { in cmd_parse_one_arg()
407 ret = cmd_is_option(argv, args_struct[count].option, in cmd_parse_one_arg()
408 !args_struct[count].is_switch); in cmd_parse_one_arg()
412 &args_struct[count]); in cmd_parse_one_arg()