]> git.sesse.net Git - vlc/blob - modules/demux/playlist/xspf.h
Qt4: Tell the window manager to keep the fullscreen controller window on top.
[vlc] / modules / demux / playlist / xspf.h
1 /*****************************************************************************
2  * Copyright (C) 2006 Daniel Stränger <vlc at schmaller dot de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
17  *******************************************************************************/
18 /**
19  * \file modules/demux/playlist/xspf.h
20  * \brief XSPF playlist import: prototypes, datatypes, defines
21  */
22
23 /* defines */
24 #define FREE_VALUE() free(psz_value);psz_value=NULL;
25 #define FREE_ATT()   FREE_VALUE()
26
27 enum {
28     UNKNOWN_CONTENT,
29     SIMPLE_CONTENT,
30     COMPLEX_CONTENT
31 };
32
33 #define SIMPLE_INTERFACE  (input_item_t    *p_input,\
34                            const char      *psz_name,\
35                            char            *psz_value)
36 #define COMPLEX_INTERFACE (demux_t            *p_demux,\
37                            input_item_node_t  *p_input_node,\
38                            xml_reader_t       *p_xml_reader,\
39                            const char         *psz_element)
40
41 /* prototypes */
42 static bool parse_playlist_node COMPLEX_INTERFACE;
43 static bool parse_tracklist_node COMPLEX_INTERFACE;
44 static bool parse_track_node COMPLEX_INTERFACE;
45 static bool parse_extension_node COMPLEX_INTERFACE;
46 static bool parse_extitem_node COMPLEX_INTERFACE;
47 static bool set_item_info SIMPLE_INTERFACE;
48 static bool set_option SIMPLE_INTERFACE;
49 static bool skip_element COMPLEX_INTERFACE;
50
51 /* datatypes */
52 typedef struct
53 {
54     const char *name;
55     int type;
56     union
57     {
58         bool (*smpl) SIMPLE_INTERFACE;
59         bool (*cmplx) COMPLEX_INTERFACE;
60     } pf_handler;
61 } xml_elem_hnd_t;