summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-25 12:37:42 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-25 12:37:42 +0000
commit25b5805e27b0fe9d307b23fd4be25e9a9ba4cf41 (patch)
treea5b0be276fcc17afa52f43f31c495d23c6e09d75 /navit/xmlconfig.h
parentaac0f0c69ed739ae2808d7d564d8c76da041ab53 (diff)
downloadnavit-25b5805e27b0fe9d307b23fd4be25e9a9ba4cf41.tar.gz
Fix:Core:Make c++ happy
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3294 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.h')
-rw-r--r--navit/xmlconfig.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/navit/xmlconfig.h b/navit/xmlconfig.h
index 8ae89e9f4..6be3893bb 100644
--- a/navit/xmlconfig.h
+++ b/navit/xmlconfig.h
@@ -20,9 +20,13 @@
#ifndef NAVIT_XMLCONFIG_H
#define NAVIT_XMLCONFIG_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct object_func {
enum attr_type type;
- void *(*new)(struct attr *parent, struct attr **attrs);
+ void *(*create)(struct attr *parent, struct attr **attrs);
int (*get_attr)(void *, enum attr_type type, struct attr *attr, struct attr_iter *iter);
struct attr_iter *(*iter_new)(void *);
void (*iter_destroy)(struct attr_iter *);
@@ -43,4 +47,9 @@ struct object_func *object_func_lookup(enum attr_type type);
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 *));
gboolean config_load(const char *filename, xmlerror **error);
/* end of prototypes */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif