summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-03-05 22:01:06 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-03-05 22:01:06 +0000
commitf5d84ece33813148e2388ea15d766a15af48664a (patch)
tree64517ee3cf80b2bd25d16d85595665a756ee4309 /navit/xmlconfig.c
parent516ab7463afb934a0ec59a1a44c24812076ef643 (diff)
downloadnavit-f5d84ece33813148e2388ea15d766a15af48664a.tar.gz
Add:Core:Beginning of work to create vehicleprofile options instead of multiple vehicle profiles
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5400 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.c')
-rw-r--r--navit/xmlconfig.c14
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;
}
/**