Ignore:
Timestamp:
Jun 30, 2010 5:29:59 AM (14 years ago)
Author:
ming
Message:

Implemented CLI (re #1098)

  • pjlib-util:
    • implement telnet CLI
  • pjsip-apps/samples:
    • sample CLI demo application
  • build:
    • VS6 and Makefile
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/cli/pjlib-util/include/pjlib-util/errno.h

    r3087 r3231  
    387387#define PJLIB_UTIL_EHTTPLOST        (PJLIB_UTIL_ERRNO_START+155)/* 320155 */ 
    388388 
     389/************************************************************ 
     390 * CLI ERROR 
     391 ***********************************************************/ 
     392 
     393/** 
     394 * @hideinitializer 
     395 * End the current session. This is a special error code returned by 
     396 * pj_cli_exec() to indicate that "exit" or equivalent command has been 
     397 * called to end the current session. 
     398 */ 
     399#define PJ_CLI_EEXIT                (PJLIB_UTIL_ERRNO_START+201)/* 320201 */ 
     400/** 
     401 * @hideinitializer 
     402 * A required CLI argument is not specified. 
     403 */ 
     404#define PJ_CLI_EMISSINGARG          (PJLIB_UTIL_ERRNO_START+202)/* 320202 */ 
     405 /** 
     406 * @hideinitializer 
     407 * Too many CLI arguments. 
     408 */ 
     409#define PJ_CLI_ETOOMANYARGS         (PJLIB_UTIL_ERRNO_START+203)/* 320203 */ 
     410/** 
     411 * @hideinitializer 
     412 * Invalid CLI argument. Typically this is caused by extra characters 
     413 * specified in the command line which does not match any arguments. 
     414 */ 
     415#define PJ_CLI_EINVARG              (PJLIB_UTIL_ERRNO_START+204)/* 320204 */ 
     416/** 
     417 * @hideinitializer 
     418 * CLI command with the specified name already exist. 
     419 */ 
     420#define PJ_CLI_EBADNAME             (PJLIB_UTIL_ERRNO_START+205)/* 320205 */ 
     421/** 
     422 * @hideinitializer 
     423 * Invalid XML format for CLI command specification. 
     424 */ 
     425#define PJ_CLI_EBADXML              (PJLIB_UTIL_ERRNO_START+206)/* 320206 */ 
     426/** 
     427 * @hideinitializer 
     428 * Telnet connection lost. 
     429 */ 
     430#define PJ_CLI_ETELNETLOST          (PJLIB_UTIL_ERRNO_START+211)/* 320211 */ 
     431 
    389432/** 
    390433 * @} 
Note: See TracChangeset for help on using the changeset viewer.