diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2010-12-14 21:33:45 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2010-12-14 21:33:45 +0000 |
| commit | 990cbf302eb04f80174c50040492fa7db6fbad6d (patch) | |
| tree | 8a0340d9aeb299a954aa63bb1895a23cebfbe1d9 /apps/plugins/text_viewer/tv_bookmark.h | |
| parent | ee4ea4266b2eae7a78680a722054a68a83840ec5 (diff) | |
| download | rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.zip rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.tar.gz rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.tar.bz2 rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.tar.xz | |
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
Diffstat (limited to 'apps/plugins/text_viewer/tv_bookmark.h')
| -rw-r--r-- | apps/plugins/text_viewer/tv_bookmark.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_bookmark.h b/apps/plugins/text_viewer/tv_bookmark.h index b0b9107..85b52b2 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 |