]> git.sesse.net Git - vlc/blob - modules/codec/cmml/xtag.h
Remove qnx modules.
[vlc] / modules / codec / cmml / xtag.h
1 /*****************************************************************************
2  * xlist.h : a trivial parser for XML-like tags (header file)
3  *****************************************************************************
4  * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research
5  *                         Organisation (CSIRO) Australia
6  * Copyright (C) 2000-2004 the VideoLAN team
7  *
8  * $Id$
9  *
10  * Authors: Conrad Parker <Conrad.Parker@csiro.au>
11  *          Andre Pang <Andre.Pang@csiro.au>
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
26  *****************************************************************************/
27
28 #ifndef __XTAG_H__
29 #define __XTAG_H__
30
31 typedef void XTag;
32
33 XTag * xtag_new_parse (const char * s, int n);
34
35 char * xtag_get_name (XTag * xtag);
36
37 char * xtag_get_pcdata (XTag * xtag);
38
39 char * xtag_get_attribute (XTag * xtag, const char * attribute);
40
41 XTag * xtag_first_child (XTag * xtag, const char * name);
42
43 XTag * xtag_next_child (XTag * xtag, char * name);
44
45 XTag * xtag_free (XTag * xtag);
46
47 int xtag_snprint (char * buf, int n, XTag * xtag);
48
49 #endif /* __XTAG_H__ */