Remove stealth whitespace
[syslinux.git] / com32 / modules / menu.h
blob0589c7a0ff966bb768a86a8255c75a74577159f8
1 #ident "$Id$"
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 * ----------------------------------------------------------------------- */
15 * menu.h
17 * Header file for the simple menu system
20 #ifndef MENU_H
21 #define MENU_H
23 #include <time.h>
24 #include <sys/time.h>
25 #include <sys/times.h>
26 #include <inttypes.h>
27 #include <unistd.h>
29 #ifndef CLK_TCK
30 # define CLK_TCK sysconf(_SC_CLK_TCK)
31 #endif
33 struct menu_entry {
34 char *displayname;
35 char *label;
36 char *cmdline;
37 char *passwd;
38 unsigned char hotkey;
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 {
49 const char *name;
50 int value;
53 extern struct menu_parameter mparm[];
55 extern int nentries;
56 extern int defentry;
57 extern int allowedit;
58 extern int timeout;
59 extern int shiftkey;
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 <= ' ';
73 #endif /* MENU_H */