aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker/SongSticker.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-12 14:13:14 +0100
committerMax Kellermann <max@duempel.org>2014-12-12 21:43:54 +0100
commit204a1de3fd575deadda595b39799b9b9f6e7564e (patch)
tree7a629e8ed916d21a16a0b7e373a5d07d85869bb3 /src/sticker/SongSticker.hxx
parent80ddf4aecf2b865e4d4bb5f9f621b51c34a44122 (diff)
downloadmpd-204a1de3fd575deadda595b39799b9b9f6e7564e.tar.gz
mpd-204a1de3fd575deadda595b39799b9b9f6e7564e.tar.xz
mpd-204a1de3fd575deadda595b39799b9b9f6e7564e.zip
sticker/Database: use the Error library
Diffstat (limited to '')
-rw-r--r--src/sticker/SongSticker.hxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/sticker/SongSticker.hxx b/src/sticker/SongSticker.hxx
index 6e71bc3e4..918046d0e 100644
--- a/src/sticker/SongSticker.hxx
+++ b/src/sticker/SongSticker.hxx
@@ -27,13 +27,14 @@
struct LightSong;
struct sticker;
class Database;
+class Error;
/**
* Returns one value from a song's sticker record.
*/
gcc_pure
std::string
-sticker_song_get_value(const LightSong &song, const char *name);
+sticker_song_get_value(const LightSong &song, const char *name, Error &error);
/**
* Sets a sticker value in the specified song. Overwrites existing
@@ -41,20 +42,22 @@ sticker_song_get_value(const LightSong &song, const char *name);
*/
bool
sticker_song_set_value(const LightSong &song,
- const char *name, const char *value);
+ const char *name, const char *value,
+ Error &error);
/**
* Deletes a sticker from the database. All values are deleted.
*/
bool
-sticker_song_delete(const LightSong &song);
+sticker_song_delete(const LightSong &song, Error &error);
/**
* Deletes a sticker value. Does nothing if the sticker did not
* exist.
*/
bool
-sticker_song_delete_value(const LightSong &song, const char *name);
+sticker_song_delete_value(const LightSong &song, const char *name,
+ Error &error);
/**
* Loads the sticker for the specified song.
@@ -63,7 +66,7 @@ sticker_song_delete_value(const LightSong &song, const char *name);
* @return a sticker object, or NULL on error or if there is no sticker
*/
sticker *
-sticker_song_get(const LightSong &song);
+sticker_song_get(const LightSong &song, Error &error);
/**
* Finds stickers with the specified name below the specified
@@ -80,6 +83,7 @@ bool
sticker_song_find(const Database &db, const char *base_uri, const char *name,
void (*func)(const LightSong &song, const char *value,
void *user_data),
- void *user_data);
+ void *user_data,
+ Error &error);
#endif