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
This commit is contained in:
Yoshihisa Uchida 2010-06-29 11:05:36 +00:00
parent 7195f3a30c
commit 07d03729ff
13 changed files with 56 additions and 25 deletions

View file

@ -73,7 +73,7 @@ static off_t tv_get_fpos(int page)
return 0;
}
static void tv_change_preferences(const struct tv_preferences *oldp)
static int tv_change_preferences(const struct tv_preferences *oldp)
{
(void)oldp;
@ -83,6 +83,7 @@ static void tv_change_preferences(const struct tv_preferences *oldp)
max_page = TV_MAX_PAGE - 1;
tv_set_fpos(cur_pos.page, 0);
tv_seek(0, SEEK_SET);
return TV_CALLBACK_OK;
}
bool tv_init_pager(unsigned char **buf, size_t *size)