diff options
author | Max Kellermann <max@duempel.org> | 2009-04-01 18:42:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-01 18:42:06 +0200 |
commit | 3a4d20faa2ee6e5e514b82a92c7973978679d47d (patch) | |
tree | c14bd2c9b800851f1d4ab741a31ec0300ed7391b /src/sticker.h | |
parent | 7f38c3fc78f7dd3c542cdb73bcd45bfe2208a5a8 (diff) | |
download | mpd-3a4d20faa2ee6e5e514b82a92c7973978679d47d.tar.gz mpd-3a4d20faa2ee6e5e514b82a92c7973978679d47d.tar.xz mpd-3a4d20faa2ee6e5e514b82a92c7973978679d47d.zip |
sticker: added sticker_find()
sticker_find() finds stickers with the specified name.
Diffstat (limited to '')
-rw-r--r-- | src/sticker.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sticker.h b/src/sticker.h index 77363d61e..5daba3def 100644 --- a/src/sticker.h +++ b/src/sticker.h @@ -129,4 +129,20 @@ sticker_foreach(const struct sticker *sticker, struct sticker * sticker_load(const char *type, const char *uri); +/** + * Finds stickers with the specified name below the specified URI. + * + * @param type the resource type, e.g. "song" + * @param base_uri the URI prefix of the resources, or NULL if all + * resources should be searched + * @param name the name of the sticker + * @return true on success (even if no sticker was found), false on + * failure + */ +bool +sticker_find(const char *type, const char *base_uri, const char *name, + void (*func)(const char *uri, const char *value, + gpointer user_data), + gpointer user_data); + #endif |