summaryrefslogtreecommitdiffstats
path: root/dundee/device.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-12-20 15:23:19 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-05-22 18:44:46 +0200
commit5091c3caffe6d6ba1b45cf1ed1311ed165c6a1f9 (patch)
treef815640166c04404580e32741e62243058defbad /dundee/device.c
parent3e69d5857021a125a1559dc72ee4363d20a57124 (diff)
downloadofono-5091c3caffe6d6ba1b45cf1ed1311ed165c6a1f9.tar.bz2
dundee: Add driver helper functions
Diffstat (limited to 'dundee/device.c')
-rw-r--r--dundee/device.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/dundee/device.c b/dundee/device.c
index 9ed16872..1a83f762 100644
--- a/dundee/device.c
+++ b/dundee/device.c
@@ -41,6 +41,7 @@ struct dundee_device {
struct dundee_device_driver *driver;
gboolean registered;
+ void *data;
};
const char *__dundee_device_get_path(struct dundee_device *device)
@@ -135,6 +136,23 @@ void dundee_device_unregister(struct dundee_device *device)
g_hash_table_remove(device_hash, device->path);
}
+void dundee_device_set_data(struct dundee_device *device, void *data)
+{
+ device->data = data;
+}
+
+void *dundee_device_get_data(struct dundee_device *device)
+{
+ return device->data;
+}
+
+int dundee_device_set_name(struct dundee_device *device, const char *name)
+{
+ DBG("%p name %s", device, name);
+
+ return 0;
+}
+
static void device_shutdown(gpointer key, gpointer value, gpointer user_data)
{
struct dundee_device *device = value;