comparison src/evdev-plug/ed_internals.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 581a057768c2
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_INTERNALS_H
22 #define _I_ED_INTERNALS_H 1
23
24 #include "ed_types.h"
25 #include "ed_common.h"
26 #include <glib.h>
27
28 #define ED_DEVCHECK_OK 0
29 #define ED_DEVCHECK_ABSENT 1
30
31 typedef enum
32 {
33 ED_CONFIG_INFO_END = -1,
34 ED_CONFIG_INFO_FILENAME = 0,
35 ED_CONFIG_INFO_PHYS,
36 ED_CONFIG_INFO_ISCUSTOM,
37 ED_CONFIG_INFO_ISACTIVE
38 }
39 ed_config_info_t;
40
41 ed_device_t * ed_device_new ( gchar * , gchar * , gchar * , gint );
42 gint ed_device_delete ( ed_device_t * );
43
44 ed_device_info_t * ed_device_info_new ( gchar * , gchar * , gchar * , gint );
45 gint ed_device_info_delete ( ed_device_info_t * );
46
47 gint ed_device_start_listening ( ed_device_t * );
48 void ed_device_start_listening_from_config ( void );
49 gint ed_device_stop_listening ( ed_device_t * );
50 gint ed_device_stop_listening_from_info ( ed_device_info_t * );
51 gint ed_device_stop_listening_all ( gboolean );
52 gboolean ed_device_check_listening_from_info ( ed_device_info_t * );
53
54 gboolean ed_inputevent_check_equality( ed_inputevent_t * , ed_inputevent_t * );
55 gboolean ed_device_info_check_equality( ed_device_info_t * , ed_device_info_t * );
56
57 /* these function return a GList of ed_device_info_t items */
58 GList * ed_device_get_list_from_system ( void );
59 GList * ed_device_get_list_from_config ( void );
60 void ed_device_free_list ( GList * );
61
62 gint ed_device_check ( GList * , gchar * , gchar ** , gchar ** );
63
64 gint ed_config_save_from_list ( GList * );
65
66 #endif /* !_I_ED_INTERNALS_H */