1 /* @(#)file.h 1.1 00/03/05 joerg */ 2 /* 3 * hfsutils - tools for reading and writing Macintosh HFS volumes 4 * Copyright (C) 1996, 1997 Robert Leslie 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 20 21 enum { 22 fkData = 0x00, 23 fkRsrc = 0xff 24 }; 25 26 void f_selectfork __PR((hfsfile *, int)); 27 void f_getptrs __PR((hfsfile *, unsigned long **, unsigned long **, ExtDataRec **)); 28 29 int f_doblock __PR((hfsfile *, unsigned long, block *, 30 int (*)(hfsvol *, unsigned int, unsigned int, block *))); 31 32 # define f_getblock(file, num, bp) f_doblock(file, num, bp, b_readab) 33 # define f_putblock(file, num, bp) f_doblock(file, num, bp, b_writeab) 34 35 int f_alloc __PR((hfsfile *)); 36 int f_trunc __PR((hfsfile *)); 37 int f_flush __PR((hfsfile *)); 38