summaryrefslogtreecommitdiffstats
path: root/src/AtomWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/AtomWriter.cpp')
-rw-r--r--src/AtomWriter.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp
index 7c956ece..eaf45243 100644
--- a/src/AtomWriter.cpp
+++ b/src/AtomWriter.cpp
@@ -168,6 +168,20 @@ AtomWriter::delta(const Raul::URI& uri,
}
void
+AtomWriter::copy(const Raul::Path& old_path,
+ const Raul::URI& new_uri)
+{
+ LV2_Atom_Forge_Frame msg;
+ forge_request(&msg, _uris.patch_Copy);
+ lv2_atom_forge_key(&_forge, _uris.patch_subject);
+ forge_uri(Node::path_to_uri(old_path));
+ lv2_atom_forge_key(&_forge, _uris.patch_destination);
+ forge_uri(new_uri);
+ lv2_atom_forge_pop(&_forge, &msg);
+ finish_msg();
+}
+
+void
AtomWriter::move(const Raul::Path& old_path,
const Raul::Path& new_path)
{