mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
add way to lock portion of plugin buffer for TSR plugins
Some things in core that should probably be plugins steal the plugin buffer for their own use, TSR plugins have no way to detect or prevent this lock buffer reserves buffer_size bytes directly after the plugin itself returns the unreserved bytes still available from the plugin buffer Change-Id: I5a7849e209129b09400036a594569ef396b1b85f
This commit is contained in:
parent
5d0f697e87
commit
8eb4689ab1
2 changed files with 24 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
|||
|
||||
char* strncpy(char *, const char *, size_t);
|
||||
void* plugin_get_buffer(size_t *buffer_size);
|
||||
size_t plugin_reserve_buffer(size_t buffer_size);
|
||||
int plugin_open(const char *plugin, const char *parameter);
|
||||
|
||||
#ifndef __PCTOOL__
|
||||
|
@ -935,6 +936,7 @@ struct plugin_api {
|
|||
void (*onplay_show_playlist_menu)(const char* path, void (*playlist_insert_cb));
|
||||
void (*queue_remove_from_head)(struct event_queue *q, long id);
|
||||
int (*core_set_keyremap)(struct button_mapping* core_keymap, int count);
|
||||
size_t (*plugin_reserve_buffer)(size_t buffer_size);
|
||||
};
|
||||
|
||||
/* plugin header */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue