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/config.h

    r3087 r3231  
    267267#endif 
    268268 
     269/* ************************************************************************** 
     270 * CLI configuration 
     271 */ 
     272 
     273/** 
     274 * Initial pool size for CLI. 
     275 * Default: 1024 bytes 
     276 */ 
     277#ifndef PJ_CLI_POOL_SIZE 
     278#   define PJ_CLI_POOL_SIZE    1024 
     279#endif 
     280 
     281/** 
     282 * Pool increment size for CLI. 
     283 * Default: 512 bytes 
     284 */ 
     285#ifndef PJ_CLI_POOL_INC 
     286#   define PJ_CLI_POOL_INC     512 
     287#endif 
     288 
     289/** 
     290 * Maximum length of command buffer. 
     291 * Default: 120 
     292 */ 
     293#ifndef PJ_CLI_MAX_CMDBUF 
     294#   define PJ_CLI_MAX_CMDBUF            120 
     295#endif 
     296 
     297/** 
     298 * Maximum command arguments. 
     299 * Default: 8 
     300 */ 
     301#ifndef PJ_CLI_MAX_ARGS 
     302#   define PJ_CLI_MAX_ARGS              8 
     303#endif 
     304 
     305/** 
     306 * Maximum short name version (shortcuts) for a command. 
     307 * Default: 4 
     308 */ 
     309#ifndef PJ_CLI_MAX_SHORTCUTS 
     310#   define PJ_CLI_MAX_SHORTCUTS         4 
     311#endif 
     312 
     313/** 
     314 * Initial pool size for console CLI. 
     315 * Default: 256 bytes 
     316 */ 
     317#ifndef PJ_CLI_CONSOLE_POOL_SIZE 
     318#   define PJ_CLI_CONSOLE_POOL_SIZE    256 
     319#endif 
     320 
     321/** 
     322 * Pool increment size for console CLI. 
     323 * Default: 256 bytes 
     324 */ 
     325#ifndef PJ_CLI_CONSOLE_POOL_INC 
     326#   define PJ_CLI_CONSOLE_POOL_INC     256 
     327#endif 
     328 
     329/** 
     330 * Initial pool size for telnet CLI. 
     331 * Default: 1024 bytes 
     332 */ 
     333#ifndef PJ_CLI_TELNET_POOL_SIZE 
     334#   define PJ_CLI_TELNET_POOL_SIZE 1024 
     335#endif 
     336 
     337/** 
     338 * Pool increment size for telnet CLI. 
     339 * Default: 512 bytes 
     340 */ 
     341#ifndef PJ_CLI_TELNET_POOL_INC 
     342#   define PJ_CLI_TELNET_POOL_INC  512 
     343#endif 
     344 
     345 
    269346/** 
    270347 * @} 
Note: See TracChangeset for help on using the changeset viewer.