summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-03-14 19:03:10 -0400
committerDavid Robillard <d@drobilla.net>2016-03-14 19:03:10 -0400
commit4ffc37f349871bc54373846ed9fc759f06c20294 (patch)
treec2710e9f7848cb09aa491f83f5134c4085df798f /src
parent05def9fc79404a032709e955fb0f8f3abf440398 (diff)
downloadingen-4ffc37f349871bc54373846ed9fc759f06c20294.tar.gz
ingen-4ffc37f349871bc54373846ed9fc759f06c20294.tar.bz2
ingen-4ffc37f349871bc54373846ed9fc759f06c20294.zip
Add missing client store debug dumps
Diffstat (limited to 'src')
-rw-r--r--src/client/ClientStore.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 1061fb6b..12674981 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -209,6 +209,10 @@ ClientStore::add_plugin(SPtr<PluginModel> pm)
void
ClientStore::del(const Raul::URI& uri)
{
+#ifdef INGEN_CLIENT_STORE_DUMP
+ std::cerr << "Client del " << uri << std::endl;
+#endif
+
if (Node::uri_is_path(uri)) {
remove_object(Node::uri_to_path(uri));
} else {
@@ -230,6 +234,11 @@ ClientStore::copy(const Raul::URI& old_uri,
void
ClientStore::move(const Raul::Path& old_path, const Raul::Path& new_path)
{
+#ifdef INGEN_CLIENT_STORE_DUMP
+ std::cerr << "Client move " << old_path
+ << " => " << new_path << endl;
+#endif
+
const iterator top = find(old_path);
if (top != end()) {
rename(top, new_path);
@@ -510,6 +519,10 @@ void
ClientStore::disconnect_all(const Raul::Path& parent_graph,
const Raul::Path& path)
{
+#ifdef INGEN_CLIENT_STORE_DUMP
+ std::cerr << "Client disconnect all " << path << " in " << parent_graph << std::endl;
+#endif
+
SPtr<GraphModel> graph = dynamic_ptr_cast<GraphModel>(_object(parent_graph));
SPtr<ObjectModel> object = _object(path);