/*****************************************************************************
* playlist.h: Playlist import module common functions
*****************************************************************************
- * Copyright (C) 2004 VideoLAN
+ * Copyright (C) 2004 the VideoLAN team
* $Id$
*
- * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
+ * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#include <vlc_playlist.h>
char *ProcessMRL( char *, char * );
char *FindPrefix( demux_t * );
-vlc_bool_t FindItem( demux_t *, playlist_t *, playlist_item_t **);
+bool FindItem( demux_t *, playlist_t *, playlist_item_t **);
+
+void AddToPlaylist( demux_t *, playlist_t*,input_item_t*,playlist_item_t*,int );
int Import_Old ( vlc_object_t * );
int Import_Native ( vlc_object_t * );
-int Close_Native ( vlc_object_t * );
+void Close_Native ( vlc_object_t * );
int Import_M3U ( vlc_object_t * );
void Close_M3U ( vlc_object_t * );
int Import_B4S ( vlc_object_t * );
void Close_B4S ( vlc_object_t * );
+
+int Import_DVB ( vlc_object_t * );
+void Close_DVB ( vlc_object_t * );
+
+int Import_podcast ( vlc_object_t * );
+void Close_podcast ( vlc_object_t * );
+
+int Import_xspf ( vlc_object_t * );
+void Close_xspf ( vlc_object_t * );
+
+int Import_Shoutcast ( vlc_object_t * );
+void Close_Shoutcast ( vlc_object_t * );
+
+int Import_ASX ( vlc_object_t * );
+void Close_ASX ( vlc_object_t * );
+
+int Import_SGIMB ( vlc_object_t * );
+void Close_SGIMB ( vlc_object_t * );
+
+int Import_QTL ( vlc_object_t * );
+void Close_QTL ( vlc_object_t * );
+
+int Import_GVP ( vlc_object_t * );
+void Close_GVP ( vlc_object_t * );
+
+int Import_IFO ( vlc_object_t * );
+void Close_IFO ( vlc_object_t * );
+
+int Import_VideoPortal ( vlc_object_t * );
+void Close_VideoPortal ( vlc_object_t * );
+
+int Import_iTML ( vlc_object_t * );
+void Close_iTML ( vlc_object_t * );
+
+#define INIT_PLAYLIST_STUFF \
+ playlist_t *p_playlist = pl_Yield( p_demux ); \
+ input_thread_t *p_input_thread = (input_thread_t *)vlc_object_find( p_demux, VLC_OBJECT_INPUT, FIND_PARENT ); \
+ input_item_t *p_current_input = input_GetItem( p_input_thread );
+
+#define HANDLE_PLAY_AND_RELEASE \
+ vlc_object_release( p_input_thread ); \
+ vlc_object_release( p_playlist );
+