summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-07-21 19:46:42 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:47:58 -0300
commitb76fbc7d29f28a95a9ea25aae1f6f2d9c10adb19 (patch)
treec9fa8e8e8f8f0fe6b22980d7fcca9f102e9c3628 /input
parent473e0415d60fd1c067d3a2741a13424b8b06bae1 (diff)
Adding {driver, priv} list to btd_device and adding
driver as parameter to probe and remove. Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'input')
-rw-r--r--input/manager.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/input/manager.c b/input/manager.c
index dc7440cd..aaa4a3ba 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -162,7 +162,8 @@ static int load_stored(const char *source, const char *destination,
return parse_stored_device_info(value, hidp);
}
-int input_probe(struct btd_device *device, GSList *records)
+int input_probe(struct btd_device_driver *driver,
+ struct btd_device *device, GSList *records)
{
struct adapter *adapter = device_get_adapter(device);
const gchar *path = device_get_path(device);
@@ -196,7 +197,8 @@ done:
return input_device_register(connection, &src, &dst, &hidp, path);
}
-void input_remove(struct btd_device *device)
+void input_remove(struct btd_device_driver *driver,
+ struct btd_device *device)
{
const gchar *path = device_get_path(device);
@@ -205,7 +207,8 @@ void input_remove(struct btd_device *device)
input_device_unregister(connection, path);
}
-int headset_input_probe(struct btd_device *device, GSList *records)
+int headset_input_probe(struct btd_device_driver *driver,
+ struct btd_device *device, GSList *records)
{
struct adapter *adapter = device_get_adapter(device);
const gchar *path = device_get_path(device);
@@ -240,7 +243,8 @@ int headset_input_probe(struct btd_device *device, GSList *records)
return fake_input_register(connection, &src, &dst, ch, path);
}
-void headset_input_remove(struct btd_device *device)
+void headset_input_remove(struct btd_device_driver *driver,
+ struct btd_device *device)
{
const gchar *path = device_get_path(device);