1 #ifndef ADF_DUMP_H 2 #define ADF_DUMP_H 1 3 4 /* 5 * ADF Library. (C) 1997-2002 Laurent Clevy 6 * 7 * adf_dump.h 8 * 9 * $Id$ 10 * 11 * This file is part of ADFLib. 12 * 13 * ADFLib is free software; you can redistribute it and/or modify 14 * it under the terms of the GNU General Public License as published by 15 * the Free Software Foundation; either version 2 of the License, or 16 * (at your option) any later version. 17 * 18 * ADFLib is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with Foobar; if not, write to the Free Software 25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 * 27 */ 28 29 PREFIX struct Device* 30 adfCreateDumpDevice(char* filename, int32_t cyl, int32_t heads, int32_t sec); 31 PREFIX RETCODE adfCreateHdFile(struct Device* dev, char* volName, int volType); 32 BOOL adfInitDumpDevice(struct Device* dev, char* name,BOOL); 33 BOOL adfReadDumpSector(struct Device *dev, int32_t n, int size, uint8_t* buf); 34 BOOL adfWriteDumpSector(struct Device *dev, int32_t n, int size, uint8_t* buf); 35 void adfReleaseDumpDevice(struct Device *dev); 36 37 38 #endif /* ADF_DUMP_H */ 39 /*##########################################################################*/ 40