From eb2146d6832524865cf78ef72b75d4f9d5ed9217 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 18 Jun 2024 12:50:52 -0400 Subject: plugins: add lang_is_rtl() to the plugin API. So plugins can put stuff in the correct order, if they care. Change-Id: Iac322bcb8cf78b37d3caef4c8d7b2a14923669f4 --- apps/plugin.c | 2 ++ apps/plugin.h | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/plugin.c b/apps/plugin.c index 7934cc1754..7c80e5c6e1 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -47,6 +47,7 @@ #include "load_code.h" #include "file.h" #include "core_keymap.h" +#include "language.h" #if CONFIG_CHARGING #include "power.h" @@ -839,6 +840,7 @@ static const struct plugin_api rockbox_api = { playlist_get_display_index, filetype_get_plugin, playlist_entries_iterate, + lang_is_rtl, }; static int plugin_buffer_handle; diff --git a/apps/plugin.h b/apps/plugin.h index e9dedf02a1..4dbd9d04c0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -978,6 +978,7 @@ struct plugin_api { bool (*playlist_entries_iterate)(const char *filename, struct playlist_insert_context *pl_context, bool (*action_cb)(const char *file_name)); + int (*lang_is_rtl)(void); }; /* plugin header */ -- cgit v1.2.3