diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 7aa30c9ea2..4395195d0f 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -179,7 +179,7 @@ static const struct plugin_api rockbox_api = { | |||
179 | button_get_w_tmo, | 179 | button_get_w_tmo, |
180 | button_status, | 180 | button_status, |
181 | button_clear_queue, | 181 | button_clear_queue, |
182 | #if CONFIG_KEYPAD == IRIVER_H100_PAD | 182 | #ifdef HAS_BUTTON_HOLD |
183 | button_hold, | 183 | button_hold, |
184 | #endif | 184 | #endif |
185 | 185 | ||
@@ -357,6 +357,7 @@ static const struct plugin_api rockbox_api = { | |||
357 | menu_draw, | 357 | menu_draw, |
358 | menu_insert, | 358 | menu_insert, |
359 | menu_set_cursor, | 359 | menu_set_cursor, |
360 | set_option, | ||
360 | 361 | ||
361 | /* power */ | 362 | /* power */ |
362 | battery_level, | 363 | battery_level, |
@@ -411,13 +412,6 @@ static const struct plugin_api rockbox_api = { | |||
411 | /* new stuff at the end, sort into place next time | 412 | /* new stuff at the end, sort into place next time |
412 | the API gets incompatible */ | 413 | the API gets incompatible */ |
413 | 414 | ||
414 | #if CONFIG_KEYPAD == IRIVER_H300_PAD || CONFIG_KEYPAD == IPOD_4G_PAD | ||
415 | /* NOTE: This is already in the plugin api for the H100 - but we put it | ||
416 | at the end for other targets to keep the plugin api compatible */ | ||
417 | button_hold, | ||
418 | #endif | ||
419 | /* options */ | ||
420 | set_option, | ||
421 | }; | 415 | }; |
422 | 416 | ||
423 | int plugin_load(const char* plugin, void* parameter) | 417 | int plugin_load(const char* plugin, void* parameter) |