summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_bookmark.h
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2010-12-14 21:33:45 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2010-12-14 21:33:45 +0000
commit990cbf302eb04f80174c50040492fa7db6fbad6d (patch)
tree8a0340d9aeb299a954aa63bb1895a23cebfbe1d9 /apps/plugins/text_viewer/tv_bookmark.h
parentee4ea4266b2eae7a78680a722054a68a83840ec5 (diff)
downloadrockbox-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.h3
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