d925fa34be213cfbcec3a317bdc83648bf480d20
[profile/ivi/syslinux.git] / libinstaller / syslxopt.h
1 #ifndef _H_SYSLXOPT_
2 #define _H_SYSLXOPT_
3
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 };
17
18 enum long_only_opt {
19     OPT_NONE,
20     OPT_RESET_ADV,
21 };
22
23 void __attribute__ ((noreturn)) usage(int rv, int mode);
24 void parse_options(int argc, char *argv[], int mode);
25
26 extern struct sys_options opt;
27 extern const struct option long_options[];
28 extern const char short_options[];
29
30 #endif