feat: Add interactive controller button to print connected peers

This commit is contained in:
Alexey Rybalchenko
2021-10-13 22:05:36 +02:00
parent fda8126a43
commit ebcbe2dde6
5 changed files with 31 additions and 2 deletions

View File

@@ -91,6 +91,8 @@ class Plugin
auto SubscribeToDeviceStateChange(std::function<void(DeviceState)> callback) -> void { fPluginServices->SubscribeToDeviceStateChange(fkName, callback); }
auto UnsubscribeFromDeviceStateChange() -> void { fPluginServices->UnsubscribeFromDeviceStateChange(fkName); }
auto GetNumberOfConnectedPeers(const std::string& channelName, int index = 0) -> unsigned long { return fPluginServices->GetNumberOfConnectedPeers(channelName, index); }
// device config API
// see <fairmq/PluginServices.h> for docs
auto PropertyExists(const std::string& key) -> int { return fPluginServices->PropertyExists(key); }