Files
qdl/usb.h
Bjorn Andersson 9aae1e9ff2 qdl: Extract USB functions
Move the USB functions to a separate file, so that we can build the
nbdkit plugin without including qdl.c.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2019-05-06 22:40:11 -07:00

11 lines
269 B
C

#ifndef __QDL_USB_H__
#define __QDL_USB_H__
struct qdl_device;
struct qdl_device *usb_open(void);
int qdl_read(struct qdl_device *qdl, void *buf, size_t len, unsigned int timeout);
int qdl_write(struct qdl_device *qdl, const void *buf, size_t len, bool eot);
#endif