38 lines
744 B
C
38 lines
744 B
C
/*
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
*/
|
|
#include <core/audio.h>
|
|
#include <core/core.h>
|
|
#include <core/collection.h>
|
|
#include <core/filter.h>
|
|
#include <core/history.h>
|
|
#include <core/idle.h>
|
|
#include <core/playlist.h>
|
|
#include <core/tags/tags.h>
|
|
#include <core/tempq.h>
|
|
|
|
|
|
void core_init(int *argc, char ***argv, struct core_init_data *init)
|
|
{
|
|
idle_init();
|
|
filter_init();
|
|
tags_init();
|
|
playlist_init(init->playlist_ops);
|
|
collection_init(init->collection_ops);
|
|
history_init(init->history_ops);
|
|
tempq_init(init->tempq_ops);
|
|
audio_init(argc, argv, init->audio_ops);
|
|
}
|
|
|
|
void core_deinit()
|
|
{
|
|
audio_deinit();
|
|
tempq_deinit();
|
|
history_deinit();
|
|
collection_deinit();
|
|
playlist_deinit();
|
|
tags_deinit();
|
|
filter_deinit();
|
|
idle_deinit();
|
|
}
|