new b4s demuxer for winamp b4s playlists. Uses xml parser modules. Only

works with xtag for now due to lack of a DTD
parent 437c2140
......@@ -2,4 +2,5 @@ SOURCES_playlist = playlist.c \
playlist.h \
old.c \
m3u.c \
b4s.c \
pls.c
This diff is collapsed.
......@@ -40,26 +40,31 @@ vlc_module_begin();
set_description( _("Old playlist open") );
add_shortcut( "old-open" );
set_capability( "demux2" , 10 );
set_callbacks( Import_Old , NULL );
set_capability( "demux2", 10 );
set_callbacks( Import_Old, NULL );
#if 0
add_submodule();
set_description( _("Native playlist import") );
add_shortcut( "playlist" );
add_shortcut( "native-open" );
set_capability( "demux2" , 10 );
set_callbacks( Import_Native , Close_Native );
set_capability( "demux2", 10 );
set_callbacks( Import_Native, Close_Native );
#endif
add_submodule();
set_description( _("M3U playlist import") );
add_shortcut( "m3u-open" );
set_capability( "demux2" , 10 );
set_callbacks( Import_M3U , Close_M3U );
set_capability( "demux2", 10 );
set_callbacks( Import_M3U, Close_M3U );
add_submodule();
set_description( _("PLS playlist import") );
add_shortcut( "pls-open" );
set_capability( "demux2" , 10 );
set_callbacks( Import_PLS , Close_PLS );
set_capability( "demux2", 10 );
set_callbacks( Import_PLS, Close_PLS );
add_submodule();
set_description( _("B4S playlist import") );
add_shortcut( "b4s-open" );
set_capability( "demux2", 10 );
set_callbacks( Import_B4S, Close_B4S );
vlc_module_end();
......
......@@ -27,11 +27,15 @@ char *FindPrefix( demux_t * );
vlc_bool_t FindItem( demux_t *, playlist_t *, playlist_item_t **);
int Import_Old ( vlc_object_t * );
int Import_M3U ( vlc_object_t * );
int Import_Native ( vlc_object_t * );
int Close_Native ( vlc_object_t * );
int Import_M3U ( vlc_object_t * );
void Close_M3U ( vlc_object_t * );
int Import_PLS ( vlc_object_t * );
void Close_PLS ( vlc_object_t * );
int Import_B4S ( vlc_object_t * );
void Close_B4S ( vlc_object_t * );
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