FS#11399 by me: fix r26998 for text_viewer
commit16210348b7ec8f2c5eae7766840f70e068e15dca
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 23 Jun 2010 13:56:08 +0000 (23 13:56 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 23 Jun 2010 13:56:08 +0000 (23 13:56 +0000)
treeab90153c1106641d5973f43b727611d983d7a70f
parent7c657e5066dcb8cf5342d0bde5a6627cb6cf4c99
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
13 files changed:
apps/plugins/text_viewer/tv_action.c
apps/plugins/text_viewer/tv_pager.c
apps/plugins/text_viewer/tv_pager.h
apps/plugins/text_viewer/tv_preferences.c
apps/plugins/text_viewer/tv_preferences.h
apps/plugins/text_viewer/tv_reader.c
apps/plugins/text_viewer/tv_reader.h
apps/plugins/text_viewer/tv_text_processor.c
apps/plugins/text_viewer/tv_text_processor.h
apps/plugins/text_viewer/tv_text_reader.c
apps/plugins/text_viewer/tv_text_reader.h
apps/plugins/text_viewer/tv_window.c
apps/plugins/text_viewer/tv_window.h