From 601924a777e9e4840990e60f263a4a313da90c3e Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 20 Jun 2002 09:01:50 +0000 Subject: [PATCH] Added global_settings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1116 a1c6a512-1295-4272-9138-f99709370657 --- firmware/settings.c | 7 ++----- firmware/settings.h | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/firmware/settings.c b/firmware/settings.c index db86ecb651..da69a9d254 100644 --- a/firmware/settings.c +++ b/firmware/settings.c @@ -24,6 +24,8 @@ #include "panic.h" #include "debug.h" +user_settings_t global_settings; + /* * persist all runtime user settings to disk */ @@ -97,8 +99,3 @@ void display_current_settings( user_settings_t *settings ) settings = settings; #endif } - - - - - diff --git a/firmware/settings.h b/firmware/settings.h index 935c611161..53b2b4738d 100644 --- a/firmware/settings.h +++ b/firmware/settings.h @@ -64,6 +64,9 @@ void reload_all_settings( user_settings_t *settings ); void reset_settings( user_settings_t *settings ); void display_current_settings( user_settings_t *settings ); +/* global settings */ +extern user_settings_t global_settings; + /* system defines */ #define DEFAULT_VOLUME_SETTING 70 @@ -78,6 +81,3 @@ void display_current_settings( user_settings_t *settings ); #endif /* __SETTINGS_H__ */ - - -