1 |
dpavlin |
1 |
/* |
2 |
|
|
* libhfs - library for reading and writing Macintosh HFS volumes |
3 |
|
|
* Copyright (C) 1996-1998 Robert Leslie |
4 |
|
|
* |
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; either version 2 of the License, or |
8 |
|
|
* (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program is distributed in the hope that it will be useful, |
11 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
|
* GNU General Public License for more details. |
14 |
|
|
* |
15 |
|
|
* You should have received a copy of the GNU General Public License |
16 |
|
|
* along with this program; if not, write to the Free Software |
17 |
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 |
|
|
* |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
# define HFS_DDR_SIGWORD 0x4552 |
22 |
|
|
|
23 |
|
|
# define HFS_PM_SIGWORD 0x504d |
24 |
|
|
# define HFS_PM_SIGWORD_OLD 0x5453 |
25 |
|
|
|
26 |
|
|
# define HFS_BB_SIGWORD 0x4c4b |
27 |
|
|
|
28 |
|
|
# define HFS_BOOTCODE1LEN (HFS_BLOCKSZ - 148) |
29 |
|
|
# define HFS_BOOTCODE2LEN HFS_BLOCKSZ |
30 |
|
|
|
31 |
|
|
# define HFS_BOOTCODELEN (HFS_BOOTCODE1LEN + HFS_BOOTCODE2LEN) |
32 |
|
|
|
33 |
|
|
int l_getddr(hfsvol *, Block0 *); |
34 |
|
|
int l_putddr(hfsvol *, const Block0 *); |
35 |
|
|
|
36 |
|
|
int l_getpmentry(hfsvol *, ApplePartition *, unsigned long); |
37 |
|
|
int l_putpmentry(hfsvol *, const ApplePartition *, unsigned long); |
38 |
|
|
|
39 |
|
|
int l_getbb(hfsvol *, BootBlkHdr *, byte *); |
40 |
|
|
int l_putbb(hfsvol *, const BootBlkHdr *, const byte *); |
41 |
|
|
|
42 |
|
|
int l_getmdb(hfsvol *, MDB *, int); |
43 |
|
|
int l_putmdb(hfsvol *, const MDB *, int); |