A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2006 Jonathan Gordon
11*
12*
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.
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 */
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,
40
41 PLA_CANCEL,
42 PLA_EXIT,
43 PLA_SELECT,
44 PLA_SELECT_REL,
45 PLA_SELECT_REPEAT,
46
47#ifdef HAVE_SCROLLWHEEL
48 PLA_SCROLL_FWD,
49 PLA_SCROLL_FWD_REPEAT,
50 PLA_SCROLL_BACK,
51 PLA_SCROLL_BACK_REPEAT,
52#endif
53
54 LAST_PLUGINLIB_ACTION
55};
56
57#if defined(HAVE_REMOTE_LCD)
58extern const struct button_mapping pla_remote_ctx[];
59#endif
60extern const struct button_mapping pla_main_ctx[];
61
62int pluginlib_getaction(int timeout,
63 const struct button_mapping *plugin_contexts[],
64 int count);
65
66#endif /* __PLUGINLIB_ACTIONS_H__ */