diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-03 11:31:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-03 13:13:57 -0400 |
commit | c8448cb0ddda7354d6a40054c5bd686fbdd8c5ae (patch) | |
tree | d1835cb872b0f638809c105d686915620aafe83a | |
parent | 53c47e0ccd663ee2118f988c0dde140b7aee4173 (diff) |
add device type to Mackie device info
-rw-r--r-- | libs/surfaces/mackie/device_info.cc | 1 | ||||
-rw-r--r-- | libs/surfaces/mackie/device_info.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/device_info.cc b/libs/surfaces/mackie/device_info.cc index a4b967c8f4..ea488cd244 100644 --- a/libs/surfaces/mackie/device_info.cc +++ b/libs/surfaces/mackie/device_info.cc @@ -57,6 +57,7 @@ DeviceInfo::DeviceInfo() , _uses_ipmidi (false) , _no_handshake (false) , _has_meters (true) + , _device_type (MCU) , _name (X_("Mackie Control Universal Pro")) { mackie_control_buttons (); diff --git a/libs/surfaces/mackie/device_info.h b/libs/surfaces/mackie/device_info.h index ac24b1cea1..4bf5052bf5 100644 --- a/libs/surfaces/mackie/device_info.h +++ b/libs/surfaces/mackie/device_info.h @@ -55,11 +55,20 @@ struct StripButtonInfo { class DeviceInfo { public: + enum DeviceType { + MCU = 0x14, + MCXT = 0x15, + LC = 0x10, + LCXT = 0x11, + HUI = 0x5 + }; + DeviceInfo(); ~DeviceInfo(); int set_state (const XMLNode&, int version); + DeviceType device_type() const { return _device_type; } uint32_t strip_cnt () const; uint32_t extenders() const; uint32_t master_position() const; @@ -100,6 +109,7 @@ class DeviceInfo bool _uses_ipmidi; bool _no_handshake; bool _has_meters; + DeviceType _device_type; std::string _name; std::string _global_button_name; |