summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2007-07-29 03:43:37 +0000
committerKevin Ferrare <kevin@rockbox.org>2007-07-29 03:43:37 +0000
commit81aac2a43074d7bf9e907309e29f88dc0c5dd2b8 (patch)
tree95c0323f06c462cacbb84dfa6d5335641b9cda12 /apps/plugin.h
parent9b11f8115005e8e7be4aff8a8b59cf58dce9974e (diff)
downloadrockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.zip
rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.tar.gz
rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.tar.bz2
rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.tar.xz
Use multi-screen api for metronome plugin, and made it run in the simulator by implementing the timer functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14046 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 961ad22..5ec0174 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -112,7 +112,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 66
+#define PLUGIN_API_VERSION 67
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -345,12 +345,13 @@ struct plugin_api {
void (*cpu_boost)(bool on_off);
#endif
#endif
+#endif
bool (*timer_register)(int reg_prio, void (*unregister_callback)(void),
long cycles, int int_prio,
void (*timer_callback)(void));
void (*timer_unregister)(void);
bool (*timer_set_period)(long count);
-#endif
+
void (*queue_init)(struct event_queue *q, bool register_queue);
void (*queue_delete)(struct event_queue *q);
void (*queue_post)(struct event_queue *q, long id, intptr_t data);
@@ -615,6 +616,7 @@ struct plugin_api {
void (*screen_clear_area)(struct screen * display, int xstart, int ystart,
int width, int height);
#endif
+ void (*led)(bool on);
};
/* plugin header */