mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 17:42:36 -05:00
plugins: add lang_is_rtl() to the plugin API.
So plugins can put stuff in the correct order, if they care. Change-Id: Iac322bcb8cf78b37d3caef4c8d7b2a14923669f4
This commit is contained in:
parent
57b3d2ffb1
commit
eb2146d683
2 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,7 @@
|
||||||
#include "load_code.h"
|
#include "load_code.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "core_keymap.h"
|
#include "core_keymap.h"
|
||||||
|
#include "language.h"
|
||||||
|
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
|
|
@ -839,6 +840,7 @@ static const struct plugin_api rockbox_api = {
|
||||||
playlist_get_display_index,
|
playlist_get_display_index,
|
||||||
filetype_get_plugin,
|
filetype_get_plugin,
|
||||||
playlist_entries_iterate,
|
playlist_entries_iterate,
|
||||||
|
lang_is_rtl,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int plugin_buffer_handle;
|
static int plugin_buffer_handle;
|
||||||
|
|
|
||||||
|
|
@ -978,6 +978,7 @@ struct plugin_api {
|
||||||
bool (*playlist_entries_iterate)(const char *filename,
|
bool (*playlist_entries_iterate)(const char *filename,
|
||||||
struct playlist_insert_context *pl_context,
|
struct playlist_insert_context *pl_context,
|
||||||
bool (*action_cb)(const char *file_name));
|
bool (*action_cb)(const char *file_name));
|
||||||
|
int (*lang_is_rtl)(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* plugin header */
|
/* plugin header */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue