From 80923fdb966c74263a723f2ac6a39ea44efb07b2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Sep 2006 21:08:52 +0000 Subject: Connecting/Disconnecting/Reconnecting to the engine without restarting. git-svn-id: http://svn.drobilla.net/lad/ingen@115 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.cpp | 9 +++++++++ src/libs/client/Store.h | 2 ++ 2 files changed, 11 insertions(+) (limited to 'src/libs') diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 0b25da2e..403264f2 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -48,6 +48,15 @@ Store::Store(SigClientInterface& emitter) } +void +Store::clear() +{ + m_objects.clear(); + m_plugins.clear(); + +} + + void Store::add_object(CountedPtr object) { diff --git a/src/libs/client/Store.h b/src/libs/client/Store.h index ff3eea62..cb6c3206 100644 --- a/src/libs/client/Store.h +++ b/src/libs/client/Store.h @@ -47,6 +47,8 @@ public: CountedPtr node(const string& path); CountedPtr port(const string& path);*/ + void clear(); + size_t num_objects() { return m_objects.size(); } const map >& plugins() const { return m_plugins; } -- cgit v1.2.1