summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-02 06:24:22 +0000
committerDavid Robillard <d@drobilla.net>2012-05-02 06:24:22 +0000
commitfe353cce9665b33a7372ed2d1683b3c2748625f7 (patch)
tree81287558b014309820e9df64033edc0b29d23b4f /src/server
parent1c736a348c59d98e4022fb02b49a8b4c93baa3d2 (diff)
downloadingen-fe353cce9665b33a7372ed2d1683b3c2748625f7.tar.gz
ingen-fe353cce9665b33a7372ed2d1683b3c2748625f7.tar.bz2
ingen-fe353cce9665b33a7372ed2d1683b3c2748625f7.zip
Preliminary socket control interface, and ingen_cmd command line interface which uses it.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4311 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/events/SetMetadata.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/server/events/SetMetadata.cpp b/src/server/events/SetMetadata.cpp
index ee741b9e..7d88c83c 100644
--- a/src/server/events/SetMetadata.cpp
+++ b/src/server/events/SetMetadata.cpp
@@ -77,16 +77,19 @@ SetMetadata::SetMetadata(Engine& engine,
}
/*
- LOG(info) << "Set " << subject << " : " << context << " {" << endl;
+ LOG(info) << "Patch " << subject << " : " << context << " {" << endl;
typedef Resource::Properties::const_iterator iterator;
- for (iterator i = properties.begin(); i != properties.end(); ++i)
- LOG(info) << " " << i->first << " = " << i->second << " :: " << i->second.type() << endl;
- LOG(info) << "}" << endl;
-
- LOG(info) << "Unset " << subject << " {" << endl;
+ for (iterator i = properties.begin(); i != properties.end(); ++i) {
+ LOG(info) << " + " << i->first
+ << " = " << engine.world()->forge().str(i->second)
+ << " :: " << engine.world()->lv2_uri_map()->unmap_uri(i->second.type()) << endl;
+ }
typedef Resource::Properties::const_iterator iterator;
- for (iterator i = remove.begin(); i != remove.end(); ++i)
- LOG(info) << " " << i->first << " = " << i->second << " :: " << i->second.type() << endl;
+ for (iterator i = remove.begin(); i != remove.end(); ++i) {
+ LOG(info) << " - " << i->first
+ << " = " << engine.world()->forge().str(i->second)
+ << " :: " << engine.world()->lv2_uri_map()->unmap_uri(i->second.type()) << endl;
+ }
LOG(info) << "}" << endl;
*/
}
@@ -133,7 +136,7 @@ SetMetadata::pre_process()
_create_event = new CreatePatch(_engine, _request_client, _request_id, _time,
path, poly, _properties);
} else if (is_node) {
- const iterator p = _properties.find(uris.rdf_instanceOf);
+ const iterator p = _properties.find(uris.ingen_prototype);
_create_event = new CreateNode(_engine, _request_client, _request_id, _time,
path, p->second.get_uri(), _properties);
} else if (is_port) {