Home
last modified time | relevance | path

Searched refs:args_struct (Results 1 – 10 of 10) sorted by relevance

/babblesim_base-3.7.0/libUtilv1/src/
Dbs_cmd_line.c286 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 …]
Dbs_cmd_line_typical.c17 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()
Dbs_cmd_line.h80 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[]);
Dbs_dynargs.c18 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()
Dbs_dynargs.h18 void bs_cleanup_dynargs(bs_args_struct_t **args_struct);
Dbs_cmd_line_typical.h97 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/
Dbs_time_monitor_args.c41 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/
Dbs_handbrake_args.c56 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/
Dbs_pause_args.c37 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/
Dbs_empty_main.c40 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()