diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2010-12-14 21:33:45 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2010-12-14 21:33:45 +0000 |
commit | 990cbf302eb04f80174c50040492fa7db6fbad6d (patch) | |
tree | 8a0340d9aeb299a954aa63bb1895a23cebfbe1d9 /apps/plugins/text_viewer/tv_preferences.h | |
parent | ee4ea4266b2eae7a78680a722054a68a83840ec5 (diff) | |
download | rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.tar.gz rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.zip |
Commit FS#11799 by Alexander Meshcheryakov. Improves the text viewer plugin to write to the disk less often, and correct several minor bugs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28833 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_preferences.h')
-rw-r--r-- | apps/plugins/text_viewer/tv_preferences.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/text_viewer/tv_preferences.h b/apps/plugins/text_viewer/tv_preferences.h index bc871a7255..bb448b0f4b 100644 --- a/apps/plugins/text_viewer/tv_preferences.h +++ b/apps/plugins/text_viewer/tv_preferences.h | |||
@@ -104,6 +104,7 @@ struct tv_preferences { | |||
104 | * global pointer to the preferences (read-only) | 104 | * global pointer to the preferences (read-only) |
105 | */ | 105 | */ |
106 | extern const struct tv_preferences * const preferences; | 106 | extern const struct tv_preferences * const preferences; |
107 | extern bool preferences_changed; | ||
107 | 108 | ||
108 | /* | 109 | /* |
109 | * change the preferences | 110 | * change the preferences |
@@ -126,6 +127,15 @@ bool tv_set_preferences(const struct tv_preferences *new_prefs); | |||
126 | void tv_copy_preferences(struct tv_preferences *copy_prefs); | 127 | void tv_copy_preferences(struct tv_preferences *copy_prefs); |
127 | 128 | ||
128 | /* | 129 | /* |
130 | * compare the preferences structs (binary) | ||
131 | * | ||
132 | * return | ||
133 | * true differs | ||
134 | * false identical | ||
135 | */ | ||
136 | bool tv_compare_preferences(struct tv_preferences *copy_prefs); | ||
137 | |||
138 | /* | ||
129 | * set the default settings | 139 | * set the default settings |
130 | * | 140 | * |
131 | * [Out] p | 141 | * [Out] p |