Fix:Core:vehicle log files will now have data in them. ticket #255
authorsteven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 29 Oct 2008 01:50:41 +0000 (01:50 +0000)
committersteven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 29 Oct 2008 01:50:41 +0000 (01:50 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1604 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/log.c
navit/navit/log.h
navit/navit/xmlconfig.c

index 028db13..fdba147 100644 (file)
@@ -205,7 +205,7 @@ log_get_attr(struct log *this_, enum attr_type type, struct attr *attr, struct a
 
 
 struct log *
-log_new(struct attr **attrs)
+log_new(struct attr * parent,struct attr **attrs)
 {
        struct log *ret=g_new0(struct log, 1);
        struct attr *data,*overwrite,*lazy,*mkdir,*flush_size,*flush_time;
index 1f9e76c..f17e90c 100644 (file)
@@ -25,7 +25,7 @@ struct attr;
 struct attr_iter;
 struct log;
 int log_get_attr(struct log *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
-struct log *log_new(struct attr **attrs);
+struct log *log_new(struct attr * parent,struct attr **attrs);
 void log_set_header(struct log *this_, char *data, int len);
 void log_set_trailer(struct log *this_, char *data, int len);
 void log_write(struct log *this_, char *data, int len);
index 53f5cde..bedfc42 100644 (file)
@@ -305,7 +305,7 @@ struct element_func {
        { "polygon", "itemgra", NULL, NEW(polygon_new)},
        { "polyline", "itemgra", NULL, NEW(polyline_new)},
        { "arrows", "itemgra", NULL, NEW(arrows_new)},
-       { "vehicle", "navit", NULL, NEW(vehicle_new)},
+       { "vehicle", "navit", NULL, NEW(vehicle_new), ADD(vehicle_add_attr) },
        { "log", "vehicle", NULL, NEW(log_new)},
        { "log", "navit", NULL, NEW(log_new)},
        { "window_items", "navit", xmlconfig_window_items},