surfaces & event loops: i really mean no more request buffer factories
This commit is contained in:
@@ -180,15 +180,6 @@ public:
|
||||
bool (*probe) (ControlProtocolDescriptor*);
|
||||
ControlProtocol* (*initialize) (ControlProtocolDescriptor*, Session*);
|
||||
void (*destroy) (ControlProtocolDescriptor*, ControlProtocol*);
|
||||
/* this is required if the control protocol connects to signals
|
||||
* from libardour. they all do. It should allocate a
|
||||
* type-specific request buffer for the calling thread, and
|
||||
* store it in a thread-local location that will be used to
|
||||
* find it when sending the event loop a message
|
||||
* (e.g. call_slot()). It should also return the allocated
|
||||
* buffer as a void*.
|
||||
*/
|
||||
void* (*request_buffer_factory) (uint32_t);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -437,14 +437,3 @@ MIDISurface::bundles ()
|
||||
return b;
|
||||
}
|
||||
|
||||
void*
|
||||
MIDISurface::request_factory (uint32_t num_requests)
|
||||
{
|
||||
/* AbstractUI<T>::request_buffer_factory() is a template method only
|
||||
instantiated in this source module. To provide something visible for
|
||||
use in the interface/descriptor, we have this static method that is
|
||||
template-free.
|
||||
*/
|
||||
return request_buffer_factory (num_requests);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,8 +48,6 @@ class MIDISurface : public ARDOUR::ControlProtocol
|
||||
MIDISurface (ARDOUR::Session&, std::string const & name, std::string const & port_name_prefix, bool use_pad_filter);
|
||||
~MIDISurface ();
|
||||
|
||||
static void* request_factory (uint32_t num_requests);
|
||||
|
||||
std::shared_ptr<ARDOUR::Port> input_port();
|
||||
std::shared_ptr<ARDOUR::Port> output_port();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user