xref: /onnv-gate/usr/src/cmd/format/menu.h (revision 6590:4867b3aa761a)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*6590Syl194034  * Common Development and Distribution License (the "License").
6*6590Syl194034  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*6590Syl194034  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef	_MENU_H
270Sstevel@tonic-gate #define	_MENU_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #ifdef	__cplusplus
320Sstevel@tonic-gate extern "C" {
330Sstevel@tonic-gate #endif
340Sstevel@tonic-gate 
350Sstevel@tonic-gate /*
360Sstevel@tonic-gate  * This file contains declarations pertaining to the menus.
370Sstevel@tonic-gate  */
380Sstevel@tonic-gate /*
390Sstevel@tonic-gate  * This structure defines a menu entry.  It consists of a command
400Sstevel@tonic-gate  * name, the function to run the command, and a function to determine
410Sstevel@tonic-gate  * if the menu entry is enabled at this particular state in the program.
420Sstevel@tonic-gate  * The descriptive text that appears after the command name in the menus
430Sstevel@tonic-gate  * is actually part of the command name to the program.  Since
440Sstevel@tonic-gate  * abbreviation is allowed for commands, the user never notices the
450Sstevel@tonic-gate  * extra characters.
460Sstevel@tonic-gate  */
470Sstevel@tonic-gate struct menu_item {
480Sstevel@tonic-gate 	char	*menu_cmd;
490Sstevel@tonic-gate 	int	(*menu_func)();
500Sstevel@tonic-gate 	int	(*menu_state)();
510Sstevel@tonic-gate };
520Sstevel@tonic-gate 
530Sstevel@tonic-gate 
540Sstevel@tonic-gate /*
550Sstevel@tonic-gate  *	Prototypes for ANSI C compilers
560Sstevel@tonic-gate  */
570Sstevel@tonic-gate 
580Sstevel@tonic-gate char	**create_menu_list(struct menu_item *menu);
590Sstevel@tonic-gate void	display_menu_list(char **list);
600Sstevel@tonic-gate void	redisplay_menu_list(char **list);
610Sstevel@tonic-gate void	run_menu(struct menu_item *, char *, char *, int);
620Sstevel@tonic-gate int	true(void);
630Sstevel@tonic-gate int	embedded_scsi(void);
640Sstevel@tonic-gate int	not_embedded_scsi(void);
650Sstevel@tonic-gate int	not_scsi(void);
660Sstevel@tonic-gate int	not_efi(void);
670Sstevel@tonic-gate int	disp_expert_change_expert_efi(void);
68*6590Syl194034 int	disp_expand_efi(void);
690Sstevel@tonic-gate int	disp_all_change_expert_efi(void);
700Sstevel@tonic-gate int	scsi(void);
710Sstevel@tonic-gate int	scsi_expert(void);
720Sstevel@tonic-gate int	expert(void);
730Sstevel@tonic-gate int	developer(void);
740Sstevel@tonic-gate int	support_fdisk_on_sparc(void);
750Sstevel@tonic-gate 
760Sstevel@tonic-gate #ifdef	__cplusplus
770Sstevel@tonic-gate }
780Sstevel@tonic-gate #endif
790Sstevel@tonic-gate 
800Sstevel@tonic-gate #endif	/* _MENU_H */
81