diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-07-09 14:36:49 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:36:22 -0300 |
commit | ea245383ac6650cbf34c327ed095d956b84ac5fb (patch) | |
tree | 494624c9886a482f0438cf69ab8e56b1f5f5a3a1 /hcid | |
parent | 2203f153c53189ec1c30df99b717e035681196e6 (diff) |
Moving struct device to device.c
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/device.c | 19 | ||||
-rw-r--r-- | hcid/device.h | 19 |
2 files changed, 19 insertions, 19 deletions
diff --git a/hcid/device.c b/hcid/device.c index 8d63590c..966d9ec0 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -68,6 +68,25 @@ #define DEVICE_INTERFACE "org.bluez.Device" +struct device { + struct btd_device dev; + gchar *address; + gchar *path; + struct adapter *adapter; + GSList *uuids; + GSList *drivers; + gboolean temporary; + struct agent *agent; + guint disconn_timer; + int discov_active; /* Service discovery active */ + char *discov_requestor; /* discovery requestor unique name */ + guint discov_listener; + + /* For Secure Simple Pairing */ + uint8_t cap; + uint8_t auth; +}; + struct browse_req { DBusConnection *conn; DBusMessage *msg; diff --git a/hcid/device.h b/hcid/device.h index 2f1daecf..841ad866 100644 --- a/hcid/device.h +++ b/hcid/device.h @@ -30,25 +30,6 @@ struct btd_device { bdaddr_t dst; }; -struct device { - struct btd_device dev; - gchar *address; - gchar *path; - struct adapter *adapter; - GSList *uuids; - GSList *drivers; - gboolean temporary; - struct agent *agent; - guint disconn_timer; - int discov_active; /* Service discovery active */ - char *discov_requestor; /* discovery requestor unique name */ - guint discov_listener; - - /* For Secure Simple Pairing */ - uint8_t cap; - uint8_t auth; -}; - struct device *device_create(DBusConnection *conn, struct adapter *adapter, const gchar *address); void device_remove(DBusConnection *conn, struct device *device); |