00001 /***************************************************************************** 00002 * xlist.h : a trivial parser for XML-like tags (header file) 00003 ***************************************************************************** 00004 * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research 00005 * Organisation (CSIRO) Australia 00006 * Copyright (C) 2000-2004 the VideoLAN team 00007 * 00008 * $Id: xtag.h 11664 2005-07-09 06:17:09Z courmisch $ 00009 * 00010 * Authors: Conrad Parker <[email protected]> 00011 * Andre Pang <[email protected]> 00012 * 00013 * This program is free software; you can redistribute it and/or modify 00014 * it under the terms of the GNU General Public License as published by 00015 * the Free Software Foundation; either version 2 of the License, or 00016 * (at your option) any later version. 00017 * 00018 * This program is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. 00026 *****************************************************************************/ 00027 00028 #ifndef __XTAG_H__ 00029 #define __XTAG_H__ 00030 00031 typedef void XTag; 00032 00033 XTag * xtag_new_parse (const char * s, int n); 00034 00035 char * xtag_get_name (XTag * xtag); 00036 00037 char * xtag_get_pcdata (XTag * xtag); 00038 00039 char * xtag_get_attribute (XTag * xtag, char * attribute); 00040 00041 XTag * xtag_first_child (XTag * xtag, char * name); 00042 00043 XTag * xtag_next_child (XTag * xtag, char * name); 00044 00045 XTag * xtag_free (XTag * xtag); 00046 00047 int xtag_snprint (char * buf, int n, XTag * xtag); 00048 00049 #endif /* __XTAG_H__ */