X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device.h;h=319604e4ef0623a9ad0141ba36b9dc5dc369cbd2;hb=b1e873c5b2f6376bb39ff0fda1464cbbacbae5f7;hp=19bdf5e47c74fe21a5c4c51512669e005e76eb1b;hpb=32087c67d53a8f8058b359388f23e2dbc9436d54;p=debian%2Fcpmtools diff --git a/device.h b/device.h index 19bdf5e..319604e 100644 --- a/device.h +++ b/device.h @@ -15,6 +15,7 @@ struct Device int secLength; int tracks; int sectrk; + off_t offset; #if HAVE_LIBDSK_H DSK_PDRIVER dev; DSK_GEOMETRY geom; @@ -27,7 +28,7 @@ struct Device }; const char *Device_open(struct Device *self, const char *filename, int mode, const char *deviceOpts); -void Device_setGeometry(struct Device *self, int secLength, int sectrk, int tracks); +const char *Device_setGeometry(struct Device *self, int secLength, int sectrk, int tracks, off_t offset, const char *libdskGeometry); const char *Device_close(struct Device *self); const char *Device_readSector(const struct Device *self, int track, int sector, char *buf); const char *Device_writeSector(const struct Device *self, int track, int sector, const char *buf);