diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_preferences.h')
-rw-r--r-- | apps/plugins/text_viewer/tv_preferences.h | 14 |
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 | ||
26 | enum { | ||
27 | TV_CALLBACK_OK, | ||
28 | TV_CALLBACK_STOP, | ||
29 | TV_CALLBACK_ERROR, | ||
30 | }; | ||
31 | |||
26 | /* scrollbar_mode */ | 32 | /* scrollbar_mode */ |
27 | enum { | 33 | enum { |
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 | */ |
133 | void tv_set_preferences(const struct tv_preferences *new_prefs); | 143 | bool 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 | */ |
157 | void tv_add_preferences_change_listner(void (*listner)(const struct tv_preferences *oldp)); | 167 | void tv_add_preferences_change_listner(int (*listner)(const struct tv_preferences *oldp)); |
158 | 168 | ||
159 | #endif | 169 | #endif |