]> git.sur5r.net Git - cc65/commitdiff
adapted to new parameters (_dhandle_t)
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 18 Oct 2000 23:41:03 +0000 (23:41 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 18 Oct 2000 23:41:03 +0000 (23:41 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@379 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/dio.h

index 3153094ee5528ccd8982f0e2d1bb189444c5c20e..9813811bf4289bcaf3fd129019960f3e26f439c9 100644 (file)
@@ -34,6 +34,7 @@
 typedef unsigned char _driveid_t;
 typedef unsigned int  _sectnum_t;
 typedef unsigned int  _sectsize_t;
+typedef void *_dhandle_t;
 
 
 #ifdef __ATARI__
@@ -42,25 +43,26 @@ typedef unsigned int  _sectsize_t;
 #define _dio_query_sectsize(x) ((_sectsize_t)256)
 #endif
 
-extern unsigned char __fastcall__ _dio_open  (_driveid_t drive_id);
-extern unsigned char __fastcall__ _dio_close (_driveid_t drive_id);
-extern unsigned char __fastcall__ _dio_format(_driveid_t drive_id,
+extern _dhandle_t    __fastcall__ _dio_open  (_driveid_t drive_id);
+extern unsigned char __fastcall__ _dio_close (_dhandle_t handle);
+extern unsigned char __fastcall__ _dio_format(_dhandle_t handle,
                                               unsigned int format);
-extern unsigned char __fastcall__ _dio_read(_driveid_t drive_id,
+extern unsigned char __fastcall__ _dio_read(_dhandle_t handle,
                                             _sectnum_t sect_num,
                                             void *buffer);
-extern unsigned char __fastcall__ _dio_write(_driveid_t drive_id,
+extern unsigned char __fastcall__ _dio_write(_dhandle_t handle,
                                              _sectnum_t sect_num,
                                              const void *buffer);
-extern unsigned char __fastcall__ _dio_write_verify(_driveid_t drive_id,
+extern unsigned char __fastcall__ _dio_write_verify(_dhandle_t handle,
                                                     _sectnum_t sect_num,
                                                     const void *buffer);
 
-
-extern _sectnum_t __fastcall__ _dio_chs_to_snum(unsigned int cyl,
+extern _sectnum_t __fastcall__ _dio_chs_to_snum(_dhandle_t handle,
+                                                unsigned int cyl,
                                                 unsigned int head,
                                                 unsigned int sector);
-extern void       __fastcall__ _dio_snum_to_chs(_sectnum_t sect_num,
+extern void       __fastcall__ _dio_snum_to_chs(_dhandle_t handle,
+                                                _sectnum_t sect_num,
                                                 unsigned int *cyl,
                                                 unsigned int *head,
                                                 unsigned int *sector);