summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-02-06 13:50:30 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-02-06 13:50:30 +0000
commit1077f568756b00c10af6a0dfabebe49a2c7cf4a0 (patch)
tree3bbccc25a229f475de4b645d57861d7caffedd8a /navit/xmlconfig.h
parentfd5dc6e76fcac67ae547ca2321c4c77f26b9603a (diff)
downloadnavit-1077f568756b00c10af6a0dfabebe49a2c7cf4a0.tar.gz
Add:Core:Implement reference counting for navit object
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4926 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.h')
-rw-r--r--navit/xmlconfig.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/navit/xmlconfig.h b/navit/xmlconfig.h
index 9d1c4c6ca..5465d913e 100644
--- a/navit/xmlconfig.h
+++ b/navit/xmlconfig.h
@@ -37,6 +37,7 @@ 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);
@@ -53,6 +54,12 @@ struct object_func {
void *(*unref)(void *);
};
+struct navit_object {
+ struct object_func *func;
+ int refcount;
+};
+
+
typedef GError xmlerror;
extern const int xml_attr_distance;