aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/config.h
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-03-08 17:07:13 +0000
committerMatt Fleming <matt.fleming@linux.intel.com>2011-03-09 14:32:36 +0000
commit5fd19f467ae4e8f5dc7298b56c63f5d9d7569b9d (patch)
treefac423a20cccd26b8cf4275e058cdf75388d4c4f /com32/elflink/ldlinux/config.h
parentf1a65c520b2d7d8d15034d704c0c91842e7cbdc1 (diff)
downloadsyslinux-5fd19f467ae4e8f5dc7298b56c63f5d9d7569b9d.tar.gz
syslinux-5fd19f467ae4e8f5dc7298b56c63f5d9d7569b9d.tar.xz
syslinux-5fd19f467ae4e8f5dc7298b56c63f5d9d7569b9d.zip
ldlinux: Record "default" and "ui" command lines
The command line following the "default" and "ui" options may be a kernel or com32 module to load and execute, so we need to record it for later processing. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/config.h')
-rw-r--r--com32/elflink/ldlinux/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/elflink/ldlinux/config.h b/com32/elflink/ldlinux/config.h
index 3125b27f..17c7b28e 100644
--- a/com32/elflink/ldlinux/config.h
+++ b/com32/elflink/ldlinux/config.h
@@ -12,6 +12,13 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
+/*
+ * These values correspond to the "default" and "ui" commands
+ * respectively. "ui" takes precendence over "default".
+ */
+#define LEVEL_DEFAULT 1
+#define LEVEL_UI 2
+
extern short uappendlen; //bytes in append= command
extern short ontimeoutlen; //bytes in ontimeout command
extern short onerrorlen; //bytes in onerror command
@@ -26,4 +33,6 @@ extern short vkernel; //have we seen any "label" statements?
extern short displaycon; //conio.inc
extern short nohalt; //idle.inc
+extern char *default_cmd; //"default" command line
+
#endif /* __CONFIG_H__ */