/* Size of a datastore chunk in units */
#define DATASTORE_CHUNKSIZE (512 * 1024)
+struct sr_context {
+#ifdef HAVE_LIBUSB_1_0
+ libusb_context *libusb_ctx;
+#endif
+};
+
#ifdef HAVE_LIBUSB_1_0
struct sr_usb_dev_inst {
uint8_t bus;
int fd;
};
+/* Private driver context. */
+struct drv_context {
+ GSList *instances;
+};
+
/*--- log.c -----------------------------------------------------------------*/
SR_PRIV int sr_log(int loglevel, const char *format, ...);