projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e099bc
)
Add functions for handling device driver data
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 24 Dec 2008 09:47:05 +0000
(10:47 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 24 Dec 2008 09:47:05 +0000
(10:47 +0100)
include/device.h
patch
|
blob
|
history
diff --git
a/include/device.h
b/include/device.h
index
e59eb3e
..
1645a08
100644
(file)
--- 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;