summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-16 12:18:19 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-16 12:18:19 +0000
commit5e21e312f446a40f68d0ed61725c3cb5156aa966 (patch)
treed8f6cf042a5ff7f8b13d0a3ca441813467dec666 /navit/xmlconfig.c
parente8c9b0d562f2a7403076d2b5082e37867739872e (diff)
downloadnavit-5e21e312f446a40f68d0ed61725c3cb5156aa966.tar.gz
Add:Core:Changed vehicleprofile to new scheme
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5193 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.c')
-rw-r--r--navit/xmlconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/xmlconfig.c b/navit/xmlconfig.c
index 9dd102cb8..616c8d3ab 100644
--- a/navit/xmlconfig.c
+++ b/navit/xmlconfig.c
@@ -266,7 +266,6 @@ static struct object_func object_funcs[] = {
{ attr_route, NEW(route_new), GET(route_get_attr), NULL, NULL, SET(route_set_attr), ADD(route_add_attr), REMOVE(route_remove_attr)},
{ attr_speech, NEW(speech_new), GET(speech_get_attr), NULL, NULL, SET(speech_set_attr)},
{ attr_text, NEW(text_new)},
- { attr_vehicleprofile, NEW(vehicleprofile_new), GET(vehicleprofile_get_attr), NULL, NULL, SET(vehicleprofile_set_attr), ADD(vehicleprofile_add_attr) },
};
struct object_func *
@@ -288,6 +287,8 @@ object_func_lookup(enum attr_type type)
return &tracking_func;
case attr_vehicle:
return &vehicle_func;
+ case attr_vehicleprofile:
+ return &vehicleprofile_func;
default:
for (i = 0 ; i < sizeof(object_funcs)/sizeof(struct object_func); i++) {
if (object_funcs[i].type == type)