Jonathan Gordon | 7b8b0ff | 2006-11-16 02:53:44 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2006 Jonathan Gordon |
| 11 | * |
| 12 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 13 | * This program is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License |
| 15 | * as published by the Free Software Foundation; either version 2 |
| 16 | * of the License, or (at your option) any later version. |
Jonathan Gordon | 7b8b0ff | 2006-11-16 02:53:44 +0000 | [diff] [blame] | 17 | * |
| 18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 19 | * KIND, either express or implied. |
| 20 | * |
| 21 | ****************************************************************************/ |
| 22 | |
| 23 | #ifndef __PLUGINLIB_ACTIONS_H__ |
| 24 | #define __PLUGINLIB_ACTIONS_H__ |
| 25 | |
| 26 | #include "config.h" |
| 27 | #include "plugin.h" |
| 28 | #include "action.h" |
| 29 | |
| 30 | /* PLA stands for Plugin Lib Action :P */ |
| 31 | enum { |
| 32 | PLA_UP = LAST_ACTION_PLACEHOLDER+1, |
| 33 | PLA_DOWN, |
| 34 | PLA_LEFT, |
| 35 | PLA_RIGHT, |
| 36 | PLA_UP_REPEAT, |
| 37 | PLA_DOWN_REPEAT, |
| 38 | PLA_LEFT_REPEAT, |
| 39 | PLA_RIGHT_REPEAT, |
Kevin Ferrare | ebe5acf | 2008-01-23 08:25:04 +0000 | [diff] [blame] | 40 | |
| 41 | PLA_INC, |
| 42 | PLA_DEC, |
| 43 | PLA_INC_REPEAT, |
| 44 | PLA_DEC_REPEAT, |
| 45 | |
Jonathan Gordon | 7b8b0ff | 2006-11-16 02:53:44 +0000 | [diff] [blame] | 46 | PLA_QUIT, |
| 47 | PLA_START, |
| 48 | PLA_MENU, |
| 49 | PLA_FIRE, |
| 50 | PLA_FIRE_REPEAT, |
| 51 | |
| 52 | LAST_PLUGINLIB_ACTION |
| 53 | }; |
| 54 | |
Kevin Ferrare | e68a2e6 | 2007-07-19 03:49:43 +0000 | [diff] [blame] | 55 | #if defined(HAVE_REMOTE_LCD) |
Jens Arnold | a8af83e | 2007-09-20 17:42:28 +0000 | [diff] [blame] | 56 | extern const struct button_mapping remote_directions[]; |
Kevin Ferrare | e68a2e6 | 2007-07-19 03:49:43 +0000 | [diff] [blame] | 57 | #endif |
Jens Arnold | a8af83e | 2007-09-20 17:42:28 +0000 | [diff] [blame] | 58 | extern const struct button_mapping generic_directions[]; |
| 59 | extern const struct button_mapping generic_left_right_fire[]; |
| 60 | extern const struct button_mapping generic_actions[]; |
Kevin Ferrare | ebe5acf | 2008-01-23 08:25:04 +0000 | [diff] [blame] | 61 | extern const struct button_mapping generic_increase_decrease[]; |
Jonathan Gordon | 7b8b0ff | 2006-11-16 02:53:44 +0000 | [diff] [blame] | 62 | |
Steve Bavin | 6526577 | 2008-05-13 09:57:56 +0000 | [diff] [blame] | 63 | int pluginlib_getaction(const struct plugin_api *api,int timeout, |
Jonathan Gordon | 7b8b0ff | 2006-11-16 02:53:44 +0000 | [diff] [blame] | 64 | const struct button_mapping *plugin_contexts[], |
| 65 | int count); |
| 66 | |
| 67 | #endif /* __PLUGINLIB_ACTIONS_H__ */ |