summaryrefslogtreecommitdiffhomepage
path: root/connectionregistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'connectionregistry.cpp')
-rw-r--r--connectionregistry.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/connectionregistry.cpp b/connectionregistry.cpp
index 11a538b..412472d 100644
--- a/connectionregistry.cpp
+++ b/connectionregistry.cpp
@@ -81,6 +81,11 @@ void ConnectionRegistry::dump() const
}
}
+size_t ConnectionRegistry::number_of_connections() const
+{
+ return m_connections.size();
+}
+
ConnectionRegistry::RegistryGuard::RegistryGuard(ConnectionRegistry& registry, ConnectionRegistry::connection c):
m_registry{registry},
m_connection{c}