13 #define LIBCBMCOPY_DEBUG
33 typedef void (*cbmcopy_message_cb)(cbmcopy_severity_e sev,
const char *format, ...);
35 typedef int (*cbmcopy_status_cb)(
int blocks_processed);
37 #ifdef LIBCBMCOPY_DEBUG
42 extern void printDebugCBMcopyCounters(cbmcopy_message_cb msg_cb);
49 extern char *cbmcopy_get_transfer_modes();
55 extern int cbmcopy_get_transfer_mode_index(
const char *name);
61 extern int cbmcopy_check_auto_transfer_mode(
CBM_FILE cbm_fd,
62 int auto_transfermode,
71 extern int cbmcopy_write_file(
CBM_FILE cbm_fd,
76 const unsigned char *filedata,
78 cbmcopy_message_cb msg_cb,
79 cbmcopy_status_cb status_cb);
81 extern int cbmcopy_read_file(
CBM_FILE cbm_fd,
86 unsigned char **filedata,
87 size_t *filedata_size,
88 cbmcopy_message_cb msg_cb,
89 cbmcopy_status_cb status_cb);
91 extern int cbmcopy_read_file_ts(
CBM_FILE cbm_fd,
94 int track,
int sector,
95 unsigned char **filedata,
96 size_t *filedata_size,
97 cbmcopy_message_cb msg_cb,
98 cbmcopy_status_cb status_cb);