2 libparted - a library for manipulating disk partitions
3 Copyright (C) 2004, 2007, 2009-2011 Free Software Foundation, Inc.
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 3 of the License, or
8 (at your option) any later version.
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.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include <parted/parted.h>
23 #include <parted/endian.h>
24 #include <parted/debug.h>
29 hfsplus_file_open (PedFileSystem *fs, HfsPNodeID CNID,
30 HfsPExtDataRec ext_desc, PedSector sect_nb);
33 hfsplus_file_close (HfsPPrivateFile* file);
36 hfsplus_file_read(HfsPPrivateFile* file, void *buf,
37 PedSector sector, unsigned int nb);
40 hfsplus_file_write(HfsPPrivateFile* file, void *buf,
41 PedSector sector, unsigned int nb);
43 /* Read the nth sector of a file */
44 /* return 0 on error */
46 hfsplus_file_read_sector (HfsPPrivateFile* file, void *buf, PedSector sector)
48 return hfsplus_file_read(file, buf, sector, 1);
51 /* Write the nth sector of a file */
52 /* return 0 on error */
54 hfsplus_file_write_sector (HfsPPrivateFile* file, void *buf, PedSector sector)
56 return hfsplus_file_write(file, buf, sector, 1);
60 #endif /* _FILE_PLUS_H */