summaryrefslogtreecommitdiff
path: root/apps/plugins/demystify.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/demystify.c')
-rw-r--r--apps/plugins/demystify.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/plugins/demystify.c b/apps/plugins/demystify.c
index 8cb3315bdf..f4e54becb8 100644
--- a/apps/plugins/demystify.c
+++ b/apps/plugins/demystify.c
@@ -23,6 +23,8 @@
23 23
24#ifdef HAVE_LCD_BITMAP 24#ifdef HAVE_LCD_BITMAP
25 25
26PLUGIN_HEADER
27
26/* Key assignement */ 28/* Key assignement */
27#if (CONFIG_KEYPAD == IPOD_4G_PAD) 29#if (CONFIG_KEYPAD == IPOD_4G_PAD)
28#define DEMYSTIFY_QUIT BUTTON_MENU 30#define DEMYSTIFY_QUIT BUTTON_MENU
@@ -337,19 +339,12 @@ int plugin_main(void)
337enum plugin_status plugin_start(struct plugin_api* api, void* parameter) 339enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
338{ 340{
339 int ret; 341 int ret;
340 /*
341 * this macro should be called as the first thing you do in the plugin.
342 * it test that the api version and model the plugin was compiled for
343 * matches the machine it is running on
344 */
345
346 TEST_PLUGIN_API(api);
347 342
348 rb = api; /* copy to global api pointer */ 343 rb = api; /* copy to global api pointer */
349 (void)parameter; 344 (void)parameter;
350 if (rb->global_settings->backlight_timeout > 0) 345 if (rb->global_settings->backlight_timeout > 0)
351 rb->backlight_set_timeout(1);/* keep the light on */ 346 rb->backlight_set_timeout(1);/* keep the light on */
352 347
353 ret = plugin_main(); 348 ret = plugin_main();
354 349
355 return ret; 350 return ret;