X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_xml.h;h=fde4b7fad6f327674fc98b87cd5776a57403fab3;hb=47e69cf6132dfd1daa1ef8fb17fa6b2af5c16e18;hp=0788f33f470d6b482ec90d3a0fac9c81cdc7c8c8;hpb=6d51bbdccb9b0ff857ddb9684479cd9fee393fb7;p=vlc diff --git a/include/vlc_xml.h b/include/vlc_xml.h index 0788f33f47..fde4b7fad6 100644 --- a/include/vlc_xml.h +++ b/include/vlc_xml.h @@ -1,7 +1,7 @@ /***************************************************************************** - * xml.h + * xml.h: XML abstraction layer ***************************************************************************** - * Copyright (C) 2004 VideoLAN + * Copyright (C) 2004 the VideoLAN team * $Id$ * * Author: Gildas Bazin @@ -18,12 +18,16 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef _VLC_XML_H #define _VLC_XML_H +# ifdef __cplusplus +extern "C" { +# endif + struct xml_t { VLC_COMMON_MEMBERS @@ -32,7 +36,7 @@ struct xml_t module_t *p_module; xml_sys_t *p_sys; - xml_reader_t * (*pf_reader_create) ( xml_t *, const char * ); + xml_reader_t * (*pf_reader_create) ( xml_t *, stream_t * ); void (*pf_reader_delete) ( xml_reader_t * ); void (*pf_catalog_load) ( xml_t *, const char * ); @@ -59,6 +63,8 @@ struct xml_reader_t char * (*pf_name) ( xml_reader_t * ); char * (*pf_value) ( xml_reader_t * ); int (*pf_next_attr) ( xml_reader_t * ); + + int (*pf_use_dtd) ( xml_reader_t *, bool ); }; #define xml_ReaderRead( a ) a->pf_read( a ) @@ -66,10 +72,15 @@ struct xml_reader_t #define xml_ReaderName( a ) a->pf_name( a ) #define xml_ReaderValue( a ) a->pf_value( a ) #define xml_ReaderNextAttr( a ) a->pf_next_attr( a ) +#define xml_ReaderUseDTD( a, b ) a->pf_use_dtd( a, b ) #define XML_READER_NONE 0 #define XML_READER_STARTELEM 1 #define XML_READER_ENDELEM 2 #define XML_READER_TEXT 3 +# ifdef __cplusplus +} +# endif + #endif