stream: replace input_thread_t by input_item_t
[vlc.git] / modules / demux / playlist / playlist.h
blob883ca677df71dcecf51c78e8780004bd33c22ed1
1 /*****************************************************************************
2 * playlist.h: Playlist import module common functions
3 *****************************************************************************
4 * Copyright (C) 2004 VLC authors and VideoLAN
5 * $Id$
7 * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
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 Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #include <vlc_input.h>
26 char *ProcessMRL( const char *, const char * );
28 int Import_M3U ( vlc_object_t * );
30 int Import_RAM ( vlc_object_t * );
32 int Import_PLS ( vlc_object_t * );
34 int Import_B4S ( vlc_object_t * );
36 int Import_DVB ( vlc_object_t * );
38 int Import_podcast ( vlc_object_t * );
40 int Import_xspf ( vlc_object_t * );
41 void Close_xspf ( vlc_object_t * );
43 int Import_Shoutcast ( vlc_object_t * );
45 int Import_ASX ( vlc_object_t * );
47 int Import_SGIMB ( vlc_object_t * );
48 void Close_SGIMB ( vlc_object_t * );
50 int Import_QTL ( vlc_object_t * );
52 int Import_IFO ( vlc_object_t * );
53 void Close_IFO ( vlc_object_t * );
55 int Import_BDMV ( vlc_object_t * );
56 void Close_BDMV ( vlc_object_t * );
58 int Import_iTML ( vlc_object_t * );
60 int Import_WPL ( vlc_object_t * );
61 void Close_WPL ( vlc_object_t * );
63 #define GetCurrentItem(obj) input_GetItem((obj)->p_input_item)
64 #define GetSource(obj) ((obj)->s)
66 #define CHECK_FILE(obj) \
67 do { \
68 if( GetSource(obj)->pf_readdir != NULL ) \
69 return VLC_EGENERIC; \
70 } while(0)