diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2008-03-26 08:57:25 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2008-03-26 08:57:25 +0000 |
| commit | 73f9863b1be9f31c8c18813b512c3504a7adfebc (patch) | |
| tree | 11d6a566834835ccb61cd031dceeaee60751d37a /apps/plugin.h | |
| parent | a92b9e65f7e4a3ce804811624f445ee3c2015f57 (diff) | |
| download | rockbox-73f9863b1be9f31c8c18813b512c3504a7adfebc.zip rockbox-73f9863b1be9f31c8c18813b512c3504a7adfebc.tar.gz rockbox-73f9863b1be9f31c8c18813b512c3504a7adfebc.tar.bz2 rockbox-73f9863b1be9f31c8c18813b512c3504a7adfebc.tar.xz | |
More consts that require no functional change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16814 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 66ed5fd..27fcffb 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -120,12 +120,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 103 +#define PLUGIN_API_VERSION 104 /* 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 PLUGIN_MIN_API_VERSION 103 +#define PLUGIN_MIN_API_VERSION 104 /* plugin return codes */ enum plugin_status { @@ -684,20 +684,20 @@ struct plugin_api { #if (CONFIG_CODEC == SWCODEC) /* buffering API */ - int (*bufopen)(const char *file, size_t offset, enum data_type type); - int (*bufalloc)(const void *src, size_t size, enum data_type type); - bool (*bufclose)(int handle_id); - int (*bufseek)(int handle_id, size_t newpos); - int (*bufadvance)(int handle_id, off_t offset); - ssize_t (*bufread)(int handle_id, size_t size, void *dest); - ssize_t (*bufgetdata)(int handle_id, size_t size, void **data); - ssize_t (*bufgettail)(int handle_id, size_t size, void **data); - ssize_t (*bufcuttail)(int handle_id, size_t size); - - ssize_t (*buf_get_offset)(int handle_id, void *ptr); - ssize_t (*buf_handle_offset)(int handle_id); - void (*buf_request_buffer_handle)(int handle_id); - void (*buf_set_base_handle)(int handle_id); + int (*bufopen)(const char *file, size_t offset, const enum data_type type); + int (*bufalloc)(const void *src, const size_t size, const enum data_type type); + bool (*bufclose)(const int handle_id); + int (*bufseek)(const int handle_id, const size_t newpos); + int (*bufadvance)(const int handle_id, const off_t offset); + ssize_t (*bufread)(const int handle_id, size_t size, void *dest); + ssize_t (*bufgetdata)(const int handle_id, size_t size, void **data); + ssize_t (*bufgettail)(const int handle_id, const size_t size, void **data); + ssize_t (*bufcuttail)(const int handle_id, size_t size); + + ssize_t (*buf_get_offset)(const int handle_id, void *ptr); + ssize_t (*buf_handle_offset)(const int handle_id); + void (*buf_request_buffer_handle)(const int handle_id); + void (*buf_set_base_handle)(const int handle_id); size_t (*buf_used)(void); #endif |