mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-16 10:36:17 +02:00
serialize stream to json
This commit is contained in:
parent
7bec5b8744
commit
95e4a98fef
11 changed files with 172 additions and 113 deletions
|
@ -88,4 +88,12 @@ void StreamManager::stop()
|
|||
}
|
||||
|
||||
|
||||
json StreamManager::toJson() const
|
||||
{
|
||||
json result = json::array();
|
||||
for (auto stream: streams_)
|
||||
result.push_back(stream->getUri().toJson());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue