summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-06 09:56:34 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-06 09:56:34 +0000
commit52b80c8828e1c1c9c48a145064a6228d2a63e41e (patch)
tree5fdc06bc73f76aba6e68b8bcba25661163e37bf3 /navit/xmlconfig.h
parent818b39c6a62e2fb1169c1acafccb40aaf6b71d19 (diff)
downloadnavit-52b80c8828e1c1c9c48a145064a6228d2a63e41e.tar.gz
Fix:Core:Cleaned up a bit
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2082 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.h')
-rw-r--r--navit/xmlconfig.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/navit/xmlconfig.h b/navit/xmlconfig.h
index 15918f184..0e5e49311 100644
--- a/navit/xmlconfig.h
+++ b/navit/xmlconfig.h
@@ -20,9 +20,23 @@
#ifndef NAVIT_XMLCONFIG_H
#define NAVIT_XMLCONFIG_H
+struct object_func {
+ enum attr_type type;
+ void *(*new)(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 *);
+ int (*set_attr)(void *, struct attr *attr);
+ int (*add_attr)(void *, struct attr *attr);
+ int (*remove_attr)(void *, struct attr *attr);
+ int (*init)(void *);
+ void (*destroy)(void *);
+};
+
typedef GError xmlerror;
struct container;
gboolean config_load(const char *filename, xmlerror **error);
+struct object_func *object_func_lookup(enum attr_type type);
#endif