1 // license:BSD-3-Clause 2 // copyright-holders:Nathan Woods 3 /********************************************************************* 4 5 iflopimg.h 6 7 Bridge code for Imgtool into the standard floppy code 8 9 *********************************************************************/ 10 11 #ifndef IFLOPIMG_H 12 #define IFLOPIMG_H 13 14 #include "formats/flopimg.h" 15 #include "library.h" 16 17 /*************************************************************************** 18 19 Prototypes 20 21 ***************************************************************************/ 22 23 enum 24 { 25 IMGTOOLINFO_PTR_FLOPPY_FORMAT = IMGTOOLINFO_PTR_CLASS_SPECIFIC, 26 IMGTOOLINFO_PTR_FLOPPY_OPEN, 27 IMGTOOLINFO_PTR_FLOPPY_CREATE 28 }; 29 30 int imgtool_floppy_make_class(int index, imgtool_class *imgclass); 31 32 floppy_image_legacy *imgtool_floppy(imgtool::image &img); 33 imgtoolerr_t imgtool_floppy_error(floperr_t err); 34 35 imgtoolerr_t imgtool_floppy_read_sector_to_stream(imgtool::image &img, int head, int track, int sector, int offset, size_t length, imgtool::stream &f); 36 imgtoolerr_t imgtool_floppy_write_sector_from_stream(imgtool::image &img, int head, int track, int sector, int offset, size_t length, imgtool::stream &f); 37 38 39 void *imgtool_floppy_extrabytes(imgtool::image &img); 40 41 #endif /* IFLOPIMG_H */ 42