diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2011-03-16 05:38:37 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2011-03-16 05:38:37 +0000 |
| commit | 56dd75d204f861785ca78ae1c6eb506d5f2ea7e9 (patch) | |
| tree | 19809cf7976dd47513171bac706a061ef130b2b2 /apps/buffering.c | |
| parent | dce799641d2f75feda39b087f03a1f64620f3d6b (diff) | |
| download | rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.zip rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.tar.gz rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.tar.bz2 rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.tar.xz | |
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
Diffstat (limited to 'apps/buffering.c')
| -rw-r--r-- | apps/buffering.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index 0cd81df..f70400a 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -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); |