diff options
Diffstat (limited to 'navit/xmlconfig.h')
-rw-r--r-- | navit/xmlconfig.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/navit/xmlconfig.h b/navit/xmlconfig.h index e916eb481..06bc4bf0c 100644 --- a/navit/xmlconfig.h +++ b/navit/xmlconfig.h @@ -54,15 +54,17 @@ struct object_func { void *(*unref)(void *); }; -extern struct object_func map_func, mapset_func, navit_func, tracking_func, vehicle_func, maps_func, layout_func, vehicleprofile_func; +extern struct object_func map_func, mapset_func, navit_func, tracking_func, vehicle_func, maps_func, layout_func, vehicleprofile_func, layer_func; -#define HAS_OBJECT_FUNC(x) ((x) == attr_map || (x) == attr_mapset || (x) == attr_navit || (x) == attr_trackingo || (x) == attr_vehicle) +#define HAS_OBJECT_FUNC(x) ((x) == attr_map || (x) == attr_mapset || (x) == attr_navit || (x) == attr_trackingo || (x) == attr_vehicle || (x) == attr_maps || (x) == attr_layout || (x) == attr_vehicleprofile || (x) == attr_layer) +#define NAVIT_OBJECT struct object_func *func; int refcount; struct attr **attrs; struct navit_object { - struct object_func *func; - int refcount; + NAVIT_OBJECT }; +struct navit_object *navit_object_ref(struct navit_object *obj); +void navit_object_unref(struct navit_object *obj); typedef GError xmlerror; |