]> git.sesse.net Git - vlc/blob - modules/demux/playlist/playlist.h
demux/playlist: Don't use playlist_t.
[vlc] / modules / demux / playlist / playlist.h
1 /*****************************************************************************
2  * playlist.h:  Playlist import module common functions
3  *****************************************************************************
4  * Copyright (C) 2004 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #include <vlc_input.h>
25
26 char *ProcessMRL( char *, char * );
27 char *FindPrefix( demux_t * );
28
29 bool FindItem( demux_t *, playlist_t *, playlist_item_t **);
30
31 void AddToPlaylist( demux_t *, playlist_t*,input_item_t*,playlist_item_t*,int );
32
33 int Import_Old ( vlc_object_t * );
34
35 int Import_Native ( vlc_object_t * );
36 void Close_Native ( vlc_object_t * );
37
38 int Import_M3U ( vlc_object_t * );
39 void Close_M3U ( vlc_object_t * );
40
41 int Import_PLS ( vlc_object_t * );
42 void Close_PLS ( vlc_object_t * );
43
44 int Import_B4S ( vlc_object_t * );
45 void Close_B4S ( vlc_object_t * );
46
47 int Import_DVB ( vlc_object_t * );
48 void Close_DVB ( vlc_object_t * );
49
50 int Import_podcast ( vlc_object_t * );
51 void Close_podcast ( vlc_object_t * );
52
53 int Import_xspf ( vlc_object_t * );
54 void Close_xspf ( vlc_object_t * );
55
56 int Import_Shoutcast ( vlc_object_t * );
57 void Close_Shoutcast ( vlc_object_t * );
58
59 int Import_ASX ( vlc_object_t * );
60 void Close_ASX ( vlc_object_t * );
61
62 int Import_SGIMB ( vlc_object_t * );
63 void Close_SGIMB ( vlc_object_t * );
64
65 int Import_QTL ( vlc_object_t * );
66 void Close_QTL ( vlc_object_t * );
67
68 int Import_GVP ( vlc_object_t * );
69 void Close_GVP ( vlc_object_t * );
70
71 int Import_IFO ( vlc_object_t * );
72 void Close_IFO ( vlc_object_t * );
73
74 int Import_VideoPortal ( vlc_object_t * );
75 void Close_VideoPortal ( vlc_object_t * );
76
77 int Import_iTML ( vlc_object_t * );
78 void Close_iTML ( vlc_object_t * );
79
80 #define INIT_PLAYLIST_STUFF \
81     input_thread_t *p_input_thread = (input_thread_t *)vlc_object_find( p_demux, VLC_OBJECT_INPUT, FIND_PARENT ); \
82     input_item_t *p_current_input = input_GetItem( p_input_thread );
83
84 #define HANDLE_PLAY_AND_RELEASE \
85     vlc_object_release( p_input_thread );