mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Purge buffer and codec APIs existing exclusively in support of mpa.codec and fix that to not require them: buf_get_offset and ci.advance_buffer_loc. Sort APIs; everything must become incompatible. :(
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29595 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dce799641d
commit
56dd75d204
8 changed files with 12 additions and 37 deletions
|
@ -1444,7 +1444,6 @@ ssize_t bufcuttail(int handle_id, size_t size)
|
|||
SECONDARY EXPORTED FUNCTIONS
|
||||
============================
|
||||
|
||||
buf_get_offset
|
||||
buf_handle_offset
|
||||
buf_request_buffer_handle
|
||||
buf_set_base_handle
|
||||
|
@ -1457,16 +1456,6 @@ They take care of the content of the structs, and rely on the linked list
|
|||
management functions for all the actual handle management work.
|
||||
*/
|
||||
|
||||
/* Get a handle offset from a pointer */
|
||||
ssize_t buf_get_offset(int handle_id, void *ptr)
|
||||
{
|
||||
const struct memory_handle *h = find_handle(handle_id);
|
||||
if (!h)
|
||||
return ERR_HANDLE_NOT_FOUND;
|
||||
|
||||
return (size_t)ptr - (size_t)&buffer[h->ridx];
|
||||
}
|
||||
|
||||
ssize_t buf_handle_offset(int handle_id)
|
||||
{
|
||||
const struct memory_handle *h = find_handle(handle_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue