source: bootcd/isolinux/syslinux-6.03/libinstaller/syslxopt.h @ e16e8f2

Last change on this file since e16e8f2 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 962 bytes
Line 
1#ifndef _H_SYSLXOPT_
2#define _H_SYSLXOPT_
3
4/* These are the options we can set and their values */
5struct 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;
17    int force;
18    int install_mbr;
19    int activate_partition;
20    const char *bootsecfile;
21};
22
23enum long_only_opt {
24    OPT_NONE,
25    OPT_RESET_ADV,
26    OPT_ONCE,
27    OPT_DEVICE,
28};
29
30enum syslinux_mode {
31    MODE_SYSLINUX,              /* Unmounted filesystem */
32    MODE_EXTLINUX,
33    MODE_SYSLINUX_DOSWIN,
34};
35
36void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode);
37void parse_options(int argc, char *argv[], enum syslinux_mode mode);
38int modify_adv(void);
39
40extern struct sys_options opt;
41extern const struct option long_options[];
42extern const char short_options[];
43
44#endif
Note: See TracBrowser for help on using the repository browser.