mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
60d4e7c9c4
commit
acb3e9af22
3 changed files with 38 additions and 56 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue