summaryrefslogtreecommitdiff
path: root/navit/vehicleprofile.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-16 12:17:56 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-16 12:17:56 +0000
commite8c9b0d562f2a7403076d2b5082e37867739872e (patch)
treebecbe3463c2f1e0e0f0f8f7ae61f3dbcc97749d0 /navit/vehicleprofile.c
parenta897448f5d5ffdf8a21902d73233824678cdcecf (diff)
downloadnavit-e8c9b0d562f2a7403076d2b5082e37867739872e.tar.gz
Add:Core:Changed vehicleprofile to new scheme
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5192 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicleprofile.c')
-rw-r--r--navit/vehicleprofile.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/navit/vehicleprofile.c b/navit/vehicleprofile.c
index 7bb3fa464..cc3e6c453 100644
--- a/navit/vehicleprofile.c
+++ b/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,
+};