diff options
Diffstat (limited to 'server/streamdev-server.c')
-rw-r--r-- | server/streamdev-server.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/streamdev-server.c b/server/streamdev-server.c index e1475da..33d08a5 100644 --- a/server/streamdev-server.c +++ b/server/streamdev-server.c @@ -243,4 +243,17 @@ cString cPluginStreamdevServer::SVDRPCommand(const char *Command, const char *Op return reply; } +bool cPluginStreamdevServer::Service(const char *Id, void *Data) +{ + if (strcmp(Id, "StreamdevServer::ClientCount-v1.0") == 0) { + if (Data) { + int *count = (int *) Data; + cThreadLock lock; + *count = cStreamdevServer::Clients(lock).Count(); + } + return true; + } + return false; +} + VDRPLUGINCREATOR(cPluginStreamdevServer); // Don't touch this! |