From 145ab84d51f262983412143fbb29487a8647adb3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 19 Jan 2009 18:51:57 +0100 Subject: sticker: new library for storing dynamic information about songs "Stickers" are pieces of information attached to existing MPD objects (e.g. song files, directories, albums). Clients can create arbitrary name/value pairs. MPD itself does not assume any special meaning in them. --- src/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 449a9f747..fa2bc3ac6 100644 --- a/src/main.c +++ b/src/main.c @@ -54,6 +54,10 @@ #include "songvec.h" #include "tag_pool.h" +#ifdef ENABLE_SQLITE +#include "sticker.h" +#endif + #ifdef ENABLE_ARCHIVE #include "archive_list.h" #endif @@ -235,6 +239,10 @@ int main(int argc, char *argv[]) openDB(&options, argv[0]); +#ifdef ENABLE_SQLITE + sticker_global_init(config_get_path(CONF_STICKER_FILE)); +#endif + command_init(); initialize_decoder_and_player(); initAudioConfig(); @@ -278,6 +286,10 @@ int main(int argc, char *argv[]) g_debug("db_finish took %f seconds", ((float)(clock()-start))/CLOCKS_PER_SEC); +#ifdef ENABLE_SQLITE + sticker_global_finish(); +#endif + notify_deinit(&main_notify); event_pipe_deinit(); -- cgit v1.2.3