summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-09-07 12:13:01 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-09-07 12:13:01 +0000
commit788c3064d892c415fcc29a91c9320c244046064b (patch)
tree72ec422f41feb306c17efd9ce5c6f8230b24d3d8 /navit/vehicle.c
parent17b3995f8fe2d9bc09d351f34a114dea7b2431f9 (diff)
downloadnavit-svn-788c3064d892c415fcc29a91c9320c244046064b.tar.gz
Fix:Core:Made vehicle callback more specific
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2561 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r--navit/vehicle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index 45282f13..a57c924a 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -120,7 +120,7 @@ vehicle_add_log(struct vehicle *this_, struct log *log)
return 1;
if (!strcmp(type_attr.u.str, "nmea")) {
- cb=callback_new_2(callback_cast(vehicle_log_nmea), this_, log);
+ cb=callback_new_attr_2(callback_cast(vehicle_log_nmea), attr_position_coord_geo, this_, log);
} else if (!strcmp(type_attr.u.str, "gpx")) {
char *header = "<?xml version='1.0' encoding='UTF-8'?>\n"
"<gpx version='1.1' creator='Navit http://navit.sourceforge.net'\n"
@@ -133,11 +133,11 @@ vehicle_add_log(struct vehicle *this_, struct log *log)
char *trailer = "</trkseg>\n</trk>\n</gpx>\n";
log_set_header(log, header, strlen(header));
log_set_trailer(log, trailer, strlen(trailer));
- cb=callback_new_2(callback_cast(vehicle_log_gpx), this_, log);
+ cb=callback_new_attr_2(callback_cast(vehicle_log_gpx), attr_position_coord_geo, this_, log);
} else if (!strcmp(type_attr.u.str, "textfile")) {
char *header = "type=track\n";
log_set_header(log, header, strlen(header));
- cb=callback_new_2(callback_cast(vehicle_log_textfile), this_, log);
+ cb=callback_new_attr_2(callback_cast(vehicle_log_textfile), attr_position_coord_geo, this_, log);
} else
return 1;
callback_list_add(this_->cbl, cb);