summaryrefslogtreecommitdiff
path: root/com32/chain/options.h
blob: 4493ef1fb4db8d654b02939eb9b412a869cd89ea (plain)
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
44
45
46
47
#ifndef _COM32_CHAIN_OPTIONS_H
#define _COM32_CHAIN_OPTIONS_H

#include <stdint.h>
#include <syslinux/bootrm.h>

struct options {
    unsigned int fseg;
    unsigned int foff;
    unsigned int fip;
    unsigned int sseg;
    unsigned int soff;
    unsigned int sip;
    const char *drivename;
    const char *partition;
    const char *file;
    const char *grubcfg;
    bool isolinux;
    bool cmldr;
    bool drmk;
    bool grub;
    bool grldr;
    bool maps;
    bool hand;
    bool hptr;
    bool swap;
    int hide;
    bool sect;
    bool save;
    bool bss;
    bool setbpb;
    bool filebpb;
    bool fixchs;
    bool warn;
    bool brkchain;
    uint16_t keeppxe;
    struct syslinux_rm_regs regs;
};

extern struct options opt;

void opt_set_defs(void);
int opt_parse_args(int argc, char *argv[]);

#endif

/* vim: set ts=8 sts=4 sw=4 noet: */