From 2bf740fc71438edcb2c89e722ee8c83beb560128 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 12 Oct 2009 22:34:04 +0200 Subject: playlist_plugin: new plugin API for playlist parsers Based on this API, we will add parsers for EXTM3U, PLS, ASX, last.fm radio and others. There is no integration into the MPD core yet. Right now, we have a command line test program. This is work in progress. --- Makefile.am | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c2f0fcf60..bd3b3f83d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -136,6 +136,9 @@ mpd_headers = \ src/playlist_print.h \ src/playlist_save.h \ src/playlist_state.h \ + src/playlist_plugin.h \ + src/playlist_list.h \ + src/playlist/m3u_playlist_plugin.h \ src/poison.h \ src/riff.h \ src/aiff.h \ @@ -180,6 +183,7 @@ src_mpd_SOURCES = \ $(mpd_headers) \ $(ARCHIVE_SRC) \ $(INPUT_SRC) \ + $(PLAYLIST_SRC) \ $(TAG_SRC) \ $(DECODER_SRC) \ $(ENCODER_SRC) \ @@ -640,6 +644,15 @@ OUTPUT_SRC += src/output/solaris_output_plugin.c endif +# +# Playlist plugins +# + +PLAYLIST_SRC = \ + src/playlist/m3u_playlist_plugin.c \ + src/playlist_list.c + + # # Filter plugins # @@ -680,6 +693,7 @@ if ENABLE_TEST noinst_PROGRAMS = \ test/read_conf \ test/run_input \ + test/dump_playlist \ test/run_decoder \ test/read_tags \ test/run_filter \ @@ -707,6 +721,22 @@ test_run_input_SOURCES = test/run_input.c \ $(ARCHIVE_SRC) \ $(INPUT_SRC) +test_dump_playlist_CPPFLAGS = $(AM_CPPFLAGS) \ + $(ARCHIVE_CFLAGS) \ + $(INPUT_CFLAGS) +test_dump_playlist_LDADD = $(MPD_LIBS) \ + $(ARCHIVE_LIBS) \ + $(INPUT_LIBS) \ + $(GLIB_LIBS) +test_dump_playlist_SOURCES = test/dump_playlist.c \ + src/conf.c src/tokenizer.c src/utils.c \ + src/uri.c \ + src/song.c src/tag.c src/tag_pool.c src/tag_save.c \ + src/text_input_stream.c src/fifo_buffer.c \ + $(ARCHIVE_SRC) \ + $(INPUT_SRC) \ + $(PLAYLIST_SRC) + test_run_decoder_CPPFLAGS = $(AM_CPPFLAGS) \ $(TAG_CFLAGS) \ $(ARCHIVE_CFLAGS) \ -- cgit v1.2.3