Refactor Ctrl Surface API

* reserve "probe" to actually probe for devices
* use separate probe for libusb and MIDI port devices
* use "available" to check if surface can be used
* allow both methods to be NULL
* remove unused ControlProtocolDescriptor* argument

Most surface just return `true` for available.
This commit is contained in:
Robin Gareus 2023-05-01 03:32:00 +02:00
parent 7c02ab9937
commit 65346496f5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
38 changed files with 203 additions and 321 deletions

View file

@ -356,9 +356,6 @@ public:
LaunchControlXL(ARDOUR::Session &);
~LaunchControlXL();
static bool probe();
std::list<std::shared_ptr<ARDOUR::Bundle> > bundles();
bool has_editor() const { return true; }