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.tar.gz
rockbox-990cbf302eb04f80174c50040492fa7db6fbad6d.zip
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 b0b91077d4..85b52b2c4f 100644
--- a/apps/plugins/text_viewer/tv_bookmark.h
+++ b/apps/plugins/text_viewer/tv_bookmark.h
@@ -29,6 +29,7 @@
29 29
30/* Maximum amount of register possible bookmarks */ 30/* Maximum amount of register possible bookmarks */
31#define TV_MAX_BOOKMARKS 16 31#define TV_MAX_BOOKMARKS 16
32#define SERIALIZE_BOOKMARK_SIZE 8
32 33
33/* 34/*
34 * initialize the bookmark module 35 * initialize the bookmark module
@@ -83,7 +84,7 @@ void tv_create_system_bookmark(void);
83 * Return 84 * Return
84 * the size of the result 85 * the size of the result
85 */ 86 */
86int tv_serialize_bookmarks(int fd); 87int tv_serialize_bookmarks(unsigned char *buf);
87 88
88/* 89/*
89 * deserialize the bookmark array 90 * deserialize the bookmark array