diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-21 08:02:23 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-21 08:02:23 +0000 |
commit | a754dd84b82c9aa92e7b94d0154e67500607a6a7 (patch) | |
tree | ea8f4865df30e90bdddebbe61f37aacbf19f0058 /apps | |
parent | 69697aefe84f3e576daad595259a8dd16b00ea99 (diff) | |
download | rockbox-a754dd84b82c9aa92e7b94d0154e67500607a6a7.tar.gz rockbox-a754dd84b82c9aa92e7b94d0154e67500607a6a7.zip |
Added raw button reading functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4907 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 7 | ||||
-rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 251d433d76..3cdc56ceb4 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -253,6 +253,8 @@ static const struct plugin_api rockbox_api = { | |||
253 | #endif | 253 | #endif |
254 | settings_parseline, | 254 | settings_parseline, |
255 | strcmp, | 255 | strcmp, |
256 | button_status, | ||
257 | button_clear_queue, | ||
256 | }; | 258 | }; |
257 | 259 | ||
258 | int plugin_load(char* plugin, void* parameter) | 260 | int plugin_load(char* plugin, void* parameter) |
@@ -332,7 +334,10 @@ int plugin_load(char* plugin, void* parameter) | |||
332 | 334 | ||
333 | plugin_loaded = true; | 335 | plugin_loaded = true; |
334 | rc = plugin_start((struct plugin_api*) &rockbox_api, parameter); | 336 | rc = plugin_start((struct plugin_api*) &rockbox_api, parameter); |
335 | /* explicitly casting the pointer here to avoid touching every plugin. */ | 337 | /* explicitly casting the pointer here to avoid touching every plugin. */ |
338 | |||
339 | button_clear_queue(); | ||
340 | |||
336 | plugin_loaded = false; | 341 | plugin_loaded = false; |
337 | 342 | ||
338 | switch (rc) { | 343 | switch (rc) { |
diff --git a/apps/plugin.h b/apps/plugin.h index c2243a59fb..b93d406498 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -289,6 +289,8 @@ struct plugin_api { | |||
289 | #endif | 289 | #endif |
290 | bool (*settings_parseline)(char* line, char** name, char** value); | 290 | bool (*settings_parseline)(char* line, char** name, char** value); |
291 | int (*strcmp)(const char *, const char *); | 291 | int (*strcmp)(const char *, const char *); |
292 | int (*button_status)(void); | ||
293 | void (*button_clear_queue)(void); | ||
292 | }; | 294 | }; |
293 | 295 | ||
294 | /* defined by the plugin loader (plugin.c) */ | 296 | /* defined by the plugin loader (plugin.c) */ |