-struct sr_datastore {
- /** Size in bytes of the number of units stored in this datastore. */
- int ds_unitsize;
- unsigned int num_units; /* TODO: uint64_t */
- GSList *chunklist;
-};
-
-/*
- * This represents a generic device connected to the system.
- * For device-specific information, ask the driver. The driver_index refers
- * to the device index within that driver; it may be handling more than one
- * device. All relevant driver calls take a dev_index parameter for this.
- */
-struct sr_dev {
- /** Which driver handles this device. */
- struct sr_dev_driver *driver;
- /** A driver may handle multiple devices of the same type. */
- int driver_index;
- /** List of struct sr_probe pointers. */
- GSList *probes;
- /** Data acquired by this device, if any. */
- struct sr_datastore *datastore;
-};
-