summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-05-04 09:55:29 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-05-04 09:55:29 +0000
commit319cc14e14afcce95aa9299fd3b357d8d4e596cd (patch)
tree3140d3c0b4f43113ab522fe46bc1eb33d05d7046 /input
parent223aa9581953c03f371a10b3f0555f7fa132f690 (diff)
Input Service support for phones
Diffstat (limited to 'input')
-rw-r--r--input/device.c3
-rw-r--r--input/manager.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/input/device.c b/input/device.c
index cd8662db..edf8c475 100644
--- a/input/device.c
+++ b/input/device.c
@@ -195,6 +195,9 @@ static const char *create_input_path(uint8_t major, uint8_t minor)
static int next_id = 0;
switch (major) {
+ case 0x02: /* Phone */
+ strcpy(subpath, "phone");
+ break;
case 0x04: /* Audio */
switch (minor) {
/* FIXME: Testing required */
diff --git a/input/manager.c b/input/manager.c
index f9c273fe..de4ad0e3 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -800,6 +800,7 @@ static DBusHandlerResult create_device(DBusConnection *conn,
switch (cls & 0x1f00) {
case 0x0500: /* Peripheral */
+ case 0x0200: /* Phone */
if (get_handles(pr, pnp_uuid, pnp_handle_reply) < 0) {
pending_req_free(pr);
return err_not_supported(conn, msg);