1 /*****************************************************************************
3 # Copyright 2004 Broadcom Corp. All Rights Reserved.
4 # This program is free software; you can distribute it and/or modify it
5 # under the terms of the GNU General Public License (Version 2) as
6 # published by the Free Software Foundation.
7 # This program is distributed in the hope it will be useful, but WITHOUT
8 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 # You should have received a copy of the GNU General Public License along
12 # with this program; if not, write to the Free Software Foundation, Inc.,
13 # 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
15 ******************************************************************************
17 // Filename: clidefs.h
18 // Author: Peter T. Tran
19 // Creation Date: 12/26/01
21 ******************************************************************************
23 // Define the global types, enums. and constants for CLI.
25 *****************************************************************************/
32 /********************** Global Constants ************************************/
34 #define CLI_MAX_BUF_SZ 128
35 #define CLI_BACKSPACE '\x08'
37 /********************** Global Enums ****************************************/
45 CLI_ACCESS_DISABLED = 0,
49 CLI_ACCESS_REMOTE_SSH, // for SSHD
58 CLI_STS_ERR_MENU_EXIST,
62 #ifdef BUILD_MENU_DRIVEN_CLI
64 CLI_PROCESS_PROMPT = 0,
69 /********************** Global Types ****************************************/
71 typedef CLI_BOOL (*CLI_VALIDATE_FNC) (char* inputParam);
75 char param[CLI_MAX_BUF_SZ];
76 CLI_VALIDATE_FNC validateFnc;
77 } PARAMS_SETTING, *PPARAMS_SETTING;
79 typedef CLI_STATUS (*CLI_FNC) (char* cmdName, int help, void* object);
88 } CLI_MENU_ITEM, *PCLI_MENU_ITEM;
94 } CLI_MENU, *PCLI_MENU;
95 #endif /* BUILD_MENU_DRIVEN_CLI */