mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
WebSockets: rename send_index_* to send_availsurf_* to avoid confusion with a static index page
This commit is contained in:
parent
e7f22cf989
commit
30c8563a6d
2 changed files with 7 additions and 7 deletions
|
|
@ -333,7 +333,7 @@ WebsocketsServer::write_client (Client wsi)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
WebsocketsServer::send_index_hdr (Client wsi)
|
WebsocketsServer::send_availsurf_hdr (Client wsi)
|
||||||
{
|
{
|
||||||
char url[1024];
|
char url[1024];
|
||||||
|
|
||||||
|
|
@ -384,7 +384,7 @@ WebsocketsServer::send_index_hdr (Client wsi)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
WebsocketsServer::send_index_body (Client wsi)
|
WebsocketsServer::send_availsurf_body (Client wsi)
|
||||||
{
|
{
|
||||||
std::string index = _resources.scan ();
|
std::string index = _resources.scan ();
|
||||||
|
|
||||||
|
|
@ -505,13 +505,13 @@ WebsocketsServer::lws_callback (struct lws* wsi, enum lws_callback_reasons reaso
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* will be called only if the requested url is not fulfilled
|
/* will be called only if the requested url is not fulfilled
|
||||||
by the any of the mount configurations (index, builtin, user) */
|
by the any of the mount configurations (builtin, user) */
|
||||||
case LWS_CALLBACK_HTTP:
|
case LWS_CALLBACK_HTTP:
|
||||||
rc = server->send_index_hdr (wsi);
|
rc = server->send_availsurf_hdr (wsi);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LWS_CALLBACK_HTTP_WRITEABLE:
|
case LWS_CALLBACK_HTTP_WRITEABLE:
|
||||||
rc = server->send_index_body (wsi);
|
rc = server->send_availsurf_body (wsi);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LWS_CALLBACK_CLOSED_HTTP:
|
case LWS_CALLBACK_CLOSED_HTTP:
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,8 @@ private:
|
||||||
int del_client (Client);
|
int del_client (Client);
|
||||||
int recv_client (Client, void*, size_t);
|
int recv_client (Client, void*, size_t);
|
||||||
int write_client (Client);
|
int write_client (Client);
|
||||||
int send_index_hdr (Client);
|
int send_availsurf_hdr (Client);
|
||||||
int send_index_body (Client);
|
int send_availsurf_body (Client);
|
||||||
|
|
||||||
bool io_handler (Glib::IOCondition, lws_sockfd_type);
|
bool io_handler (Glib::IOCondition, lws_sockfd_type);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue