summaryrefslogtreecommitdiff
path: root/libs/surfaces/websockets/interface.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-23 16:03:59 +0100
committerRobin Gareus <robin@gareus.org>2020-02-23 16:21:55 +0100
commit5e3480ba8f3dfd5368f323322de7eb79fcf8f97a (patch)
tree71a75edc24ebce9a6a6f9827f05a57488c43a2b9 /libs/surfaces/websockets/interface.cc
parent224be912112941199fc8c2ff79518d2d2a2262d0 (diff)
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
Diffstat (limited to 'libs/surfaces/websockets/interface.cc')
-rw-r--r--libs/surfaces/websockets/interface.cc42
1 files changed, 22 insertions, 20 deletions
diff --git a/libs/surfaces/websockets/interface.cc b/libs/surfaces/websockets/interface.cc
index 5bdd16754b..462ac79cb8 100644
--- a/libs/surfaces/websockets/interface.cc
+++ b/libs/surfaces/websockets/interface.cc
@@ -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;
}