diff options
-rw-r--r-- | apps/plugin.c | 1 | ||||
-rw-r--r-- | apps/plugin.h | 3 | ||||
-rw-r--r-- | apps/plugins/lib/wrappers.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 38b7b6e821..2bcbc93de6 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -823,6 +823,7 @@ static const struct plugin_api rockbox_api = { | |||
823 | 823 | ||
824 | splash_progress, | 824 | splash_progress, |
825 | splash_progress_set_delay, | 825 | splash_progress_set_delay, |
826 | fix_path_part, | ||
826 | }; | 827 | }; |
827 | 828 | ||
828 | static int plugin_buffer_handle; | 829 | static int plugin_buffer_handle; |
diff --git a/apps/plugin.h b/apps/plugin.h index 0e7e97433b..474ccc5b82 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -157,7 +157,7 @@ int plugin_open(const char *plugin, const char *parameter); | |||
157 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 157 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
158 | 158 | ||
159 | /* increase this every time the api struct changes */ | 159 | /* increase this every time the api struct changes */ |
160 | #define PLUGIN_API_VERSION 261 | 160 | #define PLUGIN_API_VERSION 262 |
161 | 161 | ||
162 | /* update this to latest version if a change to the api struct breaks | 162 | /* update this to latest version if a change to the api struct breaks |
163 | backwards compatibility (and please take the opportunity to sort in any | 163 | backwards compatibility (and please take the opportunity to sort in any |
@@ -947,6 +947,7 @@ struct plugin_api { | |||
947 | 947 | ||
948 | void (*splash_progress)(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); | 948 | void (*splash_progress)(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); |
949 | void (*splash_progress_set_delay)(long delay_ticks); | 949 | void (*splash_progress_set_delay)(long delay_ticks); |
950 | void (*fix_path_part)(char* path, int offset, int count); | ||
950 | }; | 951 | }; |
951 | 952 | ||
952 | /* plugin header */ | 953 | /* plugin header */ |
diff --git a/apps/plugins/lib/wrappers.h b/apps/plugins/lib/wrappers.h index b6fbd51a39..761854fa05 100644 --- a/apps/plugins/lib/wrappers.h +++ b/apps/plugins/lib/wrappers.h | |||
@@ -53,6 +53,7 @@ | |||
53 | #define strlen rb->strlen | 53 | #define strlen rb->strlen |
54 | #define strlcpy rb->strlcpy | 54 | #define strlcpy rb->strlcpy |
55 | #define strrchr rb->strrchr | 55 | #define strrchr rb->strrchr |
56 | #define fix_path_part rb->fix_path_part | ||
56 | 57 | ||
57 | #endif | 58 | #endif |
58 | 59 | ||