aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-15 19:07:20 +0100
committerMax Kellermann <max@duempel.org>2009-12-15 19:40:14 +0100
commit83aac2a057069de88e551899583fa0ab5662f753 (patch)
tree8b573d832ebfda9767de88e12fc3273cc71470d0
parentf01d7d230b1835ab035a5130e2a39f05f0aabdf5 (diff)
downloadmpd-83aac2a057069de88e551899583fa0ab5662f753.tar.gz
mpd-83aac2a057069de88e551899583fa0ab5662f753.tar.xz
mpd-83aac2a057069de88e551899583fa0ab5662f753.zip
test/run_input: initialize archive plugins
Enable archive plugin debugging.
Diffstat (limited to '')
-rw-r--r--test/run_input.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/run_input.c b/test/run_input.c
index 37c792b86..b91d367ba 100644
--- a/test/run_input.c
+++ b/test/run_input.c
@@ -17,11 +17,16 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include "input_stream.h"
#include "tag_pool.h"
#include "tag_save.h"
#include "conf.h"
+#ifdef ENABLE_ARCHIVE
+#include "archive_list.h"
+#endif
+
#include <glib.h>
#include <unistd.h>
@@ -58,6 +63,11 @@ int main(int argc, char **argv)
tag_pool_init();
config_global_init();
+
+#ifdef ENABLE_ARCHIVE
+ archive_plugin_init_all();
+#endif
+
input_stream_global_init();
/* open the stream and wait until it becomes ready */
@@ -107,6 +117,11 @@ int main(int argc, char **argv)
input_stream_close(&is);
input_stream_global_finish();
+
+#ifdef ENABLE_ARCHIVE
+ archive_plugin_deinit_all();
+#endif
+
config_global_finish();
tag_pool_deinit();