diff options
| author | Franklin Wei <frankhwei536@gmail.com> | 2014-08-08 21:34:00 -0400 |
|---|---|---|
| committer | Franklin Wei <frankhwei536@gmail.com> | 2014-09-18 20:20:10 -0400 |
| commit | e15d79265fed7868b8f3b53fd61ed2514fbad733 (patch) | |
| tree | 71712dfede2ce7715699ee5d6437555565fc5f6e /apps/plugin.h | |
| parent | 7d112053abefb9574e922b467ccf2f04a49591e3 (diff) | |
| download | rockbox-e15d79265fed7868b8f3b53fd61ed2514fbad733.zip rockbox-e15d79265fed7868b8f3b53fd61ed2514fbad733.tar.gz rockbox-e15d79265fed7868b8f3b53fd61ed2514fbad733.tar.bz2 rockbox-e15d79265fed7868b8f3b53fd61ed2514fbad733.tar.xz | |
Added piezo functions to plugin API, as well as some demo plugins
Change-Id: I3e51cc2ac3f408994f690ed6c24da33bf26a0608
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index e55dcf1..a77446e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -160,7 +160,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 232 +#define PLUGIN_API_VERSION 233 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -978,6 +978,15 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ + +#if defined(HAVE_HARDWARE_CLICK) && !defined(SIMULATOR) + /* piezo */ + + void (*piezo_click)(bool wait); + void (*piezo_beep)(bool wait); + void (*piezo_play)(unsigned int usecs, unsigned int freq, bool wait); +#endif + }; /* plugin header */ |