|
Revision 359761887328403392fa85d36ef418aafc3eb00a, 2.2 kB
(checked in by Pierre d'Herbemont <pdherbemont@videolan.org>, 6 months ago)
|
xspf: Remove references to the playlist.
|
- Property mode set to
100644
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
#define FREE_NAME() free(psz_name);psz_name=NULL; |
|---|
| 25 |
#define FREE_VALUE() free(psz_value);psz_value=NULL; |
|---|
| 26 |
#define FREE_ATT() FREE_NAME();FREE_VALUE() |
|---|
| 27 |
|
|---|
| 28 |
enum { |
|---|
| 29 |
UNKNOWN_CONTENT, |
|---|
| 30 |
SIMPLE_CONTENT, |
|---|
| 31 |
COMPLEX_CONTENT |
|---|
| 32 |
}; |
|---|
| 33 |
|
|---|
| 34 |
#define SIMPLE_INTERFACE (input_item_t *p_input,\ |
|---|
| 35 |
const char *psz_name,\ |
|---|
| 36 |
char *psz_value) |
|---|
| 37 |
#define COMPLEX_INTERFACE (demux_t *p_demux,\ |
|---|
| 38 |
input_item_t *p_input_item,\ |
|---|
| 39 |
xml_reader_t *p_xml_reader,\ |
|---|
| 40 |
const char *psz_element) |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
static bool parse_playlist_node COMPLEX_INTERFACE; |
|---|
| 44 |
static bool parse_tracklist_node COMPLEX_INTERFACE; |
|---|
| 45 |
static bool parse_track_node COMPLEX_INTERFACE; |
|---|
| 46 |
static bool parse_extension_node COMPLEX_INTERFACE; |
|---|
| 47 |
static bool parse_extitem_node COMPLEX_INTERFACE; |
|---|
| 48 |
static bool set_item_info SIMPLE_INTERFACE; |
|---|
| 49 |
static bool set_option SIMPLE_INTERFACE; |
|---|
| 50 |
static bool skip_element COMPLEX_INTERFACE; |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
typedef struct |
|---|
| 54 |
{ |
|---|
| 55 |
const char *name; |
|---|
| 56 |
int type; |
|---|
| 57 |
union |
|---|
| 58 |
{ |
|---|
| 59 |
bool (*smpl) SIMPLE_INTERFACE; |
|---|
| 60 |
bool (*cmplx) COMPLEX_INTERFACE; |
|---|
| 61 |
} pf_handler; |
|---|
| 62 |
} xml_elem_hnd_t; |
|---|