summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-29 04:05:22 +0000
committerDavid Robillard <d@drobilla.net>2009-05-29 04:05:22 +0000
commit8817e75517d83266cea3cf569a974909aa3dc8f2 (patch)
tree8dbe85ed1da2e5c6b780424991cce0f15285c63a /src/client
parent90386cd6f49e2e9bfb11e7596ae6ce3ac51dfe16 (diff)
downloadingen-8817e75517d83266cea3cf569a974909aa3dc8f2.tar.gz
ingen-8817e75517d83266cea3cf569a974909aa3dc8f2.tar.bz2
ingen-8817e75517d83266cea3cf569a974909aa3dc8f2.zip
HTTP move and set_property client->engine support.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2049 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/HTTPEngineSender.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp
index 1d0cd846..daeae86e 100644
--- a/src/client/HTTPEngineSender.cpp
+++ b/src/client/HTTPEngineSender.cpp
@@ -136,6 +136,11 @@ void
HTTPEngineSender::move(const Path& old_path,
const Path& new_path)
{
+ SoupMessage* msg = soup_message_new(SOUP_METHOD_MOVE,
+ (_engine_url.str() + old_path.str()).c_str());
+ soup_message_headers_append(msg->request_headers, "Destination",
+ (_engine_url.str() + new_path.str()).c_str());
+ soup_session_send_message(_session, msg);
}
@@ -202,6 +207,9 @@ HTTPEngineSender::set_property(const URI& subject,
const URI& predicate,
const Atom& value)
{
+ Resource::Properties prop;
+ prop.insert(make_pair(predicate, value));
+ put(subject, prop);
}