File: syslxopt.h

package info (click to toggle)
syslinux 2%3A4.02%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 23,804 kB
  • ctags: 71,027
  • sloc: ansic: 270,621; pascal: 9,631; asm: 9,089; perl: 3,492; makefile: 1,588; sh: 511; python: 266; xml: 39
file content (43 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _H_SYSLXOPT_
#define _H_SYSLXOPT_

/* These are the options we can set and their values */
struct sys_options {
    unsigned int sectors;
    unsigned int heads;
    int raid_mode;
    int stupid_mode;
    int reset_adv;
    const char *set_once;
    int update_only;
    const char *directory;
    const char *device;
    unsigned int offset;
    const char *menu_save;
    int force;
    int install_mbr;
    int activate_partition;
    const char *bootsecfile;
};

enum long_only_opt {
    OPT_NONE,
    OPT_RESET_ADV,
    OPT_ONCE,
};

enum syslinux_mode {
    MODE_SYSLINUX,		/* Unmounted filesystem */
    MODE_EXTLINUX,
    MODE_SYSLINUX_DOSWIN,
};

void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode);
void parse_options(int argc, char *argv[], enum syslinux_mode mode);
int modify_adv(void);

extern struct sys_options opt;
extern const struct option long_options[];
extern const char short_options[];

#endif