diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-20 21:53:47 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-06-20 21:53:47 +0000 |
commit | 298316d19297eea82869b63235b535e5904fc0dd (patch) | |
tree | 0426e9c8cecac7532a88888e78e5e54ea9bb6145 /apps/plugins/text_viewer/tv_window.h | |
parent | 17a2f9d8d2dfddd8d2d81ff638e21302efef1c8e (diff) | |
download | rockbox-298316d19297eea82869b63235b535e5904fc0dd.tar.gz rockbox-298316d19297eea82869b63235b535e5904fc0dd.zip |
text_viewer: cleanup & bugfix
cleanup:
- don't use enum in struct / return values
- don't use a getter for preferences but a global pointer
- explicitely make enums start at 0
- use static tables for header/footer settings
- remove unneeded memset before strlcpy
- use static buffer allocation, not dynamic
- check header/footer preferences before using the callbacks
- don't include font filename in archos player preferences (break
file format)
bugfix:
- statically allocate old preferences in tv_set_preferences()
Sometimes I can read a file on Clipv2, but it still aborts quite often
refs: FS#11399
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26998 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_window.h')
-rw-r--r-- | apps/plugins/text_viewer/tv_window.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/plugins/text_viewer/tv_window.h b/apps/plugins/text_viewer/tv_window.h index fe87ec6569..abf475ae2d 100644 --- a/apps/plugins/text_viewer/tv_window.h +++ b/apps/plugins/text_viewer/tv_window.h | |||
@@ -26,20 +26,11 @@ | |||
26 | /* | 26 | /* |
27 | * initialize the window module | 27 | * initialize the window module |
28 | * | 28 | * |
29 | * [In] buf | ||
30 | * the start pointer of the buffer | ||
31 | * | ||
32 | * [In] size | ||
33 | * enabled buffer size | ||
34 | * | ||
35 | * [Out] used_size | ||
36 | * the size of the buffer which the pager uses | ||
37 | * | ||
38 | * return | 29 | * return |
39 | * true initialize success | 30 | * true initialize success |
40 | * false initialize failure | 31 | * false initialize failure |
41 | */ | 32 | */ |
42 | bool tv_init_window(unsigned char *buf, size_t bufsize, size_t *used_size); | 33 | bool tv_init_window(void); |
43 | 34 | ||
44 | /* finalize the window module */ | 35 | /* finalize the window module */ |
45 | void tv_finalize_window(void); | 36 | void tv_finalize_window(void); |