diff options
Diffstat (limited to 'src/AtomWriter.cpp')
-rw-r--r-- | src/AtomWriter.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp index 54dcd0a2..786ff820 100644 --- a/src/AtomWriter.cpp +++ b/src/AtomWriter.cpp @@ -363,12 +363,21 @@ AtomWriter::move(const Raul::Path& old_path, * @endcode */ void -AtomWriter::del(const Raul::URI& uri) +AtomWriter::del(const Raul::URI& uri, const Properties& properties) { LV2_Atom_Forge_Frame msg; forge_request(&msg, _uris.patch_Delete); lv2_atom_forge_key(&_forge, _uris.patch_subject); forge_uri(uri); + + if (!properties.empty()) { + LV2_Atom_Forge_Frame body; + lv2_atom_forge_key(&_forge, _uris.patch_body); + lv2_atom_forge_object(&_forge, &body, 0, 0); + forge_properties(properties); + lv2_atom_forge_pop(&_forge, &body); + } + lv2_atom_forge_pop(&_forge, &msg); finish_msg(); } |