Diff between 97adab626ea6792fb2b28c4f4dadb4468b1a666e and 87d912e788151822a7b70476eed188652888422d

Changed Files

File Additions Deletions Status
src/device.c +8 -0 modified
src/device.h +0 -8 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 8510237..656f109 100644
--- a/src/device.c
+++ b/src/device.c
@@ -82,6 +82,14 @@ struct bonding_req {
 	struct btd_device *device;
 };
 
+typedef enum {
+	AUTH_TYPE_PINCODE,
+	AUTH_TYPE_PASSKEY,
+	AUTH_TYPE_CONFIRM,
+	AUTH_TYPE_NOTIFY_PASSKEY,
+	AUTH_TYPE_NOTIFY_PINCODE,
+} auth_type_t;
+
 struct authentication_req {
 	auth_type_t type;
 	void *cb;
diff --git a/src/device.h b/src/device.h
index 0c16c18..d23f40d 100644
--- a/src/device.h
+++ b/src/device.h
@@ -26,14 +26,6 @@
 
 struct btd_device;
 
-typedef enum {
-	AUTH_TYPE_PINCODE,
-	AUTH_TYPE_PASSKEY,
-	AUTH_TYPE_CONFIRM,
-	AUTH_TYPE_NOTIFY_PASSKEY,
-	AUTH_TYPE_NOTIFY_PINCODE,
-} auth_type_t;
-
 struct btd_device *device_create(struct btd_adapter *adapter,
 				const char *address, uint8_t bdaddr_type);