mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-02 19:01:47 +02:00
Groups: interims commit
This commit is contained in:
parent
22f768311d
commit
0af508f6ee
14 changed files with 555 additions and 328 deletions
|
@ -257,8 +257,11 @@ struct ClientInfo
|
|||
|
||||
struct Group
|
||||
{
|
||||
Group()
|
||||
Group(const ClientInfoPtr client = nullptr)
|
||||
{
|
||||
if (client)
|
||||
id = client->id;
|
||||
id = generateUUID();
|
||||
}
|
||||
|
||||
void fromJson(const json& j)
|
||||
|
@ -314,15 +317,16 @@ public:
|
|||
void remove(ClientInfoPtr client);
|
||||
|
||||
GroupPtr getGroup(ClientInfoPtr client);
|
||||
GroupPtr getGroup(const std::string& groupId) const;
|
||||
|
||||
json getClientInfos() const;
|
||||
// json getClientInfos() const;
|
||||
json getGroups() const;
|
||||
json getServerStatus(const std::string& clientId, const json& streams) const;
|
||||
json getServerStatus(const json& streams) const;
|
||||
|
||||
void save();
|
||||
|
||||
std::vector<GroupPtr> groups;
|
||||
std::vector<ClientInfoPtr> clients;
|
||||
// std::vector<ClientInfoPtr> clients;
|
||||
|
||||
private:
|
||||
Config();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue