From bdd4b4de2693d42b61b1d1718ba2f307cdae4db5 Mon Sep 17 00:00:00 2001 From: martin-s Date: Mon, 16 Jul 2012 12:17:56 +0000 Subject: [PATCH] Add:Core:Changed vehicleprofile to new scheme git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5192 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/vehicleprofile.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/navit/navit/vehicleprofile.c b/navit/navit/vehicleprofile.c index 7bb3fa4..cc3e6c4 100644 --- a/navit/navit/vehicleprofile.c +++ b/navit/navit/vehicleprofile.c @@ -24,6 +24,7 @@ #include "item.h" #include "roadprofile.h" #include "vehicleprofile.h" +#include "xmlconfig.h" static void vehicleprofile_set_attr_do(struct vehicleprofile *this_, struct attr *attr) @@ -168,3 +169,19 @@ vehicleprofile_get_name(struct vehicleprofile *this_) { return this_->name; } + +struct object_func vehicleprofile_func = { + attr_vehicleprofile, + (object_func_new)vehicleprofile_new, + (object_func_get_attr)vehicleprofile_get_attr, + (object_func_iter_new)vehicleprofile_attr_iter_new, + (object_func_iter_destroy)vehicleprofile_attr_iter_destroy, + (object_func_set_attr)vehicleprofile_set_attr, + (object_func_add_attr)vehicleprofile_add_attr, + (object_func_remove_attr)vehicleprofile_remove_attr, + (object_func_init)NULL, + (object_func_destroy)NULL, + (object_func_dup)NULL, + (object_func_ref)NULL, + (object_func_unref)NULL, +}; -- 2.7.4