summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-common.h
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-03 22:41:30 +0100
committerErwan Velu <erwan.velu@free.fr>2009-11-03 22:41:30 +0100
commit35c507ee84ae948f7b51ba3a8d5062178680d88c (patch)
treee8390bea29424a1bab76bf02889ce67fe7526a44 /com32/hdt/hdt-common.h
parentc9d07318d415f697a873e40f933834ff0e8e949b (diff)
downloadsyslinux-35c507ee84ae948f7b51ba3a8d5062178680d88c.tar.gz
hdt: Adding automatic mode
Impact: HDT can be controlled via the cmdline When the auto= parameter is set, HDT execute a set of commands and return to the cli after. i.e auto='show summary; show pci' will show the summary then the pci and return to the cli. Note that the auto= feature, requires a the "'" char to define the complete set of commands and the ";" char to separate commands. Some more examples: auto='show syslinux; exit' -> this will show the syslinux release and then exit to return to the bootloader auto='show summary; reboot' -> this will show the summary and then reboot the computer
Diffstat (limited to 'com32/hdt/hdt-common.h')
-rw-r--r--com32/hdt/hdt-common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/com32/hdt/hdt-common.h b/com32/hdt/hdt-common.h
index b3b46265..baecbc03 100644
--- a/com32/hdt/hdt-common.h
+++ b/com32/hdt/hdt-common.h
@@ -57,6 +57,15 @@
#define HDT_RETURN_TO_CLI 100
#define MAX_VESA_MODES 255
+/* The maximum number of commands we can process */
+#define MAX_NB_AUTO_COMMANDS 255
+/* The maximum size of a command */
+#define AUTO_COMMAND_SIZE 255
+/* The char that separate two commands */
+#define AUTO_SEPARATOR ";"
+/* The char that surround the list of commands */
+#define AUTO_DELIMITER "'"
+
extern int display_line_nb;
#define pause_printf() do {\
@@ -163,6 +172,7 @@ struct s_hardware {
char pciids_path[255];
char memtest_label[255];
char reboot_label[255];
+ char auto_label[AUTO_COMMAND_SIZE];
};
void reset_more_printf();