Add:Core:Possibility to get all roadprofiles of a vehicleprofile
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 5 Jun 2012 14:00:33 +0000 (14:00 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 5 Jun 2012 14:00:33 +0000 (14:00 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5130 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/vehicleprofile.c
navit/navit/vehicleprofile.h

index 63eb40d..7bb3fa4 100644 (file)
@@ -102,6 +102,19 @@ vehicleprofile_new(struct attr *parent, struct attr **attrs)
        return this_;
 }
 
+struct attr_iter *
+vehicleprofile_attr_iter_new(void)
+{
+       return g_new0(void *,1);
+}
+
+void
+vehicleprofile_attr_iter_destroy(struct attr_iter *iter)
+{
+       g_free(iter);
+}
+
+
 int
 vehicleprofile_get_attr(struct vehicleprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
 {
index 41bd268..2d407b3 100644 (file)
@@ -42,6 +42,8 @@ struct vehicleprofile {
 };
 
 struct vehicleprofile * vehicleprofile_new(struct attr *parent, struct attr **attrs);
+struct attr_iter *vehicleprofile_attr_iter_new(void);
+void vehicleprofile_attr_iter_destroy(struct attr_iter *iter);
 int vehicleprofile_get_attr(struct vehicleprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
 int vehicleprofile_set_attr(struct vehicleprofile *this_, struct attr *attr);
 int vehicleprofile_add_attr(struct vehicleprofile *this_, struct attr *attr);