summaryrefslogtreecommitdiff
path: root/apps/buffering.h
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2007-11-03 21:13:15 +0000
committerBrandon Low <lostlogic@rockbox.org>2007-11-03 21:13:15 +0000
commitacb3e9af22d2b2af13a81d36038db62d96c83e6d (patch)
treecd1eaa6498fb2d5d6010256670e38005ebd88654 /apps/buffering.h
parent60d4e7c9c4dfe423f4400fd6d8b6ad14eac4ccc9 (diff)
downloadrockbox-acb3e9af22d2b2af13a81d36038db62d96c83e6d.zip
rockbox-acb3e9af22d2b2af13a81d36038db62d96c83e6d.tar.gz
rockbox-acb3e9af22d2b2af13a81d36038db62d96c83e6d.tar.bz2
rockbox-acb3e9af22d2b2af13a81d36038db62d96c83e6d.tar.xz
Make handle id semantics more like file id. This may need to be revisited if we ever start storing long lived things on the buffer (if an item lives through 32k other items coming and going, there will be an id collision and things will break)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15437 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.h')
-rw-r--r--apps/buffering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/buffering.h b/apps/buffering.h
index e6b99d3..bd1ec24 100644
--- a/apps/buffering.h
+++ b/apps/buffering.h
@@ -65,6 +65,7 @@ bool buffering_reset(char *buf, size_t buflen);
* amount of data is ready (unless EOF is reached).
****************************************************************************/
+#define BUF_HANDLE_ID_MASK 0x7FFF
#define BUF_MAX_HANDLES 256
int bufopen(const char *file, size_t offset, enum data_type type);