summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_preferences.h
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-06-29 11:05:36 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-06-29 11:05:36 +0000
commit07d03729ff537eca8429cea27c1f2d15f04ec54f (patch)
tree2f72e7d67f3da45710c2dd302f16654b80aa1016 /apps/plugins/text_viewer/tv_preferences.h
parent7195f3a30cc73e1540a590c519c9a2ecec137952 (diff)
downloadrockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.tar.gz
rockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.zip
text_viewer: callback functions are changed to the function that returns int value.
And the text viewer quits when the problem occurs by callback functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27172 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_preferences.h')
-rw-r--r--apps/plugins/text_viewer/tv_preferences.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugins/text_viewer/tv_preferences.h b/apps/plugins/text_viewer/tv_preferences.h
index d1ba7f25b4..42d6fb4887 100644
--- a/apps/plugins/text_viewer/tv_preferences.h
+++ b/apps/plugins/text_viewer/tv_preferences.h
@@ -23,6 +23,12 @@
23#ifndef PLUGIN_TEXT_VIEWER_PREFERENCES_H 23#ifndef PLUGIN_TEXT_VIEWER_PREFERENCES_H
24#define PLUGIN_TEXT_VIEWER_PREFERENCES_H 24#define PLUGIN_TEXT_VIEWER_PREFERENCES_H
25 25
26enum {
27 TV_CALLBACK_OK,
28 TV_CALLBACK_STOP,
29 TV_CALLBACK_ERROR,
30};
31
26/* scrollbar_mode */ 32/* scrollbar_mode */
27enum { 33enum {
28 SB_OFF = 0, 34 SB_OFF = 0,
@@ -129,8 +135,12 @@ extern const struct tv_preferences * const preferences;
129 * 135 *
130 * [In] new_prefs 136 * [In] new_prefs
131 * new preferences 137 * new preferences
138 *
139 * return
140 * true success
141 * false error
132 */ 142 */
133void tv_set_preferences(const struct tv_preferences *new_prefs); 143bool tv_set_preferences(const struct tv_preferences *new_prefs);
134 144
135/* 145/*
136 * copy the preferences 146 * copy the preferences
@@ -154,6 +164,6 @@ void tv_set_default_preferences(struct tv_preferences *p);
154 * [In] listner 164 * [In] listner
155 * the function to be executed when the current preferences is changed 165 * the function to be executed when the current preferences is changed
156 */ 166 */
157void tv_add_preferences_change_listner(void (*listner)(const struct tv_preferences *oldp)); 167void tv_add_preferences_change_listner(int (*listner)(const struct tv_preferences *oldp));
158 168
159#endif 169#endif