]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok-internal.h
Doxygen: Initial groups and topic short descriptions.
[libsigrok.git] / libsigrok-internal.h
index 2cb8fe4eef9e939887bd007e7f694925ce06f43b..563605720c16b769bdce9abc11cb7c9b48ce9a41 100644 (file)
 /* 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;
@@ -61,6 +67,11 @@ struct sr_serial_dev_inst {
        int fd;
 };
 
+/* Private driver context. */
+struct drv_context {
+       GSList *instances;
+};
+
 /*--- log.c -----------------------------------------------------------------*/
 
 SR_PRIV int sr_log(int loglevel, const char *format, ...);