Searched refs:args_struct (Results 1 – 10 of 10) sorted by relevance
/babblesim_base-3.7.0/libUtilv1/src/ |
D | bs_cmd_line.c | 286 void bs_args_set_defaults(bs_args_struct_t args_struct[]) in bs_args_set_defaults() argument 290 while (args_struct[count].option != NULL) { in bs_args_set_defaults() 292 if (args_struct[count].dest == NULL) { in bs_args_set_defaults() 297 switch ( args_struct[count].type ){ in bs_args_set_defaults() 301 *(bool*)args_struct[count].dest = false; in bs_args_set_defaults() 304 *(char**)args_struct[count].dest = NULL; in bs_args_set_defaults() 307 *(unsigned int*)args_struct[count].dest = UINT_MAX; in bs_args_set_defaults() 310 *(uint64_t*)args_struct[count].dest = UINT64_MAX; in bs_args_set_defaults() 313 *(int*)args_struct[count].dest = INT_MAX; in bs_args_set_defaults() 316 *(int64_t *)args_struct[count].dest = INT64_MAX; in bs_args_set_defaults() [all …]
|
D | bs_cmd_line_typical.c | 17 void bs_args_typical_dev_post_check(bs_basic_dev_args_t *a, bs_args_struct_t args_struct[], char *d… in bs_args_typical_dev_post_check() argument 19 bs_args_print_switches_help(args_struct); in bs_args_typical_dev_post_check() 27 bs_args_print_switches_help(args_struct); in bs_args_typical_dev_post_check() 41 void bs_args_typical_dev_set_defaults(bs_basic_dev_args_t *a, bs_args_struct_t args_struct[]) { in bs_args_typical_dev_set_defaults() argument 42 bs_args_set_defaults(args_struct); in bs_args_typical_dev_set_defaults()
|
D | bs_cmd_line.h | 80 void bs_args_set_defaults(bs_args_struct_t args_struct[]); 81 void bs_args_print_switches_help(bs_args_struct_t args_struct[]); 82 void bs_args_print_long_help(bs_args_struct_t args_struct[]); 83 void bs_args_parse_cmd_line(int argc, char *argv[], bs_args_struct_t args_struct[]); 84 void bs_args_parse_all_cmd_line(int argc, char *argv[], bs_args_struct_t args_struct[]); 85 bool bs_args_parse_one_arg(char *argv, bs_args_struct_t args_struct[]);
|
D | bs_dynargs.c | 18 void bs_cleanup_dynargs(bs_args_struct_t **args_struct) in bs_cleanup_dynargs() argument 20 if (*args_struct != NULL) { /* LCOV_EXCL_BR_LINE */ in bs_cleanup_dynargs() 21 free(*args_struct); in bs_cleanup_dynargs() 22 *args_struct = NULL; in bs_cleanup_dynargs()
|
D | bs_dynargs.h | 18 void bs_cleanup_dynargs(bs_args_struct_t **args_struct);
|
D | bs_cmd_line_typical.h | 97 void bs_args_typical_dev_post_check(bs_basic_dev_args_t *args, bs_args_struct_t args_struct[], char… 98 void bs_args_typical_dev_set_defaults(bs_basic_dev_args_t *args, bs_args_struct_t args_struct[]);
|
/babblesim_base-3.7.0/device_time_monitor/src/ |
D | bs_time_monitor_args.c | 41 bs_args_struct_t args_struct[] = { in bs_time_monitor_argparse() local 47 bs_args_typical_dev_set_defaults((bs_basic_dev_args_t *)args, args_struct); in bs_time_monitor_argparse() 51 bs_args_parse_cmd_line(argc, argv, args_struct); in bs_time_monitor_argparse() 53 bs_args_typical_dev_post_check((bs_basic_dev_args_t *)args, args_struct, default_phy); in bs_time_monitor_argparse()
|
/babblesim_base-3.7.0/device_handbrake/src/ |
D | bs_handbrake_args.c | 56 bs_args_struct_t args_struct[] = { in bs_handbrake_argparse() local 63 bs_args_typical_dev_set_defaults((bs_basic_dev_args_t *)args, args_struct); in bs_handbrake_argparse() 68 bs_args_parse_cmd_line(argc, argv, args_struct); in bs_handbrake_argparse() 70 bs_args_typical_dev_post_check((bs_basic_dev_args_t *)args, args_struct, default_phy); in bs_handbrake_argparse()
|
/babblesim_base-3.7.0/device_pause_simu/src/ |
D | bs_pause_args.c | 37 bs_args_struct_t args_struct[] = { in bs_pause_argparse() local 43 bs_args_typical_dev_set_defaults((bs_basic_dev_args_t *)args, args_struct); in bs_pause_argparse() 49 if ( !bs_args_parse_one_arg(argv[i], args_struct) ){ in bs_pause_argparse() 66 bs_args_print_switches_help(args_struct); in bs_pause_argparse() 72 bs_args_typical_dev_post_check((bs_basic_dev_args_t *)args, args_struct, default_phy); in bs_pause_argparse()
|
/babblesim_base-3.7.0/device_empty/src/ |
D | bs_empty_main.c | 40 bs_args_struct_t args_struct[] = { in bs_empty_argparse() local 45 bs_args_typical_dev_set_defaults((bs_basic_dev_args_t *)args, args_struct); in bs_empty_argparse() 48 bs_args_parse_cmd_line(argc, argv, args_struct); in bs_empty_argparse() 50 bs_args_typical_dev_post_check((bs_basic_dev_args_t *)args, args_struct, default_phy); in bs_empty_argparse()
|