diff options
author | David Robillard <d@drobilla.net> | 2009-05-29 04:05:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-29 04:05:22 +0000 |
commit | 8817e75517d83266cea3cf569a974909aa3dc8f2 (patch) | |
tree | 8dbe85ed1da2e5c6b780424991cce0f15285c63a | |
parent | 90386cd6f49e2e9bfb11e7596ae6ce3ac51dfe16 (diff) | |
download | ingen-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
-rw-r--r-- | src/client/HTTPEngineSender.cpp | 8 |
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); } |