From 1e4ee1917caf00cdf0df64a5ab0bb046e89a5cc6 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sat, 14 Jan 2023 19:40:29 +0100 Subject: [PATCH] Fix red in 7f265ee Change-Id: Ib2496af0ed6176ea537e1f61804c1ba514374fb6 --- apps/plugin.c | 1 + apps/plugin.h | 3 ++- apps/plugins/lib/wrappers.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 = { splash_progress, splash_progress_set_delay, + fix_path_part, }; 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); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 261 +#define PLUGIN_API_VERSION 262 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -947,6 +947,7 @@ struct plugin_api { void (*splash_progress)(int current, int total, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); void (*splash_progress_set_delay)(long delay_ticks); + void (*fix_path_part)(char* path, int offset, int count); }; /* 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 @@ #define strlen rb->strlen #define strlcpy rb->strlcpy #define strrchr rb->strrchr +#define fix_path_part rb->fix_path_part #endif