FreeRDP
data_transfer.h
1 
21 #ifndef FREERDP_CHANNEL_URBDRC_CLIENT_DATA_TRANSFER_H
22 #define FREERDP_CHANNEL_URBDRC_CLIENT_DATA_TRANSFER_H
23 
24 #include <winpr/pool.h>
25 
26 #include "urbdrc_main.h"
27 
28 #define DEVICE_CTX(dev) ((dev)->ctx)
29 #define HANDLE_CTX(handle) (DEVICE_CTX((handle)->dev))
30 #define TRANSFER_CTX(transfer) (HANDLE_CTX((transfer)->dev_handle))
31 #define ITRANSFER_CTX(transfer) (TRANSFER_CTX(__USBI_TRANSFER_TO_LIBUSB_TRANSFER(transfer)))
32 
33 UINT urbdrc_process_udev_data_transfer(GENERIC_CHANNEL_CALLBACK* callback, URBDRC_PLUGIN* urbdrc,
34  IUDEVMAN* udevman, wStream* data);
35 
36 #endif /* FREERDP_CHANNEL_URBDRC_CLIENT_DATA_TRANSFER_H */