summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/device.c19
-rw-r--r--hcid/device.h19
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);