diff options
author | David Robillard <d@drobilla.net> | 2009-05-29 00:44:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-29 00:44:49 +0000 |
commit | 085f5e9c5eec12171596c47c0b70f6634dbc1402 (patch) | |
tree | 16df3f452c174bbd1f1099936dc592939a59967e /src/engine/QueuedEngineInterface.cpp | |
parent | b3c31c94eb572063ec97f24a89e5f7f98d5eae41 (diff) | |
download | ingen-085f5e9c5eec12171596c47c0b70f6634dbc1402.tar.gz ingen-085f5e9c5eec12171596c47c0b70f6634dbc1402.tar.bz2 ingen-085f5e9c5eec12171596c47c0b70f6634dbc1402.zip |
Node creation via HTTP.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2045 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/QueuedEngineInterface.cpp')
-rw-r--r-- | src/engine/QueuedEngineInterface.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/engine/QueuedEngineInterface.cpp b/src/engine/QueuedEngineInterface.cpp index cce6bb9d..4873f21b 100644 --- a/src/engine/QueuedEngineInterface.cpp +++ b/src/engine/QueuedEngineInterface.cpp @@ -155,17 +155,16 @@ void QueuedEngineInterface::put(const URI& uri, const Resource::Properties& properties) { - size_t hash = uri.find("#"); - bool meta = (hash != string::npos); - Path path(meta ? (string("/") + uri.chop_start("#")) : uri.str()); + bool meta = uri.substr(0, 6) == "meta:#"; + URI subject(meta ? (string("path:/") + uri.substr(6)) : uri.str()); + /*cerr << "ENGINE PUT " << subject << " {" << endl; typedef Resource::Properties::const_iterator iterator; - /*cerr << "ENGINE PUT " << path << " (" << path << ") {" << endl; for (iterator i = properties.begin(); i != properties.end(); ++i) cerr << "\t" << i->first << " = " << i->second << " :: " << i->second.type() << endl; cerr << "}" << endl;*/ - push_queued(new SetMetadataEvent(_engine, _responder, now(), this, meta, path, properties)); + push_queued(new SetMetadataEvent(_engine, _responder, now(), this, meta, subject, properties)); } |