Merge branch 'master' of git://github.com/illumos/illumos-gate
[unleashed.git] / usr / src / lib / libgrubmgmt / common / libgrub_cmd.def
blob6dda9a41a77aefbc32050e85ba1dcc91451a56a2
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef menu_cmd
27 #define menu_cmd(cmd, num, flag, parsef)
28 #endif /* menu_cmd */
30 #ifndef menu_cmd_end
31 #define menu_cmd_end(num)
32 #endif /* menu_cmd */
35 * Menu commands related info:
36 * first field - command,
37 * second field - enum for command
38 * third field - command flags
39 * forth field - parse function
43 * NOTE: bootadm likes to have GRBM_KERNEL_DOLLAR_CMD == GRBM_KERNEL_CMD + 1
44 * and GRBM_MODULE_DOLLAR_CMD == GRBM_MODULE_CMD + 1
46 menu_cmd("", GRBM_EMPTY_CMD, GRUB_LINE_EMPTY, skip_line)
47 menu_cmd(" ", GRBM_SEP_CMD, GRUB_LINE_INVALID, error_line)
48 menu_cmd("#", GRBM_COMMENT_CMD, GRUB_LINE_COMMENT, skip_line)
49 menu_cmd("default", GRBM_DEFAULT_CMD, GRUB_LINE_GLOBAL, error_line)
50 menu_cmd("timeout", GRBM_TIMEOUT_CMD, GRUB_LINE_GLOBAL, error_line)
51 menu_cmd("title", GRBM_TITLE_CMD, GRUB_LINE_TITLE, skip_line)
52 menu_cmd("root", GRBM_ROOT_CMD, GRUB_LINE_ENTRY, error_line)
53 menu_cmd("kernel", GRBM_KERNEL_CMD, GRUB_LINE_ENTRY, kernel)
54 menu_cmd("kernel$", GRBM_KERNEL_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_kernel)
55 menu_cmd("module", GRBM_MODULE_CMD, GRUB_LINE_ENTRY, module)
56 menu_cmd("module$", GRBM_MODULE_DOLLAR_CMD, GRUB_LINE_ENTRY, dollar_module)
57 menu_cmd("chainloader", GRBM_CHAINLOADER_CMD, GRUB_LINE_ENTRY, error_line)
58 menu_cmd("args", GRBM_ARGS_CMD, GRUB_LINE_ENTRY, error_line)
59 menu_cmd("findroot", GRBM_FINDROOT_CMD, GRUB_LINE_ENTRY, findroot)
60 menu_cmd("bootfs", GRBM_BOOTFS_CMD, GRUB_LINE_ENTRY, bootfs)
61 menu_cmd("splashimage", GRBM_SPLASHIMAGE_CMD, GRUB_LINE_ENTRY, skip_line)
62 menu_cmd("background", GRBM_BACKGROUND_CMD, GRUB_LINE_ENTRY, skip_line)
63 menu_cmd("foreground", GRBM_FOREGROUND_CMD, GRUB_LINE_ENTRY, skip_line)
65 menu_cmd_end(GRBM_CMD_NUM) /* Should be the last one */
67 #undef menu_cmd
68 #undef menu_cmd_end