1 /* 2 * Copyright 2018 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef P2G4_ARGS_H 7 #define P2G4_ARGS_H 8 9 #include "bs_types.h" 10 #include "bs_cmd_line_typical.h" 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 typedef struct{ 17 unsigned int n_devs; 18 ARG_S_ID 19 ARG_P_ID 20 bs_time_t sim_length; 21 bool dont_dump; 22 bool dump_imm; 23 bool crcerr_data; 24 bool compare; 25 bool stop_on_diff; 26 ARG_VERB 27 ARG_SEED 28 29 char **channel_argv; 30 char **defmodem_argv; 31 uint channel_argc; 32 uint defmodem_argc; 33 char *channel_name; 34 char *defmodem_name; 35 36 char **modem_name; 37 char ***modem_argv; 38 uint *modem_argc; 39 } p2G4_args_t; 40 41 void p2G4_argsparse(int argc, char *argv[], p2G4_args_t *args); 42 43 void p2G4_clear_args_struct(p2G4_args_t *args); 44 #ifdef __cplusplus 45 } 46 #endif 47 48 #endif 49