diff options
author | Max Kellermann <max@duempel.org> | 2009-04-01 18:44:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-01 18:44:26 +0200 |
commit | c51e1bf1c093f823fca3ecbf3fe87e1ce1c6059a (patch) | |
tree | 20fbcacd9179caec0b2d31eb1c7f442f557d5223 /src/song_sticker.h | |
parent | 3a4d20faa2ee6e5e514b82a92c7973978679d47d (diff) | |
download | mpd-c51e1bf1c093f823fca3ecbf3fe87e1ce1c6059a.tar.gz mpd-c51e1bf1c093f823fca3ecbf3fe87e1ce1c6059a.tar.xz mpd-c51e1bf1c093f823fca3ecbf3fe87e1ce1c6059a.zip |
song_sticker: added song_sticker_find()
This is a wrapper for sticker_find(), which looks up the song object.
Diffstat (limited to 'src/song_sticker.h')
-rw-r--r-- | src/song_sticker.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/song_sticker.h b/src/song_sticker.h index 9b32c9215..435e4c935 100644 --- a/src/song_sticker.h +++ b/src/song_sticker.h @@ -24,6 +24,7 @@ #include <glib.h> struct song; +struct directory; struct sticker; /** @@ -56,4 +57,19 @@ sticker_song_delete(const struct song *song); struct sticker * sticker_song_get(const struct song *song); +/** + * Finds stickers with the specified name below the specified + * directory. + * + * @param directory the base directory to search in + * @param name the name of the sticker + * @return true on success (even if no sticker was found), false on + * failure + */ +bool +sticker_song_find(struct directory *directory, const char *name, + void (*func)(struct song *song, const char *value, + gpointer user_data), + gpointer user_data); + #endif |