Add externs to avoid multiple definitions, and then add missing definitions.
[rrq/maintain_lilo.git] / src / boot.h
1 /* boot.h  -  Boot image composition
2  * 
3  * Copyright 1992-1995 Werner Almesberger
4  * Copyright 1999-2007 John Coffman
5  * Copyright 2009-2011 Joachim Wiedorn
6  * All rights reserved.
7  * 
8  * Licensed under the terms contained in the file 'COPYING'
9  * in the source directory.
10  */
11
12 #ifndef BOOT_H
13 #define BOOT_H
14
15
16 void boot_image(char *spec,IMAGE_DESCR *descr);
17
18 /* Maps a "classic" boot image. */
19
20 void boot_device(char *spec,char *range,IMAGE_DESCR *descr);
21
22 /* Maps sectors from a device as the boot image. Can be used to boot raw-written
23    disks. */
24
25 void boot_unstripped(char *boot,char *setup,char *kernel,IMAGE_DESCR *descr);
26
27 /* Maps an unstripped kernel image as the boot image. The setup (without the
28    header) is prepended. */
29
30 char *boot_mbr(const char *boot, int table);
31 /* derive name of MBR from partition name; check for primary partition
32    if table==1
33  */
34
35 void boot_other(char *loader,char *boot,char *part,IMAGE_DESCR *descr);
36
37 /* Merges a loader with a partition table and appends a boot sector. This mix
38    is used to boot non-Linux systems. */
39
40 void dump(char *spec,IMAGE_DESCR *descr);
41
42 /* Maps a crash dump file. */
43
44 #endif