Home --> Documentations --> PJLIB-UTIL Reference

Data Fields
pj_cli_exec_info Struct Reference

Data Fields

int err_pos
pj_cli_cmd_id cmd_id
pj_status_t cmd_ret
unsigned hint_cnt
pj_cli_hint_info hint [PJ_CLI_MAX_HINTS]

Detailed Description

This structure contains extra information returned by pj_cli_sess_exec()/ pj_cli_sess_parse(). Upon return from the function, various other fields in this structure will be set by the function.

Field Documentation

pj_cli_cmd_id pj_cli_exec_info::cmd_id

If a command matching the command in the cmdline was found, on return this will be set to the command id of the command, otherwise it will be set to PJ_CLI_INVALID_CMD_ID.

pj_status_t pj_cli_exec_info::cmd_ret

If a command was executed, on return this will be set to the return value of the command, otherwise it will contain PJ_SUCCESS.

int pj_cli_exec_info::err_pos

If command parsing failed, on return this will point to the location where the failure occurs, otherwise the value will be set to -1.

pj_cli_hint_info pj_cli_exec_info::hint[PJ_CLI_MAX_HINTS]

If pj_cli_sess_parse() fails because of a missing argument or ambigous command/argument, the function returned PJ_CLI_EMISSINGARG or PJ_CLI_EAMBIGUOUS error. This field will contain the hint information. This is useful to give helpful information to the end_user.

unsigned pj_cli_exec_info::hint_cnt

The number of hint elements

The documentation for this struct was generated from the following file:


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.