summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-07-31 22:45:10 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-08-17 10:15:14 -0400
commit35502834423049b319fde41ff305b48de67d2d51 (patch)
tree00d638d9348cd38f15cf6d341e700bc36153b3f8 /apps/plugin.h
parentd553bb1149800daf16dcb92bc0608fe6248e1dab (diff)
downloadrockbox-35502834423049b319fde41ff305b48de67d2d51.tar.gz
rockbox-35502834423049b319fde41ff305b48de67d2d51.zip
Add open_plugin to core
open_plugin allows arbitrary plugins to be called in hotkey and start screen replaces PictureFlow Integration shortcuts menu plays plugins now too rather than store paths and parameters in the settings that reside in memory instead entries in a file are searched by hash. after all, the plugin has to be loaded from disk anyways ---------------------------------------------------------------------------- shortcut_viewer.rock-- can now call plugins rather than taking you to them in the browser ----------------------------------------------------------------------------- Added a new option to menus: F_CB_ON_SELECT_ONLY instead of option callback every time a item is accessed F_CB_ON_SELECT_ONLY fires callback only when item is selected ----------------------------------------------------------------------------- Added manual entries ----------------------------------------------------------------------------- Change-Id: I078b57b1d2b4dd633c89212c1082fcbc1b516e6a
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 2585d17205..fc3da61c57 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -49,6 +49,7 @@
49 49
50char* strncpy(char *, const char *, size_t); 50char* strncpy(char *, const char *, size_t);
51void* plugin_get_buffer(size_t *buffer_size); 51void* plugin_get_buffer(size_t *buffer_size);
52int plugin_open(char *plugin, char *parameter);
52 53
53#ifndef __PCTOOL__ 54#ifndef __PCTOOL__
54#include "config.h" 55#include "config.h"
@@ -172,6 +173,7 @@ enum plugin_status {
172 PLUGIN_USB_CONNECTED = INTERNAL_PLUGIN_RETVAL_START, 173 PLUGIN_USB_CONNECTED = INTERNAL_PLUGIN_RETVAL_START,
173 PLUGIN_POWEROFF, 174 PLUGIN_POWEROFF,
174 PLUGIN_GOTO_WPS, 175 PLUGIN_GOTO_WPS,
176 PLUGIN_GOTO_PLUGIN,
175 PLUGIN_ERROR = -1, 177 PLUGIN_ERROR = -1,
176}; 178};
177 179
@@ -934,6 +936,7 @@ struct plugin_api {
934#ifdef HAVE_TAGCACHE 936#ifdef HAVE_TAGCACHE
935 struct tagcache_stat* (*tagcache_get_stat)(void); 937 struct tagcache_stat* (*tagcache_get_stat)(void);
936#endif 938#endif
939 int (*plugin_open)(char *path, char *parameter);
937 940
938}; 941};
939 942