Commit 83aac2a0 authored by Max Kellermann's avatar Max Kellermann

test/run_input: initialize archive plugins

Enable archive plugin debugging.
parent f01d7d23
...@@ -17,11 +17,16 @@ ...@@ -17,11 +17,16 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "config.h"
#include "input_stream.h" #include "input_stream.h"
#include "tag_pool.h" #include "tag_pool.h"
#include "tag_save.h" #include "tag_save.h"
#include "conf.h" #include "conf.h"
#ifdef ENABLE_ARCHIVE
#include "archive_list.h"
#endif
#include <glib.h> #include <glib.h>
#include <unistd.h> #include <unistd.h>
...@@ -58,6 +63,11 @@ int main(int argc, char **argv) ...@@ -58,6 +63,11 @@ int main(int argc, char **argv)
tag_pool_init(); tag_pool_init();
config_global_init(); config_global_init();
#ifdef ENABLE_ARCHIVE
archive_plugin_init_all();
#endif
input_stream_global_init(); input_stream_global_init();
/* open the stream and wait until it becomes ready */ /* open the stream and wait until it becomes ready */
...@@ -107,6 +117,11 @@ int main(int argc, char **argv) ...@@ -107,6 +117,11 @@ int main(int argc, char **argv)
input_stream_close(&is); input_stream_close(&is);
input_stream_global_finish(); input_stream_global_finish();
#ifdef ENABLE_ARCHIVE
archive_plugin_deinit_all();
#endif
config_global_finish(); config_global_finish();
tag_pool_deinit(); tag_pool_deinit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment