Searched refs:state_p (Results 1 – 2 of 2) sorted by relevance
83 cli_change_opts (cli_state_t *state_p, /**< state of the command line option processor */ in cli_change_opts() argument86 state_p->opts = options_p; in cli_change_opts()98 cli_consume_option (cli_state_t *state_p) /**< state of the command line option processor */ in cli_consume_option() argument100 if (state_p->error != NULL) in cli_consume_option()105 if (state_p->argc <= 0) in cli_consume_option()107 state_p->arg = NULL; in cli_consume_option()111 const char *arg = state_p->argv[0]; in cli_consume_option()113 state_p->arg = arg; in cli_consume_option()124 for (const cli_opt_t *opt = state_p->opts; opt->id != CLI_OPT_DEFAULT; opt++) in cli_consume_option()128 state_p->argc--; in cli_consume_option()[all …]
70 void cli_change_opts (cli_state_t *state_p, const cli_opt_t *options_p);71 int cli_consume_option (cli_state_t *state_p);72 const char * cli_consume_string (cli_state_t *state_p);73 int cli_consume_int (cli_state_t *state_p);