diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-26 12:57:55 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-26 12:57:55 +0000 |
commit | 012c91d5b8fab0bb75b98761a9b8096a1bd74009 (patch) | |
tree | 288d05e7181959ffc921e4fe059d8b59ad7bd149 /navit/debug.c | |
parent | cbaa1530774135e84360e1ebc552254b5e865444 (diff) | |
download | navit-012c91d5b8fab0bb75b98761a9b8096a1bd74009.tar.gz |
Fix:Core:Further cleanup of xmlconfig
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1566 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.c')
-rw-r--r-- | navit/debug.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/navit/debug.c b/navit/debug.c index cfe14202d..d83d5469b 100644 --- a/navit/debug.c +++ b/navit/debug.c @@ -25,10 +25,12 @@ #include <time.h> #include <glib.h> #include "file.h" +#include "item.h" #include "debug.h" int debug_level=0,segv_level=0; +static int dummy; static GHashTable *debug_hash; static char *gdb_program; @@ -78,6 +80,19 @@ debug_level_set(const char *name, int level) } } +struct debug * +debug_new(struct attr *parent, struct attr **attrs) +{ + struct attr *name,*level; + name=attr_search(attrs, NULL, attr_name); + level=attr_search(attrs, NULL, attr_level); + if (!name || !level) + return NULL; + debug_level_set(name->u.str, level->u.num); + return (struct debug *)&dummy; +} + + int debug_level_get(const char *name) { |