]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
Removal of sdi->index, step 1: remove it from headers and helper funcs
[libsigrok.git] / include / libsigrok / libsigrok.h
index 4f3510d8c6569f3b52e3aad2d37fd28c1cd6397b..61e0caa897ef8e27076a5ed7831911cf6b6d8cda 100644 (file)
@@ -856,8 +856,6 @@ enum sr_configkey {
 struct sr_dev_inst {
        /** Device driver. */
        struct sr_dev_driver *driver;
-       /** Index of device in driver. */
-       int index;
        /** Device instance status. SR_ST_NOT_FOUND, etc. */
        int status;
        /** Device instance type. SR_INST_USB, etc. */
@@ -868,6 +866,10 @@ struct sr_dev_inst {
        char *model;
        /** Device version. */
        char *version;
+       /** Serial number. */
+       char *serial_num;
+       /** Connection string to uniquely identify devices. */
+       char *connection_id;
        /** List of channels. */
        GSList *channels;
        /** List of sr_channel_group structs */