X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device.h;h=377e2580f76ccc0ad1b333234d6772a8b4e67294;hb=1f63e0639206e2b1d2757860fcbe77a86f3aaa3a;hp=474dd5956ec6b684674e7efbfb88bcfb7f725276;hpb=eecb0a54d7bbb6d7f1085cad3e663164baad4c4f;p=debian%2Fcpmtools diff --git a/device.h b/device.h index 474dd59..377e258 100644 --- a/device.h +++ b/device.h @@ -16,11 +16,11 @@ struct Device int tracks; int sectrk; off_t offset; -#if HAVE_LIBDSK_H +#ifdef HAVE_LIBDSK_H DSK_PDRIVER dev; DSK_GEOMETRY geom; #endif -#if HAVE_WINDOWS_H +#ifdef HAVE_WINDOWS_H int drvtype; HANDLE hdisk; #endif @@ -28,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, off_t offset); +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);