]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
Add serial_num and connection_id fields to sr_dev_inst
[libsigrok.git] / include / libsigrok / libsigrok.h
index c029f1176f193a7c9aeb0af21f9dd5e2b573e20b..655a4a0ad93a7cc54e4976c8904ba2ee1f27df18 100644 (file)
@@ -505,6 +505,11 @@ struct sr_config_info {
        char *description;
 };
 
+#define SR_CONF_GET  (1 << 31)
+#define SR_CONF_SET  (1 << 30)
+#define SR_CONF_LIST (1 << 29)
+#define SR_CONF_MASK 0x1fffffff
+
 /** Constants for device classes */
 enum sr_configkey {
        /*--- Device classes ------------------------------------------------*/
@@ -863,6 +868,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 */