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/codecs.h | |
parent | dce799641d2f75feda39b087f03a1f64620f3d6b (diff) | |
download | rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.tar.gz rockbox-56dd75d204f861785ca78ae1c6eb506d5f2ea7e9.zip |
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.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index 028e3614ff..daf2c8694e 100644 --- a/apps/codecs.h +++ b/apps/codecs.h | |||
@@ -75,12 +75,12 @@ | |||
75 | #define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ | 75 | #define CODEC_ENC_MAGIC 0x52454E43 /* RENC */ |
76 | 76 | ||
77 | /* increase this every time the api struct changes */ | 77 | /* increase this every time the api struct changes */ |
78 | #define CODEC_API_VERSION 39 | 78 | #define CODEC_API_VERSION 40 |
79 | 79 | ||
80 | /* update this to latest version if a change to the api struct breaks | 80 | /* update this to latest version if a change to the api struct breaks |
81 | backwards compatibility (and please take the opportunity to sort in any | 81 | backwards compatibility (and please take the opportunity to sort in any |
82 | new function which are "waiting" at the end of the function table) */ | 82 | new function which are "waiting" at the end of the function table) */ |
83 | #define CODEC_MIN_API_VERSION 39 | 83 | #define CODEC_MIN_API_VERSION 40 |
84 | 84 | ||
85 | /* codec return codes */ | 85 | /* codec return codes */ |
86 | enum codec_status { | 86 | enum codec_status { |
@@ -134,8 +134,6 @@ struct codec_api { | |||
134 | void* (*request_buffer)(size_t *realsize, size_t reqsize); | 134 | void* (*request_buffer)(size_t *realsize, size_t reqsize); |
135 | /* Advance file buffer position by <amount> amount of bytes. */ | 135 | /* Advance file buffer position by <amount> amount of bytes. */ |
136 | void (*advance_buffer)(size_t amount); | 136 | void (*advance_buffer)(size_t amount); |
137 | /* Advance file buffer to a pointer location inside file buffer. */ | ||
138 | void (*advance_buffer_loc)(void *ptr); | ||
139 | /* Seek file buffer to position <newpos> beginning of file. */ | 137 | /* Seek file buffer to position <newpos> beginning of file. */ |
140 | bool (*seek_buffer)(size_t newpos); | 138 | bool (*seek_buffer)(size_t newpos); |
141 | /* Codec should call this function when it has done the seeking. */ | 139 | /* Codec should call this function when it has done the seeking. */ |