summaryrefslogtreecommitdiff
path: root/navit/xmlconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* fix:all:fix compiler warnings (#935)Stefan Wildemann2019-10-291-2/+3
| | | * fix:core:remove many compiler warnings from core
* Refactoring:Xmlconfig:Moving layout definition in their own .xml file (makes ↵lains2018-11-181-12/+38
| | | | | | | | | | main navit.xml file lighter) (#559) Layouts contain quite heavy xml code, and there are many layouts available for navit. They are all inserted inside the main navit.xml, which makes it hard to edit because of its size, even if changes or customizations by users are very rarely on the layout code. I have thus moved the layout code away from navit.xml, each layout having its own xml definition file, called navit_layout_*.xml These files are inserted inside the main navit.xml file by using the already existing xi:include mechanism, this also allow for backwards compatibility (old monolithic navit.xml files are still valid and can be used). The other advantage for this is that f the user wants to have his/her own customized navit.xml, he/she can still include the shipped layout files, making their xml lighter. This also allow to enable/disable specific layouts easily by including or not each layout file. It is also easier to perform side-by-side comparison between two layout files.
* Refactor:core:Make indentation compliant with style guidemvglasow2018-09-291-3/+3
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Fix:core:Always return a value in xml_parse_text()mvglasow2018-06-141-1/+1
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Merge branch 'trunk' into trafficmvglasow2018-06-111-82/+54
|\ | | | | | | | | | | | | | | | | # Conflicts: # navit/binding/dbus/binding_dbus.c # navit/gui/internal/gui_internal_html.c # navit/route.c # navit/util.c # navit/xmlconfig.c
| * Cleanup:global:force the re-attach the return type to the function ↵Joseph Herlant2018-05-301-85/+57
| | | | | | | | | | | | | | | | declaration (#605) * Cleanup:global:force the re-attach the return type to the function declaration * cleanup:global:some loose ends
| * cleanup:global:Use astyle to reformat everythingJoseph Herlant2018-05-251-1062/+1031
| |
* | cleanup:global:Reformat with astyle and remove trailing spacesmvglasow2018-05-261-1100/+1069
| | | | | | | | | | | | Mirrors 8a76acb and 41a1264 Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Merge branch 'trunk' into trafficmvglasow2018-05-091-43/+27
|\ \ | |/ | | | | | | | | # Conflicts: # navit/route.c # navit/xmlconfig.c
| * Cleanup:xmlconfig:Remove unreachable codeJoseph Herlant2018-04-301-9/+0
| |
| * Update:xmlconfig:Use g_strndup instead of strncpyJoseph Herlant2018-04-301-10/+3
| |
| * Update:xmlconfig:Make sure we use g_malloc/g_free instead of malloc/freeJoseph Herlant2018-04-301-2/+2
| |
| * Fix:debug:Change line separators for dbg to work also on win* platform (#546)Joseph Herlant2018-04-261-27/+27
| | | | | | | | | | | | | | | | * Fix:debug:Change line separators for dbg to work also on win* platform * Fix:debug:Break multiline dbg statements to use the new model * Fix:debug:Move the EOL into debug_vprintf
* | Fix:core:Correctly initialize XML elements arraymvglasow2018-05-011-1/+1
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Add:core:Provide generic XML parser which accepts a file namemvglasow2018-02-021-0/+48
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Add:core:Make XML parsing more generic (do not exit on failure)mvglasow2018-01-281-6/+19
| | | | | | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* | Add:traffic:Introduce traffic module to Navit core, still a skeletonmvglasow2017-11-271-0/+7
|/ | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Refactor:core:Add some debug output for attribute-related methodsmvglasow2015-11-201-0/+2
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Refactor:core:Document navit_object_attr_get()mvglasow2015-11-071-0/+25
| | | | Signed-off-by: mvglasow <michael -at- vonglasow.com>
* Add:core:Allow to query graphics attributes (to allow graphics modules to ↵mdankov2014-12-211-1/+1
| | | | | | export command interface functions) git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5978 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Change all logging at lvl_error/warning to lvl_debug, unless it ↵sleske2014-11-221-12/+12
| | | | | | looks like an error message.|#1269, part 5 git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5967 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Refactor:core:Introduce enum for debug levels, and use it everywhere.|First ↵sleske2014-11-221-25/+25
| | | | | | part of #1269. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5960 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Improved routing api and support for testing route positions ↵martin-s2014-05-291-1/+2
| | | | | | without rebuilding graph git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5789 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Revert 5769 as we already support xpointer attribute for ↵mdankov2014-05-021-3/+1
| | | | | | xi:include's which can be used to skip root (or any) node of included file. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5770 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:core:Support (by ignoring) xml element xfragment to be used as root ↵mdankov2014-05-021-1/+3
| | | | | | element in xi:include'd files. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5769 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Fix warnings by using xml_context* instead of void*.|Replaces ↵sleske2013-08-191-36/+8
| | | | | | provisional fix from rev.5576. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5577 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Partially revert rev. 5571 to fix builds which use support/glib.sleske2013-08-131-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5576 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Fix warnings from pointer type problems.|Part of #1154.sleske2013-08-111-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5571 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Refactor:core:Fix warnings, remove dead code.sleske2013-06-301-13/+5
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5543 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Ignore unknown/invalid item types in config.|Fixes #1127.sleske2013-06-301-1/+5
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5542 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Split up navit_object_set_attr into two parts to allow to trigger ↵martin-s2013-05-261-2/+8
| | | | | | callback indipendently git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5515 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Converted navigation to new schememartin-s2013-05-261-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5509 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Coding standard and converted speech to new schememartin-s2013-05-261-1/+12
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5507 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Converted log object to new schememartin-s2013-05-241-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5506 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:New xml tag for adding scripts to objectsmartin-s2013-05-241-1/+8
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5503 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Possibility to use ezxml together with glib for easier debuggingmartin-s2013-05-041-12/+25
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5472 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:New function to set driver methods forwards- and backwardscompatiblemartin-s2013-04-281-0/+16
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5453 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Further work on vehicleprofile_optionsmartin-s2013-03-101-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5407 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Beginning of work to create vehicleprofile options instead of ↵martin-s2013-03-051-1/+13
| | | | | | multiple vehicle profiles git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5400 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Make buffer large enough, remove obsolete debug codemartin-s2013-01-311-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5361 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Converted osd to new object schememartin-s2013-01-311-1/+9
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5360 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:Core:Improved config object handlingmartin-s2013-01-201-1/+73
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5344 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Allow layer tag to reference layers within navit context, object ↵martin-s2013-01-191-2/+27
| | | | | | handling cleanup git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5340 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:gui_internal:Do not crash if XML for internal GUI is missing/invalid.sleske2012-08-291-0/+8
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5221 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Changed vehicleprofile to new schememartin-s2012-07-161-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5193 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Changed layout_func to new schememartin-s2012-07-161-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5189 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Fix:core:Reduce debug output, use dbg() instead of printf.sleske2012-07-051-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5182 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Simple fixes to get navit compiling with MSVCbjasspa2012-07-011-8/+5
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5165 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:option to configure multiple maps with similar attributes with one tagmartin-s2012-06-201-0/+7
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5155 ffa7fe5e-494d-0410-b361-a75ebd5db220
* Add:Core:Use hash during xml parsing to improve startup speedmartin-s2012-05-051-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5078 ffa7fe5e-494d-0410-b361-a75ebd5db220