menu.h revision af007057247046b266b7b580708a7c33f76a97e4
0N/A/*
1879N/A * CDDL HEADER START
0N/A *
0N/A * The contents of this file are subject to the terms of the
0N/A * Common Development and Distribution License (the "License").
0N/A * You may not use this file except in compliance with the License.
0N/A *
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * or http://www.opensolaris.org/os/licensing.
0N/A * See the License for the specific language governing permissions
0N/A * and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL HEADER in each
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A * If applicable, add the following below this CDDL HEADER, with the
0N/A * fields enclosed by brackets "[]" replaced with your own identifying
0N/A * information: Portions Copyright [yyyy] [name of copyright owner]
0N/A *
1472N/A * CDDL HEADER END
1472N/A */
1472N/A/*
0N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/A * Use is subject to license terms.
0N/A */
1879N/A
1879N/A#ifndef _MENU_H
1879N/A#define _MENU_H
0N/A
0N/A#pragma ident "%Z%%M% %I% %E% SMI"
0N/A
0N/A#ifdef __cplusplus
1523N/Aextern "C" {
0N/A#endif
0N/A
0N/A/*
0N/A * This file contains declarations pertaining to the menus.
0N/A */
0N/A/*
0N/A * This structure defines a menu entry. It consists of a command
0N/A * name, the function to run the command, and a function to determine
0N/A * if the menu entry is enabled at this particular state in the program.
0N/A * The descriptive text that appears after the command name in the menus
0N/A * is actually part of the command name to the program. Since
0N/A * abbreviation is allowed for commands, the user never notices the
0N/A * extra characters.
0N/A */
0N/Astruct menu_item {
0N/A char *menu_cmd;
0N/A int (*menu_func)();
0N/A int (*menu_state)();
0N/A};
0N/A
0N/A
0N/A/*
0N/A * Prototypes for ANSI C compilers
0N/A */
0N/A
0N/Achar **create_menu_list(struct menu_item *menu);
0N/Avoid display_menu_list(char **list);
0N/Avoid redisplay_menu_list(char **list);
0N/Avoid run_menu(struct menu_item *, char *, char *, int);
0N/Aint true(void);
0N/Aint embedded_scsi(void);
0N/Aint not_embedded_scsi(void);
0N/Aint not_scsi(void);
0N/Aint not_efi(void);
0N/Aint disp_expert_change_expert_efi(void);
0N/Aint disp_expand_efi(void);
0N/Aint disp_all_change_expert_efi(void);
0N/Aint scsi(void);
0N/Aint scsi_expert(void);
0N/Aint expert(void);
0N/Aint developer(void);
0N/Aint support_fdisk_on_sparc(void);
0N/A
0N/A#ifdef __cplusplus
0N/A}
0N/A#endif
0N/A
0N/A#endif /* _MENU_H */
0N/A