]> sigrok.org Git - libsigrok.git/blobdiff - include/libsigrok/libsigrok.h
Add sdi pointer to struct sr_channel.
[libsigrok.git] / include / libsigrok / libsigrok.h
index 662e986e56df88995d73a65401823ab588ea4701..0ea67af6769b92f48e03a7ffc8c4691669ddbd0a 100644 (file)
@@ -531,6 +531,8 @@ enum sr_channeltype {
 
 /** Information on single channel. */
 struct sr_channel {
+       /** The device this channel is attached to. */
+       struct sr_dev_inst *sdi;
        /** The index of this channel, starting at 0. Logic channels will
         * be encoded according to this index in SR_DF_LOGIC packets. */
        int index;