Imported Debian patch 0.4.9-0.sarge.2
[debian/efibootmgr] / src / include / efibootmgr.h
1 /*
2   efibootmgr.h - Manipulates EFI variables as exported in /proc/efi/vars
3  
4   Copyright (C) 2001 Dell Computer Corporation <Matt_Domsch@dell.com>
5  
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21 #ifndef _EFIBOOTMGR_H
22 #define _EFIBOOTMGR_H
23
24 typedef struct {
25         int argc;
26         char **argv;
27         int optind;
28         char *disk;
29         char *iface;
30         char *loader;
31         char *label;
32         char *bootorder;
33         char *testfile;
34         uint32_t part;
35         int edd_version;
36         int edd10_devicenum;
37         int bootnum;
38         int bootnext;
39         int verbose;
40         int active;
41         uint32_t acpi_hid;
42         uint32_t acpi_uid;
43         unsigned int delete_boot:1;
44         unsigned int delete_bootorder:1;
45         unsigned int delete_bootnext:1;
46         unsigned int quiet:1;
47         unsigned int showversion:1;
48         unsigned int create:1;
49         unsigned int unicode:1;
50         unsigned int write_signature:1;
51         unsigned int forcegpt:1;
52         unsigned int set_timeout:1;
53         unsigned int delete_timeout:1;
54         unsigned short int timeout;
55 } efibootmgr_opt_t;
56
57
58 extern efibootmgr_opt_t opts;
59
60 #endif