xref: /haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/bootsect.h (revision 80bca3d3c8c08d3c9b31d7609a7805941529e9c3)
1*80bca3d3SAxel Dörfler /*
2*80bca3d3SAxel Dörfler  * bootsect.h - Exports for bootsector record handling.
3*80bca3d3SAxel Dörfler  *		Originated from the Linux-NTFS project.
4*80bca3d3SAxel Dörfler  *
5*80bca3d3SAxel Dörfler  * Copyright (c) 2000-2002 Anton Altaparmakov
6*80bca3d3SAxel Dörfler  * Copyright (c) 2006 Szabolcs Szakacsits
7*80bca3d3SAxel Dörfler  *
8*80bca3d3SAxel Dörfler  * This program/include file is free software; you can redistribute it and/or
9*80bca3d3SAxel Dörfler  * modify it under the terms of the GNU General Public License as published
10*80bca3d3SAxel Dörfler  * by the Free Software Foundation; either version 2 of the License, or
11*80bca3d3SAxel Dörfler  * (at your option) any later version.
12*80bca3d3SAxel Dörfler  *
13*80bca3d3SAxel Dörfler  * This program/include file is distributed in the hope that it will be
14*80bca3d3SAxel Dörfler  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15*80bca3d3SAxel Dörfler  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*80bca3d3SAxel Dörfler  * GNU General Public License for more details.
17*80bca3d3SAxel Dörfler  *
18*80bca3d3SAxel Dörfler  * You should have received a copy of the GNU General Public License
19*80bca3d3SAxel Dörfler  * along with this program (in the main directory of the NTFS-3G
20*80bca3d3SAxel Dörfler  * distribution in the file COPYING); if not, write to the Free Software
21*80bca3d3SAxel Dörfler  * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22*80bca3d3SAxel Dörfler  */
23*80bca3d3SAxel Dörfler 
24*80bca3d3SAxel Dörfler #ifndef _NTFS_BOOTSECT_H
25*80bca3d3SAxel Dörfler #define _NTFS_BOOTSECT_H
26*80bca3d3SAxel Dörfler 
27*80bca3d3SAxel Dörfler #include "types.h"
28*80bca3d3SAxel Dörfler #include "volume.h"
29*80bca3d3SAxel Dörfler #include "layout.h"
30*80bca3d3SAxel Dörfler 
31*80bca3d3SAxel Dörfler /**
32*80bca3d3SAxel Dörfler  * ntfs_boot_sector_is_ntfs - check a boot sector for describing an ntfs volume
33*80bca3d3SAxel Dörfler  * @b:		buffer containing the boot sector
34*80bca3d3SAxel Dörfler  *
35*80bca3d3SAxel Dörfler  * This function checks the boot sector in @b for describing a valid ntfs
36*80bca3d3SAxel Dörfler  * volume. Return TRUE if @b is a valid NTFS boot sector or FALSE otherwise.
37*80bca3d3SAxel Dörfler  */
38*80bca3d3SAxel Dörfler extern BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b);
39*80bca3d3SAxel Dörfler extern int ntfs_boot_sector_parse(ntfs_volume *vol, const NTFS_BOOT_SECTOR *bs);
40*80bca3d3SAxel Dörfler 
41*80bca3d3SAxel Dörfler #endif /* defined _NTFS_BOOTSECT_H */
42*80bca3d3SAxel Dörfler 
43