Allow specifying * instead of any of the MENU COLOR fields.
[syslinux.git] / syslinux.h
blob1e88013e154e0c588355a14f4cde4b29c1a544a2
1 /* ----------------------------------------------------------------------- *
3 * Copyright 1998-2004 H. Peter Anvin - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef SYSLINUX_H
14 #define SYSLINUX_H
16 #include <inttypes.h>
18 /* The standard boot sector and ldlinux image */
19 extern unsigned char syslinux_bootsect[];
20 extern unsigned int syslinux_bootsect_len;
21 extern int syslinux_bootsect_mtime;
23 extern unsigned char syslinux_ldlinux[];
24 extern unsigned int syslinux_ldlinux_len;
25 extern int syslinux_ldlinux_mtime;
27 extern unsigned char syslinux_mbr[];
28 extern unsigned int syslinux_mbr_len;
29 extern int syslinux_mbr_mtime;
31 /* This switches the boot sector to "stupid mode" */
32 void syslinux_make_stupid(void);
34 /* This takes a boot sector and merges in the syslinux fields */
35 void syslinux_make_bootsect(void *);
37 /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
38 const char *syslinux_check_bootsect(const void *bs);
40 /* This patches the boot sector and ldlinux.sys based on a sector map */
41 int syslinux_patch(const uint32_t *sectors, int nsectors);
43 #endif