From f5ae1ce00b85699291a7cdf9782574e70a8c28f5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Jan 2014 10:51:34 +0100 Subject: LightSong: new class to be used by DatabasePlugin callbacks Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread. --- src/SongSticker.hxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/SongSticker.hxx') diff --git a/src/SongSticker.hxx b/src/SongSticker.hxx index b626e63e3..2f977bd21 100644 --- a/src/SongSticker.hxx +++ b/src/SongSticker.hxx @@ -24,7 +24,7 @@ #include -struct Song; +struct LightSong; struct Directory; struct sticker; @@ -34,28 +34,28 @@ struct sticker; */ gcc_pure std::string -sticker_song_get_value(const Song &song, const char *name); +sticker_song_get_value(const LightSong &song, const char *name); /** * Sets a sticker value in the specified song. Overwrites existing * values. */ bool -sticker_song_set_value(const Song &song, +sticker_song_set_value(const LightSong &song, const char *name, const char *value); /** * Deletes a sticker from the database. All values are deleted. */ bool -sticker_song_delete(const Song &song); +sticker_song_delete(const LightSong &song); /** * Deletes a sticker value. Does nothing if the sticker did not * exist. */ bool -sticker_song_delete_value(const Song &song, const char *name); +sticker_song_delete_value(const LightSong &song, const char *name); /** * Loads the sticker for the specified song. @@ -64,7 +64,7 @@ sticker_song_delete_value(const Song &song, const char *name); * @return a sticker object, or NULL on error or if there is no sticker */ sticker * -sticker_song_get(const Song &song); +sticker_song_get(const LightSong &song); /** * Finds stickers with the specified name below the specified @@ -79,7 +79,7 @@ sticker_song_get(const Song &song); */ bool sticker_song_find(Directory &directory, const char *name, - void (*func)(Song &song, const char *value, + void (*func)(const LightSong &song, const char *value, void *user_data), void *user_data); -- cgit v1.2.3