]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/include/libsigrok/libsigrok.hpp
bindings: Add Channel::get_index() method.
[libsigrok.git] / bindings / cxx / include / libsigrok / libsigrok.hpp
index a6cca1d2b5c638bf45c5c117b0e0bb07622ef16b..5435b83e0d24f4a9b516e122e800ffa851176af3 100644 (file)
@@ -340,6 +340,8 @@ public:
        bool get_enabled();
        /** Set the enabled status of this channel. */
        void set_enabled(bool value);
+       /** Get the index number of this channel. */
+       unsigned int get_index();
 protected:
        Channel(struct sr_channel *structure);
        ~Channel();