aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker/StickerDatabase.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/StickerDatabase.hxx
parent80ddf4aecf2b865e4d4bb5f9f621b51c34a44122 (diff)
downloadmpd-204a1de3fd575deadda595b39799b9b9f6e7564e.tar.gz
mpd-204a1de3fd575deadda595b39799b9b9f6e7564e.tar.xz
mpd-204a1de3fd575deadda595b39799b9b9f6e7564e.zip
sticker/Database: use the Error library
Diffstat (limited to 'src/sticker/StickerDatabase.hxx')
-rw-r--r--src/sticker/StickerDatabase.hxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/sticker/StickerDatabase.hxx b/src/sticker/StickerDatabase.hxx
index 949be6ebd..38c7d6f95 100644
--- a/src/sticker/StickerDatabase.hxx
+++ b/src/sticker/StickerDatabase.hxx
@@ -76,7 +76,8 @@ sticker_enabled();
* empty string if the value doesn't exist.
*/
std::string
-sticker_load_value(const char *type, const char *uri, const char *name);
+sticker_load_value(const char *type, const char *uri, const char *name,
+ Error &error);
/**
* Sets a sticker value in the specified object. Overwrites existing
@@ -84,21 +85,24 @@ sticker_load_value(const char *type, const char *uri, const char *name);
*/
bool
sticker_store_value(const char *type, const char *uri,
- const char *name, const char *value);
+ const char *name, const char *value,
+ Error &error);
/**
* Deletes a sticker from the database. All sticker values of the
* specified object are deleted.
*/
bool
-sticker_delete(const char *type, const char *uri);
+sticker_delete(const char *type, const char *uri,
+ Error &error);
/**
* Deletes a sticker value. Fails if no sticker with this name
* exists.
*/
bool
-sticker_delete_value(const char *type, const char *uri, const char *name);
+sticker_delete_value(const char *type, const char *uri, const char *name,
+ Error &error);
/**
* Frees resources held by the sticker object.
@@ -140,7 +144,8 @@ sticker_foreach(const sticker &sticker,
* @return a sticker object, or nullptr on error or if there is no sticker
*/
sticker *
-sticker_load(const char *type, const char *uri);
+sticker_load(const char *type, const char *uri,
+ Error &error);
/**
* Finds stickers with the specified name below the specified URI.
@@ -156,6 +161,7 @@ bool
sticker_find(const char *type, const char *base_uri, const char *name,
void (*func)(const char *uri, const char *value,
void *user_data),
- void *user_data);
+ void *user_data,
+ Error &error);
#endif