xmlconfig.h (navit-0.5.5) | : | xmlconfig.h (navit-0.5.6) | ||
---|---|---|---|---|
skipping to change at line 118 | skipping to change at line 118 | |||
* default behavior, can be NULL for some object types */ | * default behavior, can be NULL for some object types */ | |||
void *(*unref)(void *); /**< Function to decrease the reference count for an | void *(*unref)(void *); /**< Function to decrease the reference count for an | |||
* object instance, set to `navit_object_unref` for | * object instance, set to `navit_object_unref` for | |||
* default behavior, can be NULL for some object types */ | * default behavior, can be NULL for some object types */ | |||
}; | }; | |||
extern struct object_func map_func, mapset_func, navit_func, osd_func, tracking_ func, vehicle_func, maps_func, | extern struct object_func map_func, mapset_func, navit_func, osd_func, tracking_ func, vehicle_func, maps_func, | |||
layout_func, roadprofile_func, vehicleprofile_func, layer_func, confi g_func, profile_option_func, script_func, log_func, | layout_func, roadprofile_func, vehicleprofile_func, layer_func, confi g_func, profile_option_func, script_func, log_func, | |||
speech_func, navigation_func, route_func, traffic_func; | speech_func, navigation_func, route_func, traffic_func; | |||
#define HAS_OBJECT_FUNC(x) ((x) == attr_map || (x) == attr_mapset || (x) == attr _navit || (x) == attr_osd || (x) == attr_trackingo || (x) == attr_vehicle || (x) == attr_maps || (x) == attr_layout || (x) == attr_roadprofile || (x) == attr_ve hicleprofile || (x) == attr_layer || (x) == attr_config || (x) == attr_profile_o ption || (x) == attr_script || (x) == attr_log || (x) == attr_speech || (x) == a ttr_navigation || (x) == attr_route) | #define HAS_OBJECT_FUNC(x) ((x) == attr_map || (x) == attr_mapset || (x) == attr _navit || (x) == attr_osd || (x) == attr_trackingo || (x) == attr_vehicle || (x) == attr_maps || (x) == attr_layout || (x) == attr_roadprofile || (x) == attr_ve hicleprofile || (x) == attr_layer || (x) == attr_config || (x) == attr_profile_o ption || (x) == attr_script || (x) == attr_log || (x) == attr_speech || (x) == a ttr_navigation || (x) == attr_route || (x) == attr_traffic) | |||
#define NAVIT_OBJECT struct object_func *func; int refcount; struct attr **attrs ; | #define NAVIT_OBJECT struct object_func *func; int refcount; struct attr **attrs ; | |||
struct navit_object { | struct navit_object { | |||
NAVIT_OBJECT | NAVIT_OBJECT | |||
}; | }; | |||
int navit_object_set_methods(void *in, int in_size, void *out, int out_size); | int navit_object_set_methods(void *in, int in_size, void *out, int out_size); | |||
struct navit_object *navit_object_new(struct attr **attrs, struct object_func *f unc, int size); | struct navit_object *navit_object_new(struct attr **attrs, struct object_func *f unc, int size); | |||
struct navit_object *navit_object_ref(struct navit_object *obj); | struct navit_object *navit_object_ref(struct navit_object *obj); | |||
void* navit_object_unref(struct navit_object *obj); | void* navit_object_unref(struct navit_object *obj); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |