summaryrefslogtreecommitdiff
path: root/include/device.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-24 10:47:05 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-24 10:47:05 +0100
commit180502c98a76dff1ac48b4de5203fff4b6644418 (patch)
treea7050960978b12ed054321aa782f75f011a4792d /include/device.h
parent6e099bc9ea968ac8b7d0328ca4a347f64250dfe5 (diff)
downloadconnman-180502c98a76dff1ac48b4de5203fff4b6644418.tar.gz
connman-180502c98a76dff1ac48b4de5203fff4b6644418.tar.bz2
connman-180502c98a76dff1ac48b4de5203fff4b6644418.zip
Add functions for handling device driver data
Diffstat (limited to 'include/device.h')
-rw-r--r--include/device.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h
index e59eb3e6..1645a085 100644
--- a/include/device.h
+++ b/include/device.h
@@ -78,6 +78,17 @@ struct connman_device {
extern int connman_device_set_powered(struct connman_device *device,
gboolean powered);
+static inline void *connman_device_get_data(struct connman_device *device)
+{
+ return device->driver_data;
+}
+
+static inline void connman_device_set_data(struct connman_device *device,
+ void *data)
+{
+ device->driver_data = data;
+}
+
struct connman_device_driver {
const char *name;
enum connman_device_type type;