sticker/Song: add _delete() overload with "const char *"

This commit is contained in:
Max Kellermann 2016-03-18 16:21:26 +01:00
parent b1becddf11
commit 296ee4961e
2 changed files with 10 additions and 2 deletions

View File

@ -44,11 +44,16 @@ sticker_song_set_value(const LightSong &song,
return sticker_store_value("song", uri.c_str(), name, value, error);
}
bool
sticker_song_delete(const char *uri, Error &error)
{
return sticker_delete("song", uri, error);
}
bool
sticker_song_delete(const LightSong &song, Error &error)
{
const auto uri = song.GetURI();
return sticker_delete("song", uri.c_str(), error);
return sticker_song_delete(song.GetURI().c_str(), error);
}
bool

View File

@ -50,6 +50,9 @@ sticker_song_set_value(const LightSong &song,
/**
* Deletes a sticker from the database. All values are deleted.
*/
bool
sticker_song_delete(const char *uri, Error &error);
bool
sticker_song_delete(const LightSong &song, Error &error);