summaryrefslogtreecommitdiff
path: root/apps/codecs.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-03-16 05:38:37 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-03-16 05:38:37 +0000
commit56dd75d204f861785ca78ae1c6eb506d5f2ea7e9 (patch)
tree19809cf7976dd47513171bac706a061ef130b2b2 /apps/codecs.h
parentdce799641d2f75feda39b087f03a1f64620f3d6b (diff)
downloadrockbox-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/codecs.h')
-rw-r--r--apps/codecs.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index 028e361..daf2c86 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -75,12 +75,12 @@
#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
/* increase this every time the api struct changes */
-#define CODEC_API_VERSION 39
+#define CODEC_API_VERSION 40
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define CODEC_MIN_API_VERSION 39
+#define CODEC_MIN_API_VERSION 40
/* codec return codes */
enum codec_status {
@@ -134,8 +134,6 @@ struct codec_api {
void* (*request_buffer)(size_t *realsize, size_t reqsize);
/* Advance file buffer position by <amount> amount of bytes. */
void (*advance_buffer)(size_t amount);
- /* Advance file buffer to a pointer location inside file buffer. */
- void (*advance_buffer_loc)(void *ptr);
/* Seek file buffer to position <newpos> beginning of file. */
bool (*seek_buffer)(size_t newpos);
/* Codec should call this function when it has done the seeking. */