diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-05 14:54:39 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-05 16:11:31 +0300 |
commit | 87d912e788151822a7b70476eed188652888422d (patch) | |
tree | 64c7e74d6c2ab2e15409b4446f5e9880fcbdd9b3 | |
parent | 97adab626ea6792fb2b28c4f4dadb4468b1a666e (diff) | |
download | bluez-87d912e788151822a7b70476eed188652888422d.tar.gz |
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.
-rw-r--r-- | src/device.c | 8 | ||||
-rw-r--r-- | 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); |