#include "thor_internal.h"
int t_thor_init(thor_device_handle *th);
+void t_thor_cleanup(thor_device_handle *th);
int t_thor_open(thor_device_handle *th, struct thor_device_id *dev_id,
int wait);
-void thor_close(thor_device_handle *th);
+void t_thor_close(thor_device_handle *th);
int t_thor_send_raw_data(thor_device_handle *th,
struct thor_data_src *data,
off_t trans_unit_size,
thor_progress_cb report_progress,
void *user_data);
+int t_thor_send(thor_device_handle *th, unsigned char *buf,
+ off_t count, int timeout);
+int t_thor_recv(thor_device_handle *th, unsigned char *buf,
+ off_t count, int timeout);
/* USB transport */
struct usb_device_handle {