]> sigrok.org Git - libsigrok.git/blobdiff - libsigrok-internal.h
Doxygen: Add @file items for the relevant files.
[libsigrok.git] / libsigrok-internal.h
index 2cb8fe4eef9e939887bd007e7f694925ce06f43b..38647622d825c0167ee3025b376200a95775ac86 100644 (file)
 #include <libusb.h>
 #endif
 
+/**
+ * @file
+ *
+ * libsigrok private header file, only to be used internally.
+ */
+
 /*--- Macros ----------------------------------------------------------------*/
 
 #ifndef ARRAY_SIZE
 /* 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 +73,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, ...);