blob: 5f06a0b476bc46069842333b0ffee92c949e4130 [file] [log] [blame]
Jonathan Gordon7b8b0ff2006-11-16 02:53:44 +00001/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2006 Jonathan Gordon
11*
12*
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000013* 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 Gordon7b8b0ff2006-11-16 02:53:44 +000017*
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 */
31enum {
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 Ferrareebe5acf2008-01-23 08:25:04 +000040
41 PLA_INC,
42 PLA_DEC,
43 PLA_INC_REPEAT,
44 PLA_DEC_REPEAT,
45
Jonathan Gordon7b8b0ff2006-11-16 02:53:44 +000046 PLA_QUIT,
47 PLA_START,
48 PLA_MENU,
49 PLA_FIRE,
50 PLA_FIRE_REPEAT,
51
52 LAST_PLUGINLIB_ACTION
53};
54
Kevin Ferraree68a2e62007-07-19 03:49:43 +000055#if defined(HAVE_REMOTE_LCD)
Jens Arnolda8af83e2007-09-20 17:42:28 +000056extern const struct button_mapping remote_directions[];
Kevin Ferraree68a2e62007-07-19 03:49:43 +000057#endif
Jens Arnolda8af83e2007-09-20 17:42:28 +000058extern const struct button_mapping generic_directions[];
59extern const struct button_mapping generic_left_right_fire[];
60extern const struct button_mapping generic_actions[];
Kevin Ferrareebe5acf2008-01-23 08:25:04 +000061extern const struct button_mapping generic_increase_decrease[];
Jonathan Gordon7b8b0ff2006-11-16 02:53:44 +000062
Steve Bavin65265772008-05-13 09:57:56 +000063int pluginlib_getaction(const struct plugin_api *api,int timeout,
Jonathan Gordon7b8b0ff2006-11-16 02:53:44 +000064 const struct button_mapping *plugin_contexts[],
65 int count);
66
67#endif /* __PLUGINLIB_ACTIONS_H__ */