summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/playback_control.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-26 09:14:16 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-26 09:14:16 +0000
commit73c46ffd6ebabbf926510952bbcdf1fa7c0591ff (patch)
treede05466b72342c7300b114cc93551d10718cfe78 /apps/plugins/lib/playback_control.h
parent1764583f99c6d64de5b748df10b37a3ed9268a1f (diff)
Convert the playback control menu to the new API. Makes a good example
for plugin devs :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12919 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/playback_control.h')
-rw-r--r--apps/plugins/lib/playback_control.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/lib/playback_control.h b/apps/plugins/lib/playback_control.h
index a259fc9194..679a89000f 100644
--- a/apps/plugins/lib/playback_control.h
+++ b/apps/plugins/lib/playback_control.h
@@ -19,6 +19,12 @@
#ifndef __PLAYBACK_CONTROL_H__
#define __PLAYBACK_CONTROL_H__
+/* Use these if your menu uses the new menu api.
+ REMEBER to call playback_control_init(rb) before rb->do_menu()... */
+extern const struct menu_item_ex *playback_control_menu;
+void playback_control_init(struct plugin_api* newapi);
+
+/* Use this if your menu still uses the old menu api */
bool playback_control(struct plugin_api* api);
#endif /* __PLAYBACK_CONTROL_H__ */