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.
This commit is contained in:
12
src/main.c
12
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user