From e409fba7f85e9ddf51e2d6a3342dbca6f667e280 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 18 Jul 2009 12:58:29 +0000 Subject: 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 --- apps/plugin.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') 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); #include "yesno.h" +#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) +#include "usbstack/usb_hid_usage_tables.h" +#endif + #ifdef PLUGIN #if defined(DEBUG) || defined(SIMULATOR) @@ -129,7 +133,7 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 164 +#define PLUGIN_API_VERSION 165 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -828,6 +832,10 @@ struct plugin_api { const char *appsversion; /* new stuff at the end, sort into place next time the API gets incompatible */ + +#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) + void (*usb_hid_send)(usage_page_t usage_page, int id); +#endif }; /* plugin header */ -- cgit v1.2.3