summaryrefslogtreecommitdiff
path: root/navit/config_.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-28 05:51:50 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-28 05:51:50 +0000
commit2e355e9a8f7b3a5fed3598db3098039943e01e63 (patch)
treeddeb10b38dbc1cd1b45f57ff7dd85f9e3c9d320c /navit/config_.c
parentcbe0d903c525a0a438dc5d8e5bd30daeea65508b (diff)
downloadnavit-2e355e9a8f7b3a5fed3598db3098039943e01e63.tar.gz
Add:Core:config_get function to avoid global variable
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3307 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/config_.c')
-rw-r--r--navit/config_.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/navit/config_.c b/navit/config_.c
index 66b77074f..f54a179b5 100644
--- a/navit/config_.c
+++ b/navit/config_.c
@@ -29,6 +29,12 @@ struct config {
struct callback_list *cbl;
} *config;
+struct config *
+config_get(void)
+{
+ return config;
+}
+
int config_empty_ok;
static int configured;