diff options
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 66ed5fdbb2..27fcffb69c 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -120,12 +120,12 @@ | |||
120 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 120 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
121 | 121 | ||
122 | /* increase this every time the api struct changes */ | 122 | /* increase this every time the api struct changes */ |
123 | #define PLUGIN_API_VERSION 103 | 123 | #define PLUGIN_API_VERSION 104 |
124 | 124 | ||
125 | /* update this to latest version if a change to the api struct breaks | 125 | /* update this to latest version if a change to the api struct breaks |
126 | backwards compatibility (and please take the opportunity to sort in any | 126 | backwards compatibility (and please take the opportunity to sort in any |
127 | new function which are "waiting" at the end of the function table) */ | 127 | new function which are "waiting" at the end of the function table) */ |
128 | #define PLUGIN_MIN_API_VERSION 103 | 128 | #define PLUGIN_MIN_API_VERSION 104 |
129 | 129 | ||
130 | /* plugin return codes */ | 130 | /* plugin return codes */ |
131 | enum plugin_status { | 131 | enum plugin_status { |
@@ -684,20 +684,20 @@ struct plugin_api { | |||
684 | 684 | ||
685 | #if (CONFIG_CODEC == SWCODEC) | 685 | #if (CONFIG_CODEC == SWCODEC) |
686 | /* buffering API */ | 686 | /* buffering API */ |
687 | int (*bufopen)(const char *file, size_t offset, enum data_type type); | 687 | int (*bufopen)(const char *file, size_t offset, const enum data_type type); |
688 | int (*bufalloc)(const void *src, size_t size, enum data_type type); | 688 | int (*bufalloc)(const void *src, const size_t size, const enum data_type type); |
689 | bool (*bufclose)(int handle_id); | 689 | bool (*bufclose)(const int handle_id); |
690 | int (*bufseek)(int handle_id, size_t newpos); | 690 | int (*bufseek)(const int handle_id, const size_t newpos); |
691 | int (*bufadvance)(int handle_id, off_t offset); | 691 | int (*bufadvance)(const int handle_id, const off_t offset); |
692 | ssize_t (*bufread)(int handle_id, size_t size, void *dest); | 692 | ssize_t (*bufread)(const int handle_id, size_t size, void *dest); |
693 | ssize_t (*bufgetdata)(int handle_id, size_t size, void **data); | 693 | ssize_t (*bufgetdata)(const int handle_id, size_t size, void **data); |
694 | ssize_t (*bufgettail)(int handle_id, size_t size, void **data); | 694 | ssize_t (*bufgettail)(const int handle_id, const size_t size, void **data); |
695 | ssize_t (*bufcuttail)(int handle_id, size_t size); | 695 | ssize_t (*bufcuttail)(const int handle_id, size_t size); |
696 | 696 | ||
697 | ssize_t (*buf_get_offset)(int handle_id, void *ptr); | 697 | ssize_t (*buf_get_offset)(const int handle_id, void *ptr); |
698 | ssize_t (*buf_handle_offset)(int handle_id); | 698 | ssize_t (*buf_handle_offset)(const int handle_id); |
699 | void (*buf_request_buffer_handle)(int handle_id); | 699 | void (*buf_request_buffer_handle)(const int handle_id); |
700 | void (*buf_set_base_handle)(int handle_id); | 700 | void (*buf_set_base_handle)(const int handle_id); |
701 | size_t (*buf_used)(void); | 701 | size_t (*buf_used)(void); |
702 | #endif | 702 | #endif |
703 | 703 | ||