summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-10-29 16:52:12 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-10-29 16:52:12 +0000
commit8fb258856c537d02ed4ebd11397f055f9dc3cc5f (patch)
treeeffed53a5491ed25d9fb114e3fe3b9c55c354f04 /apps
parentb1a7511990c5676581810e9fce1d8ad790014048 (diff)
downloadrockbox-8fb258856c537d02ed4ebd11397f055f9dc3cc5f.tar.gz
rockbox-8fb258856c537d02ed4ebd11397f055f9dc3cc5f.zip
Expose pcmbuf_beep() to plugins (based on FS#10608 by Christophe Gragnic)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23404 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index ae889d68fd..b79ea49054 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -39,6 +39,7 @@
39#include "talk.h" 39#include "talk.h"
40#include "version.h" 40#include "version.h"
41#include "storage.h" 41#include "storage.h"
42#include "pcmbuf.h"
42 43
43#if CONFIG_CHARGING 44#if CONFIG_CHARGING
44#include "power.h" 45#include "power.h"
@@ -671,6 +672,7 @@ static const struct plugin_api rockbox_api = {
671 appsversion, 672 appsversion,
672 /* new stuff at the end, sort into place next time 673 /* new stuff at the end, sort into place next time
673 the API gets incompatible */ 674 the API gets incompatible */
675 pcmbuf_beep,
674}; 676};
675 677
676int plugin_load(const char* plugin, const void* parameter) 678int plugin_load(const char* plugin, const void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 7ea1943395..de9984637f 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -133,7 +133,7 @@ void* plugin_get_buffer(size_t *buffer_size);
133#define PLUGIN_MAGIC 0x526F634B /* RocK */ 133#define PLUGIN_MAGIC 0x526F634B /* RocK */
134 134
135/* increase this every time the api struct changes */ 135/* increase this every time the api struct changes */
136#define PLUGIN_API_VERSION 173 136#define PLUGIN_API_VERSION 174
137 137
138/* 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
139 backwards compatibility (and please take the opportunity to sort in any 139 backwards compatibility (and please take the opportunity to sort in any
@@ -841,6 +841,10 @@ struct plugin_api {
841 const char *appsversion; 841 const char *appsversion;
842 /* new stuff at the end, sort into place next time 842 /* new stuff at the end, sort into place next time
843 the API gets incompatible */ 843 the API gets incompatible */
844
845 void (*pcmbuf_beep)(unsigned int frequency,
846 size_t duration,
847 int amplitude);
844}; 848};
845 849
846/* plugin header */ 850/* plugin header */