Move c/h files implementing/defining standard library stuff into a new libc directory...
[kugel-rb.git] / apps / plugins / lib / pluginlib_actions.h
blobcc5f8b4eb8fde9b0a15a2924cf3dd9f500d97379
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Jonathan Gordon
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.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
23 #ifndef __PLUGINLIB_ACTIONS_H__
24 #define __PLUGINLIB_ACTIONS_H__
26 #include "config.h"
27 #include "plugin.h"
28 #include "action.h"
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,
41 PLA_INC,
42 PLA_DEC,
43 PLA_INC_REPEAT,
44 PLA_DEC_REPEAT,
46 PLA_QUIT,
47 PLA_START,
48 PLA_MENU,
49 PLA_FIRE,
50 PLA_FIRE_REPEAT,
52 LAST_PLUGINLIB_ACTION
55 #if defined(HAVE_REMOTE_LCD)
56 extern const struct button_mapping remote_directions[];
57 #endif
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[];
61 extern const struct button_mapping generic_increase_decrease[];
63 int pluginlib_getaction(int timeout,
64 const struct button_mapping *plugin_contexts[],
65 int count);
67 #endif /* __PLUGINLIB_ACTIONS_H__ */