summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_text_reader.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-23 13:56:08 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-23 13:56:08 +0000
commit59fd2b24bd7ad8ff0c18f66ffbf83f7ceefa9d55 (patch)
treeab90153c1106641d5973f43b727611d983d7a70f /apps/plugins/text_viewer/tv_text_reader.h
parentcf9bba710297617f01c37b613b5ab9fcd97733e3 (diff)
downloadrockbox-59fd2b24bd7ad8ff0c18f66ffbf83f7ceefa9d55.tar.gz
rockbox-59fd2b24bd7ad8ff0c18f66ffbf83f7ceefa9d55.zip
FS#11399 by me: fix r26998 for text_viewer
Restore the old behaviour: - preferences must be read-write for tv_preferences.c , read-only for all other modules -> use pointer to const struct - init functions must get the plugin buffer + its size as arguments for easily adding new functions -> use pointer to buffer pointer and size to make allocation easier - preferences meaning is private to each file and must not be known by tv_preferences.c -> move tv_check_header_and_footer() back in tv_window.c; also avoid chaining 3 times the callbacks by calling tv_set_preferences() only once if more than one preference needs changing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27089 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_text_reader.h')
-rw-r--r--apps/plugins/text_viewer/tv_text_reader.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_text_reader.h b/apps/plugins/text_viewer/tv_text_reader.h
index 50059c8b3c..5162892f4b 100644
--- a/apps/plugins/text_viewer/tv_text_reader.h
+++ b/apps/plugins/text_viewer/tv_text_reader.h
@@ -26,11 +26,17 @@
26/* 26/*
27 * initialize the text reader module 27 * initialize the text reader module
28 * 28 *
29 * [In/Out] buf
30 * the start pointer of the buffer
31 *
32 * [In/Out] size
33 * enabled buffer size
34 *
29 * return 35 * return
30 * true initialize success 36 * true initialize success
31 * false initialize failure 37 * false initialize failure
32 */ 38 */
33bool tv_init_text_reader(void); 39bool tv_init_text_reader(unsigned char **buf, size_t *bufsize);
34 40
35/* finalize the text reader module */ 41/* finalize the text reader module */
36void tv_finalize_text_reader(void); 42void tv_finalize_text_reader(void);