summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-06-27 01:08:11 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-06-27 01:08:11 +0000
commit60b356ea25dca1b103eec7a59ace90a710db31fe (patch)
tree042bf8e9e7ee698287fa36f85855c9db861d3e49 /apps/settings.h
parentb45491df8fd4093eb79235cffb2f68c2e2228bfd (diff)
downloadrockbox-60b356ea25dca1b103eec7a59ace90a710db31fe.tar.gz
rockbox-60b356ea25dca1b103eec7a59ace90a710db31fe.zip
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.h12
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
54 54
55 int loop_playlist; /* do we return to top of playlist at end? */ 55 int loop_playlist; /* do we return to top of playlist at end? */
56 bool mp3filter; 56 bool mp3filter;
57 int scroll_speed;
58 bool playlist_shuffle;
57 59
58 /* while playing screen settings */ 60 /* while playing screen settings */
59 int wps_display; 61 int wps_display;
@@ -67,6 +69,16 @@ void reload_all_settings( struct user_settings *settings );
67void reset_settings( struct user_settings *settings ); 69void reset_settings( struct user_settings *settings );
68void display_current_settings( struct user_settings *settings ); 70void display_current_settings( struct user_settings *settings );
69 71
72void set_bool(char* string, bool* variable );
73void set_option(char* string, int* variable, char* options[], int numoptions );
74void set_int(char* string,
75 char* unit,
76 int* variable,
77 void (*function)(int),
78 int step,
79 int min,
80 int max );
81
70/* global settings */ 82/* global settings */
71extern struct user_settings global_settings; 83extern struct user_settings global_settings;
72 84