mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
renamed "System" to "Server"
This commit is contained in:
parent
eb99b52c5e
commit
b4701fb0fe
5 changed files with 12 additions and 11 deletions
|
@ -141,7 +141,7 @@ void StreamServer::onMessageReceived(ControlSession* controlSession, const std::
|
|||
throw JsonInternalErrorException("Client not found", request.id);
|
||||
}
|
||||
|
||||
if (request.method == "System.GetStatus")
|
||||
if (request.method == "Server.GetStatus")
|
||||
{
|
||||
json jClient = json::array();
|
||||
if (request.hasParam("client"))
|
||||
|
@ -158,10 +158,11 @@ void StreamServer::onMessageReceived(ControlSession* controlSession, const std::
|
|||
{"host", getHostName()},
|
||||
{"version", VERSION}
|
||||
}},
|
||||
{"clients", jClient}
|
||||
{"clients", jClient},
|
||||
{"streams", "TODO"}
|
||||
};
|
||||
}
|
||||
else if (request.method == "System.DeleteClient")
|
||||
else if (request.method == "Server.DeleteClient")
|
||||
{
|
||||
clientInfo = Config::instance().getClientInfo(request.getParam("client").get<string>(), false);
|
||||
if (clientInfo == nullptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue