X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fcxx%2Finclude%2Flibsigrok%2Flibsigrok.hpp;h=557b08d1d6b5aadf5181b81e0f8813238a1ce512;hb=59b74d28c94b566f252ffb268314526ce14c3b33;hp=4005c04a31642622899ddf741811f34a7682615b;hpb=4f7bcf0ec35c18f10da51530767efcff62ddc88f;p=libsigrok.git diff --git a/bindings/cxx/include/libsigrok/libsigrok.hpp b/bindings/cxx/include/libsigrok/libsigrok.hpp index 4005c04a..557b08d1 100644 --- a/bindings/cxx/include/libsigrok/libsigrok.hpp +++ b/bindings/cxx/include/libsigrok/libsigrok.hpp @@ -281,29 +281,6 @@ protected: friend class Driver; }; -/** A hardware driver provided by the library */ -class SR_API Driver : - public ParentOwned -{ -public: - /** Name of this driver. */ - string get_name(); - /** Long name for this driver. */ - string get_long_name(); - /** Scan for devices and return a list of devices found. - * @param options Mapping of (ConfigKey, value) pairs. */ - vector > scan( - map options = {}); -protected: - bool initialized; - vector devices; - Driver(struct sr_dev_driver *structure); - ~Driver(); - friend class Context; - friend class HardwareDevice; - friend class ChannelGroup; -}; - /** An object that can be configured. */ class SR_API Configurable { @@ -329,6 +306,30 @@ protected: struct sr_channel_group *config_channel_group; }; +/** A hardware driver provided by the library */ +class SR_API Driver : + public ParentOwned, + public Configurable +{ +public: + /** Name of this driver. */ + string get_name(); + /** Long name for this driver. */ + string get_long_name(); + /** Scan for devices and return a list of devices found. + * @param options Mapping of (ConfigKey, value) pairs. */ + vector > scan( + map options = {}); +protected: + bool initialized; + vector devices; + Driver(struct sr_dev_driver *structure); + ~Driver(); + friend class Context; + friend class HardwareDevice; + friend class ChannelGroup; +}; + /** A generic device, either hardware or virtual */ class SR_API Device : public Configurable {