diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-07-18 12:58:29 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-07-18 12:58:29 +0000 |
commit | e409fba7f85e9ddf51e2d6a3342dbca6f667e280 (patch) | |
tree | 63d0e5689658f3a439459611a31462b1cba9fa55 /apps/plugin.h | |
parent | 06bb5ea004dacfa81e3c8e192ad2c1f95d2ad18e (diff) | |
download | rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.tar.gz rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.zip |
Flyspray: FS#10326
Author: Tomer Shalev
Adds a USB HID sample application, a plugin tha allows to send HID commands while connected in non-storage mode.
This also removes the HID stuff in the debug menu. Testing is now easily doable from the plugin
Also general HID updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21953 a1c6a512-1295-4272-9138-f99709370657
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 */ |