summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-24 19:45:35 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-24 19:45:35 +0000
commit3cf04197c13278018ed83f411ab349b38627bfcf (patch)
tree98a0949aa642cf5f350c9c4a1883ff15f2d35e60 /navit/xmlconfig.c
parent4261980607f8440a47e4a15969473d52d79e0592 (diff)
downloadnavit-3cf04197c13278018ed83f411ab349b38627bfcf.tar.gz
Add:Core:New xml tag for adding scripts to objects
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5503 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.c')
-rw-r--r--navit/xmlconfig.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/navit/xmlconfig.c b/navit/xmlconfig.c
index 7896c03f9..337687895 100644
--- a/navit/xmlconfig.c
+++ b/navit/xmlconfig.c
@@ -301,6 +301,8 @@ object_func_lookup(enum attr_type type)
return &profile_option_func;
case attr_roadprofile:
return &roadprofile_func;
+ case attr_script:
+ return &script_func;
case attr_osd:
return &osd_func;
case attr_trackingo:
@@ -358,7 +360,7 @@ static char *element_fixmes[]={
};
static void initStatic(void) {
- elements=g_new0(struct element_func,43); //42 is a number of elements + ending NULL element
+ elements=g_new0(struct element_func,44); //43 is a number of elements + ending NULL element
elements[0].name="config";
elements[0].parent=NULL;
@@ -568,6 +570,11 @@ static void initStatic(void) {
elements[41].parent="profile_option";
elements[41].func=NULL;
elements[41].type=attr_roadprofile;
+
+ elements[42].name="script";
+ elements[42].parent="navit";
+ elements[42].func=NULL;
+ elements[42].type=attr_script;
}
/**