diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 505e7ec666..8384d8b9aa 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "dir.h" | 38 | #include "dir.h" |
39 | #include "kernel.h" | 39 | #include "kernel.h" |
40 | #include "button.h" | 40 | #include "button.h" |
41 | #include "action.h" | ||
41 | #include "usb.h" | 42 | #include "usb.h" |
42 | #include "font.h" | 43 | #include "font.h" |
43 | #include "system.h" | 44 | #include "system.h" |
@@ -104,7 +105,7 @@ | |||
104 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 105 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
105 | 106 | ||
106 | /* increase this every time the api struct changes */ | 107 | /* increase this every time the api struct changes */ |
107 | #define PLUGIN_API_VERSION 28 | 108 | #define PLUGIN_API_VERSION 29 |
108 | 109 | ||
109 | /* update this to latest version if a change to the api struct breaks | 110 | /* update this to latest version if a change to the api struct breaks |
110 | backwards compatibility (and please take the opportunity to sort in any | 111 | backwards compatibility (and please take the opportunity to sort in any |
@@ -546,6 +547,12 @@ struct plugin_api { | |||
546 | #endif | 547 | #endif |
547 | 548 | ||
548 | int (*PREFIX(rmdir))(const char *name); | 549 | int (*PREFIX(rmdir))(const char *name); |
550 | /* action handling */ | ||
551 | int (*get_custom_action)(int context,int timeout, | ||
552 | struct button_mapping* (*get_context_map)(int)); | ||
553 | int (*get_action)(int context, int timeout); | ||
554 | void (*action_signalscreenchange)(void); | ||
555 | bool (*action_userabort)(int timeout); | ||
549 | }; | 556 | }; |
550 | 557 | ||
551 | /* plugin header */ | 558 | /* plugin header */ |