From 3a4d20faa2ee6e5e514b82a92c7973978679d47d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Apr 2009 18:42:06 +0200 Subject: sticker: added sticker_find() sticker_find() finds stickers with the specified name. --- src/sticker.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/sticker.h') 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 -- cgit v1.2.3