18 #ifdef LIBCBMCOPY_DEBUG
19 # define DEBUG_STATEDEBUG
21 #include "statedebug.h"
28 int (*write_blk)(
CBM_FILE,
const void *,
unsigned char,cbmcopy_message_cb);
29 int (*read_blk)(
CBM_FILE,
void *,size_t,cbmcopy_message_cb);
37 typedef int (*write_byte_t)(
CBM_FILE,
unsigned char);
38 typedef unsigned char (*read_byte_t)(
CBM_FILE);
41 int write_block_generic(
CBM_FILE,
const void *,
unsigned char,write_byte_t,cbmcopy_message_cb);
42 int read_block_generic(
CBM_FILE,
void *,
size_t,read_byte_t,cbmcopy_message_cb);
44 #define DECLARE_TRANSFER_FUNCS(x) \
45 transfer_funcs cbmcopy_ ## x = {write_blk, read_blk, check_error, \
46 upload_turbo, start_turbo, exit_turbo}
DLL interface for accessing the driver.