diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-18 12:50:52 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-18 12:50:52 -0400 |
commit | eb2146d6832524865cf78ef72b75d4f9d5ed9217 (patch) | |
tree | 5da8d51441127e5e2f487282106cd7995eff6686 /apps | |
parent | 57b3d2ffb157e5b2bba8bee02940193c9ea1566f (diff) | |
download | rockbox-eb2146d6832524865cf78ef72b75d4f9d5ed9217.tar.gz rockbox-eb2146d6832524865cf78ef72b75d4f9d5ed9217.zip |
plugins: add lang_is_rtl() to the plugin API.
So plugins can put stuff in the correct order, if they care.
Change-Id: Iac322bcb8cf78b37d3caef4c8d7b2a14923669f4
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 1 |
2 files changed, 3 insertions, 0 deletions
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 @@ | |||
47 | #include "load_code.h" | 47 | #include "load_code.h" |
48 | #include "file.h" | 48 | #include "file.h" |
49 | #include "core_keymap.h" | 49 | #include "core_keymap.h" |
50 | #include "language.h" | ||
50 | 51 | ||
51 | #if CONFIG_CHARGING | 52 | #if CONFIG_CHARGING |
52 | #include "power.h" | 53 | #include "power.h" |
@@ -839,6 +840,7 @@ static const struct plugin_api rockbox_api = { | |||
839 | playlist_get_display_index, | 840 | playlist_get_display_index, |
840 | filetype_get_plugin, | 841 | filetype_get_plugin, |
841 | playlist_entries_iterate, | 842 | playlist_entries_iterate, |
843 | lang_is_rtl, | ||
842 | }; | 844 | }; |
843 | 845 | ||
844 | static int plugin_buffer_handle; | 846 | 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 { | |||
978 | bool (*playlist_entries_iterate)(const char *filename, | 978 | bool (*playlist_entries_iterate)(const char *filename, |
979 | struct playlist_insert_context *pl_context, | 979 | struct playlist_insert_context *pl_context, |
980 | bool (*action_cb)(const char *file_name)); | 980 | bool (*action_cb)(const char *file_name)); |
981 | int (*lang_is_rtl)(void); | ||
981 | }; | 982 | }; |
982 | 983 | ||
983 | /* plugin header */ | 984 | /* plugin header */ |