1 /* ----------------------------------------------------------------------- *
3 * Copyright 2004-2005 H. Peter Anvin - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
16 * Header file for the simple menu system
24 #include <sys/times.h>
29 # define CLK_TCK sysconf(_SC_CLK_TCK)
40 /* 512 is the current definition inside syslinux */
41 #define MAX_CMDLINE_LEN 512
43 #define MAX_ENTRIES 4096 /* Oughta be enough for anybody */
44 extern struct menu_entry menu_entries
[];
45 extern struct menu_entry
*menu_hotkeys
[256];
47 struct menu_parameter
{
52 extern struct menu_parameter mparm
[];
59 extern long long totaltimeout
;
61 extern char *menu_title
;
62 extern char *ontimeout
;
63 extern char *menu_master_passwd
;
65 void parse_config(const char *filename
);
67 static inline int my_isspace(char c
)
69 return (unsigned char)c
<= ' ';