summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-02-01 13:32:50 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-02-01 13:32:50 +0000
commit92bcfaabdeee3596aeb6fe43e6c7022367da6a53 (patch)
tree69c9033c4072681fe6f246dab34a496bbf5362cf /navit/xmlconfig.h
parent396ea5f57eec21238f0660e24a9f22263d6a893b (diff)
downloadnavit-92bcfaabdeee3596aeb6fe43e6c7022367da6a53.tar.gz
Add:Core:Moved object functions of vehicle to vehicle.c, added reference counting
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4922 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.h')
-rw-r--r--navit/xmlconfig.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/navit/xmlconfig.h b/navit/xmlconfig.h
index 3da9ab4a7..9d1c4c6ca 100644
--- a/navit/xmlconfig.h
+++ b/navit/xmlconfig.h
@@ -24,6 +24,19 @@
extern "C" {
#endif
+typedef void *(*object_func_new)(struct attr *parent, struct attr **attrs);
+typedef int (*object_func_get_attr)(void *, enum attr_type type, struct attr *attr, struct attr_iter *iter);
+typedef struct attr_iter *(*object_func_iter_new)(void *);
+typedef void (*object_func_iter_destroy)(struct attr_iter *);
+typedef int (*object_func_set_attr)(void *, struct attr *attr);
+typedef int (*object_func_add_attr)(void *, struct attr *attr);
+typedef int (*object_func_remove_attr)(void *, struct attr *attr);
+typedef int (*object_func_init)(void *);
+typedef void (*object_func_destroy)(void *);
+typedef void *(*object_func_dup)(void *);
+typedef void *(*object_func_ref)(void *);
+typedef void *(*object_func_unref)(void *);
+
struct object_func {
enum attr_type type;
void *(*create)(struct attr *parent, struct attr **attrs);
@@ -35,6 +48,9 @@ struct object_func {
int (*remove_attr)(void *, struct attr *attr);
int (*init)(void *);
void (*destroy)(void *);
+ void *(*dup)(void *);
+ void *(*ref)(void *);
+ void *(*unref)(void *);
};
typedef GError xmlerror;