comparison src/evdev-plug/ed_types.h @ 422:5e46b57d1eda trunk

[svn] - added evdev-plug, written-from-scratch plugin that allows to control the player via event devices on linux systems
author giacomo
date Sun, 14 Jan 2007 17:55:24 -0800
parents
children
comparison
equal deleted inserted replaced
421:1a82af4f13cf 422:5e46b57d1eda
1 /*
2 *
3 * Author: Giacomo Lozito <james@develia.org>, (C) 2005-2007
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 */
20
21 #ifndef _I_ED_TYPES_H
22 #define _I_ED_TYPES_H 1
23
24 #include "ed_common.h"
25 #include <glib.h>
26
27 typedef struct
28 {
29 gchar * name;
30 gchar * filename;
31 gchar * phys;
32
33 gint reg;
34
35 gint is_custom;
36 gboolean is_active;
37
38 gpointer * bindings;
39 }
40 ed_device_info_t;
41
42 typedef struct
43 {
44 gint fd;
45
46 GIOChannel * iochan;
47 guint iochan_sid;
48 gboolean is_listening;
49
50 ed_device_info_t * info;
51 }
52 ed_device_t;
53
54 typedef struct
55 {
56 guint type;
57 guint code;
58 gint value;
59 }
60 ed_inputevent_t;
61
62 #endif /* !_I_ED_TYPES_H */