summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/pluginlib_actions.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-31 17:47:56 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-31 17:47:56 +0000
commit29d7db4a46a773793d83cca9583f6aa403f5fa3d (patch)
treef094238dc57392d0574bf1922236e4456b2edd5c /apps/plugins/lib/pluginlib_actions.c
parentc69331ef32171966b19f4348c72539d4c6a149ba (diff)
downloadrockbox-29d7db4a46a773793d83cca9583f6aa403f5fa3d.tar.gz
rockbox-29d7db4a46a773793d83cca9583f6aa403f5fa3d.zip
Replace use of CONTEXT_CUSTOM by get_custom_action with new CONTEXT_PLUGIN, to prevent conflicts with core contexts using CONTEXT_CUSTOM, and use CONTEXT_TREE as the base context for PictureFlow's custom contexts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21149 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/pluginlib_actions.c')
-rw-r--r--apps/plugins/lib/pluginlib_actions.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index 550cd56d48..e870c79b9c 100644
--- a/apps/plugins/lib/pluginlib_actions.c
+++ b/apps/plugins/lib/pluginlib_actions.c
@@ -71,7 +71,7 @@ const struct button_mapping remote_directions[] =
71#else 71#else
72 #error pluginlib_actions: Unsupported remote keypad 72 #error pluginlib_actions: Unsupported remote keypad
73#endif 73#endif
74 {CONTEXT_CUSTOM,BUTTON_NONE,BUTTON_NONE} 74 {CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
75}; 75};
76#endif /* HAVE_REMOTE_LCD */ 76#endif /* HAVE_REMOTE_LCD */
77 77
@@ -174,7 +174,7 @@ const struct button_mapping generic_directions[] =
174#else 174#else
175 #error pluginlib_actions: Unsupported keypad 175 #error pluginlib_actions: Unsupported keypad
176#endif 176#endif
177 {CONTEXT_CUSTOM,BUTTON_NONE,BUTTON_NONE} 177 {CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
178}; 178};
179 179
180const struct button_mapping generic_left_right_fire[] = 180const struct button_mapping generic_left_right_fire[] =
@@ -296,7 +296,7 @@ const struct button_mapping generic_left_right_fire[] =
296#else 296#else
297 #error pluginlib_actions: Unsupported keypad 297 #error pluginlib_actions: Unsupported keypad
298#endif 298#endif
299 {CONTEXT_CUSTOM,BUTTON_NONE,BUTTON_NONE} 299 {CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
300}; 300};
301 301
302/* these were taken from the bubbles plugin, so may need tweaking */ 302/* these were taken from the bubbles plugin, so may need tweaking */
@@ -457,7 +457,7 @@ const struct button_mapping generic_actions[] =
457#else 457#else
458 #error pluginlib_actions: Unsupported keypad 458 #error pluginlib_actions: Unsupported keypad
459#endif 459#endif
460 {CONTEXT_CUSTOM,BUTTON_NONE,BUTTON_NONE} 460 {CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
461}; 461};
462 462
463const struct button_mapping generic_increase_decrease[] = 463const struct button_mapping generic_increase_decrease[] =
@@ -537,7 +537,7 @@ const struct button_mapping generic_increase_decrease[] =
537#else 537#else
538#error pluginlib_actions: Unsupported keypad 538#error pluginlib_actions: Unsupported keypad
539#endif 539#endif
540 {CONTEXT_CUSTOM,BUTTON_NONE,BUTTON_NONE} 540 {CONTEXT_PLUGIN,BUTTON_NONE,BUTTON_NONE}
541}; 541};
542 542
543static struct button_mapping **plugin_context_order; 543static struct button_mapping **plugin_context_order;
@@ -560,5 +560,5 @@ int pluginlib_getaction(int timeout,
560 plugin_context_order = (struct button_mapping **)plugin_contexts; 560 plugin_context_order = (struct button_mapping **)plugin_contexts;
561 plugin_context_count = count; 561 plugin_context_count = count;
562 last_context = 0; 562 last_context = 0;
563 return rb->get_custom_action(CONTEXT_CUSTOM,timeout,get_context_map); 563 return rb->get_custom_action(CONTEXT_PLUGIN,timeout,get_context_map);
564} 564}