summaryrefslogtreecommitdiff
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_codec.c')
-rw-r--r--apps/plugins/test_codec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index aae2c1905b..48fceb9cf2 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -34,9 +34,7 @@ PLUGIN_HEADER
34#define TESTCODEC_EXITBUTTON BUTTON_SELECT 34#define TESTCODEC_EXITBUTTON BUTTON_SELECT
35#endif 35#endif
36 36
37static const struct plugin_api* rb; 37CACHE_FUNCTION_WRAPPERS
38
39CACHE_FUNCTION_WRAPPERS(rb)
40 38
41/* Log functions copied from test_disk.c */ 39/* Log functions copied from test_disk.c */
42static int line = 0; 40static int line = 0;
@@ -644,7 +642,7 @@ exit:
644} 642}
645 643
646/* plugin entry point */ 644/* plugin entry point */
647enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 645enum plugin_status plugin_start(const void* parameter)
648{ 646{
649 int result, selection = 0; 647 int result, selection = 0;
650 enum plugin_status res = PLUGIN_OK; 648 enum plugin_status res = PLUGIN_OK;
@@ -655,8 +653,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
655 char dirpath[MAX_PATH]; 653 char dirpath[MAX_PATH];
656 char filename[MAX_PATH]; 654 char filename[MAX_PATH];
657 655
658 rb = api;
659
660 if (parameter == NULL) 656 if (parameter == NULL)
661 { 657 {
662 rb->splash(HZ*2, "No File"); 658 rb->splash(HZ*2, "No File");