From 990cbf302eb04f80174c50040492fa7db6fbad6d Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Tue, 14 Dec 2010 21:33:45 +0000 Subject: 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 --- apps/plugins/text_viewer/tv_preferences.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/plugins/text_viewer/tv_preferences.h') 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 { * global pointer to the preferences (read-only) */ extern const struct tv_preferences * const preferences; +extern bool preferences_changed; /* * change the preferences @@ -125,6 +126,15 @@ bool tv_set_preferences(const struct tv_preferences *new_prefs); */ void tv_copy_preferences(struct tv_preferences *copy_prefs); +/* + * compare the preferences structs (binary) + * + * return + * true differs + * false identical + */ +bool tv_compare_preferences(struct tv_preferences *copy_prefs); + /* * set the default settings * -- cgit v1.2.3