diff options
Diffstat (limited to 'apps/plugins/rockboy.c')
-rw-r--r-- | apps/plugins/rockboy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/rockboy.c b/apps/plugins/rockboy.c index 783e096214..d3504572cf 100644 --- a/apps/plugins/rockboy.c +++ b/apps/plugins/rockboy.c | |||
@@ -22,6 +22,8 @@ | |||
22 | 22 | ||
23 | #if MEM <= 8 && !defined(SIMULATOR) | 23 | #if MEM <= 8 && !defined(SIMULATOR) |
24 | 24 | ||
25 | PLUGIN_HEADER | ||
26 | |||
25 | #define OVL_NAME "/.rockbox/viewers/rockboy.ovl" | 27 | #define OVL_NAME "/.rockbox/viewers/rockboy.ovl" |
26 | #define OVL_DISPLAYNAME "RockBoy" | 28 | #define OVL_DISPLAYNAME "RockBoy" |
27 | 29 | ||
@@ -40,10 +42,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
40 | enum plugin_status(*entry_point)(struct plugin_api*, void*); | 42 | enum plugin_status(*entry_point)(struct plugin_api*, void*); |
41 | } header; | 43 | } header; |
42 | 44 | ||
43 | /* this macro should be called as the first thing you do in the plugin. | ||
44 | it test that the api version and model the plugin was compiled for | ||
45 | matches the machine it is running on */ | ||
46 | TEST_PLUGIN_API(api); | ||
47 | rb = api; | 45 | rb = api; |
48 | 46 | ||
49 | fh = rb->open(OVL_NAME, O_RDONLY); | 47 | fh = rb->open(OVL_NAME, O_RDONLY); |