Philips GoGear SA9200 port. Working bootloader and normal builds, including sound...
[Rockbox.git] / apps / plugins / lib / pluginlib_actions.h
blob601cd73a8cefa7be644fd2ca5b6b4399bc7d24c5
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Jonathan Gordon
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
21 #ifndef __PLUGINLIB_ACTIONS_H__
22 #define __PLUGINLIB_ACTIONS_H__
24 #include "config.h"
25 #include "plugin.h"
26 #include "action.h"
28 /* PLA stands for Plugin Lib Action :P */
29 enum {
30 PLA_UP = LAST_ACTION_PLACEHOLDER+1,
31 PLA_DOWN,
32 PLA_LEFT,
33 PLA_RIGHT,
34 PLA_UP_REPEAT,
35 PLA_DOWN_REPEAT,
36 PLA_LEFT_REPEAT,
37 PLA_RIGHT_REPEAT,
39 PLA_INC,
40 PLA_DEC,
41 PLA_INC_REPEAT,
42 PLA_DEC_REPEAT,
44 PLA_QUIT,
45 PLA_START,
46 PLA_MENU,
47 PLA_FIRE,
48 PLA_FIRE_REPEAT,
50 LAST_PLUGINLIB_ACTION
53 #if defined(HAVE_REMOTE_LCD)
54 extern const struct button_mapping remote_directions[];
55 #endif
56 extern const struct button_mapping generic_directions[];
57 extern const struct button_mapping generic_left_right_fire[];
58 extern const struct button_mapping generic_actions[];
59 extern const struct button_mapping generic_increase_decrease[];
61 int pluginlib_getaction(const struct plugin_api *api,int timeout,
62 const struct button_mapping *plugin_contexts[],
63 int count);
65 #endif /* __PLUGINLIB_ACTIONS_H__ */