diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-06-27 01:08:11 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-06-27 01:08:11 +0000 |
commit | 60b356ea25dca1b103eec7a59ace90a710db31fe (patch) | |
tree | 042bf8e9e7ee698287fa36f85855c9db861d3e49 /apps/settings.h | |
parent | b45491df8fd4093eb79235cffb2f68c2e2228bfd (diff) |
Abstracted settings user interface into set_bool, set_int and set_option.
Removed the unnecessary menu entry ids.
Made playlist_shuffle and scroll_speed proper global settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1220 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h index b4a8fde56e..d3b891c790 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -54,6 +54,8 @@ struct user_settings int loop_playlist; /* do we return to top of playlist at end? */ bool mp3filter; + int scroll_speed; + bool playlist_shuffle; /* while playing screen settings */ int wps_display; @@ -67,6 +69,16 @@ void reload_all_settings( struct user_settings *settings ); void reset_settings( struct user_settings *settings ); void display_current_settings( struct user_settings *settings ); +void set_bool(char* string, bool* variable ); +void set_option(char* string, int* variable, char* options[], int numoptions ); +void set_int(char* string, + char* unit, + int* variable, + void (*function)(int), + int step, + int min, + int max ); + /* global settings */ extern struct user_settings global_settings; |