2 /* ----------------------------------------------------------------------- *
4 * Copyright 2004-2005 H. Peter Anvin - All Rights Reserved
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.
12 * ----------------------------------------------------------------------- */
17 * Header file for the simple menu system
25 #include <sys/times.h>
30 # define CLK_TCK sysconf(_SC_CLK_TCK)
41 /* 512 is the current definition inside syslinux */
42 #define MAX_CMDLINE_LEN 512
44 #define MAX_ENTRIES 4096 /* Oughta be enough for anybody */
45 extern struct menu_entry menu_entries
[];
46 extern struct menu_entry
*menu_hotkeys
[256];
48 struct menu_parameter
{
53 extern struct menu_parameter mparm
[];
60 extern long long totaltimeout
;
62 extern char *menu_title
;
63 extern char *ontimeout
;
64 extern char *menu_master_passwd
;
66 void parse_config(const char *filename
);
68 static inline int my_isspace(char c
)
70 return (unsigned char)c
<= ' ';