syslinux-3.08-2 sources from FC4
[bootcd.git] / syslinux / com32 / modules / menu.h
1 #ident "$Id: menu.h,v 1.5 2005/01/21 00:49:46 hpa Exp $"
2 /* ----------------------------------------------------------------------- *
3  *   
4  *   Copyright 2004 H. Peter Anvin - All Rights Reserved
5  *
6  *   This program is free software; you can redistribute it and/or modify
7  *   it under the terms of the GNU General Public License as published by
8  *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9  *   Boston MA 02111-1307, USA; either version 2 of the License, or
10  *   (at your option) any later version; incorporated herein by reference.
11  *
12  * ----------------------------------------------------------------------- */
13
14 /*
15  * menu.h
16  *
17  * Header file for the simple menu system
18  */
19
20 #ifndef MENU_H
21 #define MENU_H
22
23 struct menu_entry {
24   char *displayname;
25   char *label;
26   char *cmdline;
27   char *passwd;
28   unsigned char hotkey;
29 };
30
31 #define MAX_CMDLINE_LEN  256
32
33 #define MAX_ENTRIES     4096    /* Oughta be enough for anybody */
34 extern struct menu_entry menu_entries[];
35 extern struct menu_entry *menu_hotkeys[256];
36
37 extern int nentries;
38 extern int defentry;
39 extern int allowedit;
40 extern int timeout;
41
42 extern char *menu_title;
43 extern char *ontimeout;
44 extern char *menu_master_passwd;
45
46 void parse_config(const char *filename);
47
48 #endif /* MENU_H */
49