diff options
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 |