Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/boards/native/native_posix/
Dcmdline_common.c183 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()
[all …]
Dcmdline.c22 static struct args_struct_t *args_struct; variable
29 if (args_struct != NULL) { /* LCOV_EXCL_BR_LINE */ in native_cleanup_cmd_line()
30 free(args_struct); in native_cleanup_cmd_line()
31 args_struct = NULL; in native_cleanup_cmd_line()
57 struct args_struct_t *new_args_struct = realloc(args_struct, in native_add_command_line_opts()
65 args_struct = new_args_struct; in native_add_command_line_opts()
70 memcpy(&args_struct[used_args], args, in native_add_command_line_opts()
124 cmd_args_set_defaults(args_struct); in native_handle_cmd_line()
134 if (!cmd_parse_one_arg(argv[i], args_struct)) { in native_handle_cmd_line()
135 cmd_print_switches_help(args_struct); in native_handle_cmd_line()
Dcmdline_common.h77 void cmd_args_set_defaults(struct args_struct_t args_struct[]);
78 bool cmd_parse_one_arg(char *argv, struct args_struct_t args_struct[]);
79 void cmd_print_switches_help(struct args_struct_t args_struct[]);
/Zephyr-Core-3.7.0/scripts/native_simulator/native/src/
Dnsi_cmdline_common.c185 void nsi_cmd_args_set_defaults(struct args_struct_t args_struct[]) in nsi_cmd_args_set_defaults() argument
189 while (args_struct[count].option != NULL) { in nsi_cmd_args_set_defaults()
191 if (args_struct[count].dest == NULL) { in nsi_cmd_args_set_defaults()
196 switch (args_struct[count].type) { in nsi_cmd_args_set_defaults()
200 *(bool *)args_struct[count].dest = false; in nsi_cmd_args_set_defaults()
203 *(char **)args_struct[count].dest = NULL; in nsi_cmd_args_set_defaults()
206 *(uint32_t *)args_struct[count].dest = UINT32_MAX; in nsi_cmd_args_set_defaults()
209 *(uint64_t *)args_struct[count].dest = UINT64_MAX; in nsi_cmd_args_set_defaults()
212 *(int32_t *)args_struct[count].dest = INT32_MAX; in nsi_cmd_args_set_defaults()
215 *(int64_t *)args_struct[count].dest = INT64_MAX; in nsi_cmd_args_set_defaults()
[all …]
Dnsi_cmdline.c25 static struct args_struct_t *args_struct; variable
32 if (args_struct != NULL) { /* LCOV_EXCL_BR_LINE */ in nsi_cleanup_cmd_line()
33 free(args_struct); in nsi_cleanup_cmd_line()
34 args_struct = NULL; in nsi_cleanup_cmd_line()
62 struct args_struct_t *new_args_struct = realloc(args_struct, in nsi_add_command_line_opts()
70 args_struct = new_args_struct; in nsi_add_command_line_opts()
75 memcpy(&args_struct[used_args], args, in nsi_add_command_line_opts()
124 nsi_cmd_args_set_defaults(args_struct); in nsi_handle_cmd_line()
127 if (!nsi_cmd_parse_one_arg(extra_argv[i], args_struct)) { in nsi_handle_cmd_line()
128 nsi_cmd_print_switches_help(args_struct); in nsi_handle_cmd_line()
[all …]
Dnsi_cmdline_internal.h35 void nsi_cmd_args_set_defaults(struct args_struct_t args_struct[]);
36 bool nsi_cmd_parse_one_arg(char *argv, struct args_struct_t args_struct[]);
37 void nsi_cmd_print_switches_help(struct args_struct_t args_struct[]);
/Zephyr-Core-3.7.0/boards/native/nrf_bsim/common/
Dbsim_args_runner.c32 static bs_args_struct_t *args_struct; variable
139 bs_add_dynargs(&args_struct, args_struct_toadd); in bsim_register_basic_args()
146 bs_cleanup_dynargs(&args_struct); in bsim_cleanup_args()
153 bs_add_dynargs(&args_struct, args_struct_toadd); in bs_add_extra_dynargs()
185 if (!bs_args_parse_one_arg(argv, args_struct)) { in nsi_handle_one_cmdline_argument()
186 bs_args_print_switches_help(args_struct); in nsi_handle_one_cmdline_argument()
203 bs_args_set_defaults(args_struct); in nsi_handle_cmd_line()
257 bs_args_print_switches_help(args_struct); in postcheck_cmd_line()
267 bs_args_print_switches_help(args_struct); in postcheck_cmd_line()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/
Dcommon.c22 bs_args_struct_t args_struct[] = { in test_args_parse() local
32 bs_args_parse_all_cmd_line(argc, argv, args_struct); in test_args_parse()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/host/privacy/device/src/
Dtest_undirected_central.c75 bs_args_struct_t args_struct[] = { in central_test_args_parse() local
106 bs_args_parse_all_cmd_line(argc, argv, args_struct); in central_test_args_parse()
Dtest_undirected_peripheral.c84 bs_args_struct_t args_struct[] = { in peripheral_test_args_parse() local
122 bs_args_parse_all_cmd_line(argc, argv, args_struct); in peripheral_test_args_parse()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/mesh/src/
Dtest_lcd.c73 bs_args_struct_t args_struct[] = { in test_args_parse() local
86 bs_args_parse_all_cmd_line(argc, argv, args_struct); in test_args_parse()
Dtest_persistence.c256 bs_args_struct_t args_struct[] = { in test_args_parse() local
273 bs_args_parse_all_cmd_line(argc, argv, args_struct); in test_args_parse()
Dtest_blob.c34 bs_args_struct_t args_struct[] = { in test_args_parse() local
58 bs_args_parse_all_cmd_line(argc, argv, args_struct); in test_args_parse()
Dtest_dfu.c62 bs_args_struct_t args_struct[] = { in test_args_parse() local
93 bs_args_parse_all_cmd_line(argc, argv, args_struct); in test_args_parse()
Dtest_beacon.c104 bs_args_struct_t args_struct[] = { in test_args_parse() local
114 bs_args_parse_all_cmd_line(argc, argv, args_struct); in test_args_parse()