diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-05-09 15:29:54 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-05-09 16:13:24 -0400 |
commit | 4128a1fe48c63e32196276bbc1eae6ac4871ec5c (patch) | |
tree | 95545e2c51a5f826e6f5c4f512d4634197225327 /apps/filetypes.h | |
parent | 6e82897bfc2a4b7206e1b6db12002a979b17095e (diff) | |
download | rockbox-4128a1fe48c63e32196276bbc1eae6ac4871ec5c.tar.gz rockbox-4128a1fe48c63e32196276bbc1eae6ac4871ec5c.zip |
[Bugfix/Feature] OpenPlugin and default plugins
selecting files to run is nice and all but you might not like the plugin
you can edit it OpenPlugin Viewer Plugin but instead pop it when you add
a file to reduce suprises
shortcut viewer is not ready for this so exclude it for now
Change-Id: I950599d87f47d42e8c2d59695f6583d497b217f0
adds: default plugin (if any) is selected in the open with dialog
Diffstat (limited to 'apps/filetypes.h')
-rw-r--r-- | apps/filetypes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/filetypes.h b/apps/filetypes.h index 36d9009a87..4039daf497 100644 --- a/apps/filetypes.h +++ b/apps/filetypes.h | |||
@@ -79,9 +79,12 @@ char* filetype_get_plugin(int attr, char *buffer, size_t buffer_len); | |||
79 | /* returns true if the attr is supported */ | 79 | /* returns true if the attr is supported */ |
80 | bool filetype_supported(int attr); | 80 | bool filetype_supported(int attr); |
81 | 81 | ||
82 | /* List avialable viewers */ | 82 | /* List avialable viewers and start selected plugin with current_file as argument */ |
83 | int filetype_list_viewers(const char* current_file); | 83 | int filetype_list_viewers(const char* current_file); |
84 | 84 | ||
85 | /* return the plugin filename the user selected for the file Returns NULL if canceled */ | ||
86 | char* filetype_get_viewer(char *buffer, size_t buffer_len, const char* current_file); | ||
87 | |||
85 | /* start a plugin with file as the argument (called from onplay.c) */ | 88 | /* start a plugin with file as the argument (called from onplay.c) */ |
86 | int filetype_load_plugin(const char* plugin, const char* file); | 89 | int filetype_load_plugin(const char* plugin, const char* file); |
87 | 90 | ||