diff options
Diffstat (limited to 'navit/xmlconfig.c')
-rw-r--r-- | navit/xmlconfig.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/navit/xmlconfig.c b/navit/xmlconfig.c index e2b2fd2c7..27d91a992 100644 --- a/navit/xmlconfig.c +++ b/navit/xmlconfig.c @@ -286,6 +286,8 @@ object_func_lookup(enum attr_type type) return &mapset_func; case attr_navit: return &navit_func; + case attr_profile_option: + return &profile_option_func; case attr_osd: return &osd_func; case attr_trackingo: @@ -343,7 +345,7 @@ static char *element_fixmes[]={ }; static void initStatic(void) { - elements=g_new0(struct element_func,41); //40 is a number of elements + ending NULL element + elements=g_new0(struct element_func,43); //42 is a number of elements + ending NULL element elements[0].name="config"; elements[0].parent=NULL; @@ -543,6 +545,16 @@ static void initStatic(void) { elements[39].parent="navit"; elements[39].func=NULL; elements[39].type=attr_layer; + + elements[40].name="profile_option"; + elements[40].parent="vehicleprofile"; + elements[40].func=NULL; + elements[40].type=attr_profile_option; + + elements[41].name="roadprofile"; + elements[41].parent="profile_option"; + elements[41].func=NULL; + elements[41].type=attr_roadprofile; } /** |