diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-07-31 22:45:10 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-08-17 10:15:14 -0400 |
commit | 35502834423049b319fde41ff305b48de67d2d51 (patch) | |
tree | 00d638d9348cd38f15cf6d341e700bc36153b3f8 /apps/plugin.h | |
parent | d553bb1149800daf16dcb92bc0608fe6248e1dab (diff) |
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.h | 3 |
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 @@ char* strncpy(char *, const char *, size_t); void* plugin_get_buffer(size_t *buffer_size); +int plugin_open(char *plugin, char *parameter); #ifndef __PCTOOL__ #include "config.h" @@ -172,6 +173,7 @@ enum plugin_status { PLUGIN_USB_CONNECTED = INTERNAL_PLUGIN_RETVAL_START, PLUGIN_POWEROFF, PLUGIN_GOTO_WPS, + PLUGIN_GOTO_PLUGIN, PLUGIN_ERROR = -1, }; @@ -934,6 +936,7 @@ struct plugin_api { #ifdef HAVE_TAGCACHE struct tagcache_stat* (*tagcache_get_stat)(void); #endif + int (*plugin_open)(char *path, char *parameter); }; |