1 $NetBSD: patch-aa,v 1.1.1.1 2009/09/10 20:16:45 wiz Exp $
3 --- src/lib/ic/input-device.c.orig 2008-08-11 16:59:42.000000000 +0000
4 +++ src/lib/ic/input-device.c
10 #include <linux/input.h>
15 @@ -70,6 +72,7 @@ static GObjectClass *parent_class=NULL;
16 #define test_bit(bit, array) (array[bit>>3] & (1<<(bit&0x7)))
18 static gboolean register_trigger_controls(const BtIcInputDevice * const self,int fd) {
20 BtIcTriggerControl *control;
22 guint8 key_bitmask[KEY_MAX/8 + 1];
23 @@ -152,10 +155,12 @@ static gboolean register_trigger_control
31 static gboolean register_abs_range_controls(const BtIcInputDevice * const self,int fd) {
33 BtIcAbsRangeControl *control;
35 guint8 abs_bitmask[ABS_MAX/8 + 1];
36 @@ -220,10 +225,12 @@ static gboolean register_abs_range_contr
39 // create controller instances and register them
44 static gboolean register_controls(const BtIcInputDevice * const self) {
48 guint8 evtype_bitmask[EV_MAX/8 + 1];
49 @@ -280,12 +287,14 @@ static gboolean register_controls(const
59 static gboolean io_handler(GIOChannel *channel,GIOCondition condition,gpointer user_data) {
61 BtIcInputDevice *self=BTIC_INPUT_DEVICE(user_data);
64 @@ -326,6 +335,9 @@ static gboolean io_handler(GIOChannel *c
65 self->priv->io_source=-1;
73 //-- constructor methods