From 87d912e788151822a7b70476eed188652888422d Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 5 Oct 2012 14:54:39 +0200 Subject: [PATCH] device: Move auth_type_t definition to device.c Bonding is handled in device.c and auth_type_t is private device data not used outside of it. --- src/device.c | 8 ++++++++ src/device.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/device.c b/src/device.c index 8510237f8..656f109f7 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 0c16c189e..d23f40d0f 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); -- 2.47.3