summaryrefslogtreecommitdiffstats
path: root/input/fakehid.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-23 10:34:16 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-23 10:34:16 +0200
commit5285b3f4bf029f86b2e22c24428fa92315267897 (patch)
treeee56e098a8331959740cb77c98034329ecef9d93 /input/fakehid.c
parentf36aa56e0c6a3c780e97a9f9bdc84a97b8406322 (diff)
Input plugin fixes and cleanup
This patch fixes all known issues caused by converting the input plugin to use BtIO.
Diffstat (limited to 'input/fakehid.c')
-rw-r--r--input/fakehid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input/fakehid.c b/input/fakehid.c
index 077dc21f..207f78d5 100644
--- a/input/fakehid.c
+++ b/input/fakehid.c
@@ -366,7 +366,7 @@ struct fake_hid *get_fake_hid(uint16_t vendor, uint16_t product)
return NULL;
}
-int fake_hid_connadd(struct fake_input *fake, int intr_sk,
+int fake_hid_connadd(struct fake_input *fake, GIOChannel *intr_io,
struct fake_hid *fake_hid)
{
if (fake_hid->setup_uinput(fake, fake_hid)) {
@@ -374,7 +374,7 @@ int fake_hid_connadd(struct fake_input *fake, int intr_sk,
return ENOMEM;
}
- fake->io = g_io_channel_unix_new(intr_sk);
+ fake->io = g_io_channel_ref(intr_io);
g_io_channel_set_close_on_unref(fake->io, TRUE);
g_io_add_watch(fake->io, G_IO_IN | G_IO_ERR | G_IO_HUP | G_IO_NVAL,
(GIOFunc) fake_hid->event, fake);