/[zanavi_public1]/navit/navit/xmlconfig.h
ZANavi

Contents of /navit/navit/xmlconfig.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (12 years, 5 months ago) by zoff99
File MIME type: text/plain
File size: 2020 byte(s)
import files
1 /**
2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2008 Navit Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef NAVIT_XMLCONFIG_H
21 #define NAVIT_XMLCONFIG_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 struct object_func {
28 enum attr_type type;
29 void *(*create)(struct attr *parent, struct attr **attrs);
30 int (*get_attr)(void *, enum attr_type type, struct attr *attr, struct attr_iter *iter);
31 struct attr_iter *(*iter_new)(void *);
32 void (*iter_destroy)(struct attr_iter *);
33 int (*set_attr)(void *, struct attr *attr);
34 int (*add_attr)(void *, struct attr *attr);
35 int (*remove_attr)(void *, struct attr *attr);
36 int (*init)(void *);
37 void (*destroy)(void *);
38 };
39
40 typedef GError xmlerror;
41
42 extern const int xml_attr_distance;
43
44 /* prototypes */
45 enum attr_type;
46 struct object_func *object_func_lookup(enum attr_type type);
47 void xml_parse_text(const char *document, void *data, void (*start)(void *, const char *, const char **, const char **, void *, void *), void (*end)(void *, const char *, void *, void *), void (*text)(void *, const char *, int, void *, void *));
48 gboolean config_load(const char *filename, xmlerror **error);
49 //static void xinclude(GMarkupParseContext *context, const gchar **attribute_names, const gchar **attribute_values, struct xmldocument *doc_old, xmlerror **error);
50
51 /* end of prototypes */
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif

   
Visit the ZANavi Wiki