ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/1541d64.h
(Generate patch)

Comparing Frodo4/Src/1541d64.h (file contents):
Revision 1.6 by cebix, 2004-01-12T15:13:20Z vs.
Revision 1.8 by cebix, 2005-06-27T19:55:48Z

# Line 1 | Line 1
1   /*
2   *  1541d64.h - 1541 emulation in disk image files (.d64/.x64/zipcode)
3   *
4 < *  Frodo (C) 1994-1997,2002-2004 Christian Bauer
4 > *  Frodo (C) 1994-1997,2002-2005 Christian Bauer
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
# Line 143 | Line 143 | private:
143   // of the file types supported by this module
144   extern bool IsImageFile(const char *path, const uint8 *header, long size);
145  
146 + // Read directory of disk image file into (empty) c64_dir_entry vector
147 + extern bool ReadImageDirectory(const char *path, vector<c64_dir_entry> &vec);
148 +
149   // Create new blank disk image file
150   extern bool CreateImageFile(const char *path);
151  
149 // Open disk image file
150 extern FILE *open_image_file(const char *path, bool write_mode);
151
152 // Parse disk image file header, fill in descriptor
153 extern bool parse_image_file(FILE *f, image_file_desc &desc);
154
155 // Read/write sector from/to disk image file, return error code
156 extern int read_sector(FILE *f, const image_file_desc &desc, int track, int sector, uint8 *buffer);
157 extern int write_sector(FILE *f, const image_file_desc &desc, int track, int sector, uint8 *buffer);
158
159 // Format disk image
160 extern bool format_image(FILE *f, image_file_desc &desc, bool lowlevel, uint8 id1, uint8 id2, const uint8 *disk_name, int disk_name_len);
161
162 // Get number of sectors per track
163 extern int sectors_per_track(const image_file_desc &desc, int track);
164
165 // Get reference to error info byte of given track/sector
166 extern uint8 &error_info_for_sector(image_file_desc &desc, int track, int sector);
167
168 // Write error info back to image file
169 extern void write_back_error_info(FILE *f, const image_file_desc &desc);
170
152   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines