diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a946f42a14..3809486d0a 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -105,6 +105,10 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
105 | 105 | ||
106 | #include "yesno.h" | 106 | #include "yesno.h" |
107 | 107 | ||
108 | #if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) | ||
109 | #include "usbstack/usb_hid_usage_tables.h" | ||
110 | #endif | ||
111 | |||
108 | #ifdef PLUGIN | 112 | #ifdef PLUGIN |
109 | 113 | ||
110 | #if defined(DEBUG) || defined(SIMULATOR) | 114 | #if defined(DEBUG) || defined(SIMULATOR) |
@@ -129,7 +133,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
129 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 133 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
130 | 134 | ||
131 | /* increase this every time the api struct changes */ | 135 | /* increase this every time the api struct changes */ |
132 | #define PLUGIN_API_VERSION 164 | 136 | #define PLUGIN_API_VERSION 165 |
133 | 137 | ||
134 | /* update this to latest version if a change to the api struct breaks | 138 | /* update this to latest version if a change to the api struct breaks |
135 | backwards compatibility (and please take the opportunity to sort in any | 139 | backwards compatibility (and please take the opportunity to sort in any |
@@ -828,6 +832,10 @@ struct plugin_api { | |||
828 | const char *appsversion; | 832 | const char *appsversion; |
829 | /* new stuff at the end, sort into place next time | 833 | /* new stuff at the end, sort into place next time |
830 | the API gets incompatible */ | 834 | the API gets incompatible */ |
835 | |||
836 | #if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) | ||
837 | void (*usb_hid_send)(usage_page_t usage_page, int id); | ||
838 | #endif | ||
831 | }; | 839 | }; |
832 | 840 | ||
833 | /* plugin header */ | 841 | /* plugin header */ |