mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
NO-OP: Re-indent websockets code
"Always use Tabstops for block-indent (the code must be formatted correctly with "[TAB] = N spaces" for any value of N). Use space only for alignment." - https://ardour.org/styleguide.html
This commit is contained in:
parent
224be91211
commit
5e3480ba8f
23 changed files with 1260 additions and 1217 deletions
|
|
@ -27,47 +27,49 @@ using namespace ArdourSurface;
|
|||
|
||||
static ControlProtocol*
|
||||
new_ardour_websockets_protocol (ControlProtocolDescriptor* /*descriptor*/,
|
||||
Session* s)
|
||||
Session* s)
|
||||
{
|
||||
ArdourWebsockets* surface = new ArdourWebsockets (*s);
|
||||
ArdourWebsockets* surface = new ArdourWebsockets (*s);
|
||||
|
||||
surface->set_active (true);
|
||||
surface->set_active (true);
|
||||
|
||||
return surface;
|
||||
return surface;
|
||||
}
|
||||
|
||||
static void
|
||||
delete_ardour_websockets_protocol (ControlProtocolDescriptor* /*descriptor*/,
|
||||
ControlProtocol* cp)
|
||||
ControlProtocol* cp)
|
||||
{
|
||||
delete cp;
|
||||
delete cp;
|
||||
}
|
||||
|
||||
static bool
|
||||
probe_ardour_websockets_protocol (ControlProtocolDescriptor* /*descriptor*/)
|
||||
{
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void*
|
||||
ardour_websockets_request_buffer_factory (uint32_t num_requests)
|
||||
{
|
||||
return ArdourWebsockets::request_factory (num_requests);
|
||||
return ArdourWebsockets::request_factory (num_requests);
|
||||
}
|
||||
|
||||
static ControlProtocolDescriptor ardour_websockets_descriptor = {
|
||||
/*name : */ SURFACE_NAME,
|
||||
/*id : */ SURFACE_ID,
|
||||
/*ptr : */ 0,
|
||||
/*module : */ 0,
|
||||
/*mandatory : */ 0,
|
||||
/*supports_feedback : */ true,
|
||||
/*probe : */ probe_ardour_websockets_protocol,
|
||||
/*initialize : */ new_ardour_websockets_protocol,
|
||||
/*destroy : */ delete_ardour_websockets_protocol,
|
||||
/*request_buffer_factory */ ardour_websockets_request_buffer_factory
|
||||
/*name : */ SURFACE_NAME,
|
||||
/*id : */ SURFACE_ID,
|
||||
/*ptr : */ 0,
|
||||
/*module : */ 0,
|
||||
/*mandatory : */ 0,
|
||||
/*supports_feedback : */ true,
|
||||
/*probe : */ probe_ardour_websockets_protocol,
|
||||
/*initialize : */ new_ardour_websockets_protocol,
|
||||
/*destroy : */ delete_ardour_websockets_protocol,
|
||||
/*request_buffer_factory */ ardour_websockets_request_buffer_factory
|
||||
};
|
||||
|
||||
extern "C" ARDOURSURFACE_API ControlProtocolDescriptor* protocol_descriptor () {
|
||||
return &ardour_websockets_descriptor;
|
||||
extern "C" ARDOURSURFACE_API ControlProtocolDescriptor*
|
||||
protocol_descriptor ()
|
||||
{
|
||||
return &ardour_websockets_descriptor;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue