1 /*****************************************************************************
3 // Copyright (c) 2000-2001 Broadcom Corporation
5 // No portions of this material may be reproduced in any form without the
6 // written permission of:
7 // Broadcom Corporation
9 // Irvine, California 92619
10 // All information contained in this document is Broadcom Corporation
11 // company private, proprietary, and trade secret.
13 ******************************************************************************
15 // Filename: clidefs.h
16 // Author: Peter T. Tran
17 // Creation Date: 12/26/01
19 ******************************************************************************
21 // Define the global types, enums. and constants for CLI.
23 *****************************************************************************/
30 /********************** Global Constants ************************************/
32 #define CLI_MAX_BUF_SZ 128
33 #define CLI_BACKSPACE '\x08'
35 /********************** Global Enums ****************************************/
43 CLI_ACCESS_DISABLED = 0,
47 CLI_ACCESS_REMOTE_SSH, // for SSHD
56 CLI_STS_ERR_MENU_EXIST,
60 #ifdef BUILD_MENU_DRIVEN_CLI
62 CLI_PROCESS_PROMPT = 0,
67 /********************** Global Types ****************************************/
69 typedef CLI_BOOL (*CLI_VALIDATE_FNC) (char* inputParam);
73 char param[CLI_MAX_BUF_SZ];
74 CLI_VALIDATE_FNC validateFnc;
75 } PARAMS_SETTING, *PPARAMS_SETTING;
77 typedef CLI_STATUS (*CLI_FNC) (char* cmdName, int help, void* object);
86 } CLI_MENU_ITEM, *PCLI_MENU_ITEM;
92 } CLI_MENU, *PCLI_MENU;
93 #endif /* BUILD_MENU_DRIVEN_CLI */