Adding upstream version 4.00~pre61+dfsg.
[syslinux-debian/hramrach.git] / libinstaller / syslxopt.h
blob446ab9af5150bfbc64c28be9e2f943714c15adbc
1 #ifndef _H_SYSLXOPT_
2 #define _H_SYSLXOPT_
4 /* These are the options we can set and their values */
5 struct sys_options {
6 unsigned int sectors;
7 unsigned int heads;
8 int raid_mode;
9 int stupid_mode;
10 int reset_adv;
11 const char *set_once;
12 int update_only;
13 const char *directory;
14 const char *device;
15 unsigned int offset;
16 const char *menu_save;
19 enum long_only_opt {
20 OPT_NONE,
21 OPT_RESET_ADV,
22 OPT_ONCE,
25 enum syslinux_mode {
26 MODE_SYSLINUX, /* Unmounted filesystem */
27 MODE_EXTLINUX,
30 void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode);
31 void parse_options(int argc, char *argv[], enum syslinux_mode mode);
32 int modify_adv(void);
34 extern struct sys_options opt;
35 extern const struct option long_options[];
36 extern const char short_options[];
38 #endif