aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-19 18:51:57 +0100
committerMax Kellermann <max@duempel.org>2009-01-19 18:51:57 +0100
commit145ab84d51f262983412143fbb29487a8647adb3 (patch)
tree8fc58be92be2178c86484caca17fae23535e8fad /src/main.c
parentfbed96dcea00db7c2f5044929caebfc06684ea15 (diff)
downloadmpd-145ab84d51f262983412143fbb29487a8647adb3.tar.gz
mpd-145ab84d51f262983412143fbb29487a8647adb3.tar.xz
mpd-145ab84d51f262983412143fbb29487a8647adb3.zip
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
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();