From 990cbf302eb04f80174c50040492fa7db6fbad6d Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Tue, 14 Dec 2010 21:33:45 +0000 Subject: Commit FS#11799 by Alexander Meshcheryakov. Improves the text viewer plugin to write to the disk less often, and correct several minor bugs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28833 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/text_viewer/tv_bookmark.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugins/text_viewer/tv_bookmark.h') diff --git a/apps/plugins/text_viewer/tv_bookmark.h b/apps/plugins/text_viewer/tv_bookmark.h index b0b91077d4..85b52b2c4f 100644 --- a/apps/plugins/text_viewer/tv_bookmark.h +++ b/apps/plugins/text_viewer/tv_bookmark.h @@ -29,6 +29,7 @@ /* Maximum amount of register possible bookmarks */ #define TV_MAX_BOOKMARKS 16 +#define SERIALIZE_BOOKMARK_SIZE 8 /* * initialize the bookmark module @@ -83,7 +84,7 @@ void tv_create_system_bookmark(void); * Return * the size of the result */ -int tv_serialize_bookmarks(int fd); +int tv_serialize_bookmarks(unsigned char *buf); /* * deserialize the bookmark array -- cgit v1.2.3