* Makefile.in (gdb_expat_h): New.
[platform/upstream/binutils.git] / gdb / xml-support.h
1 /* Helper routines for parsing XML using Expat.
2
3    Copyright (C) 2006
4    Free Software Foundation, Inc.
5
6    This file is part of GDB.
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor,
21    Boston, MA 02110-1301, USA.  */
22
23
24 #ifndef XML_SUPPORT_H
25 #define XML_SUPPORT_H
26
27 #include "gdb_expat.h"
28
29 /* Helper functions for parsing XML documents.  See xml-support.c
30    for more information about these functions.  */
31
32 const XML_Char *xml_get_required_attribute (const XML_Char **attrs,
33                                             const XML_Char *attr);
34
35 ULONGEST xml_get_integer_attribute (const XML_Char **attrs,
36                                     const XML_Char *attr);
37
38 int xml_get_enum_value (const XML_Char **attrs,
39                         const XML_Char *attr,
40                         const XML_Char **xml_names,
41                         int *values);
42
43 void make_cleanup_free_xml_parser (XML_Parser parser);
44
45 #endif