diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-12 11:13:27 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-12 11:13:27 +0100 |
commit | 7d76a4c7336d3694ec259bd409a725c3e3b9edd0 (patch) | |
tree | 0db2a6167fd2b3919b8bddadb04ba406ef322793 | |
parent | c4338c0b7a46d6288e350b8c05fc02ee28b4bdbc (diff) |
Add BT_SECURITY and BT_DEFER_SETUP definitions
-rw-r--r-- | include/bluetooth.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/include/bluetooth.h b/include/bluetooth.h index d4f419e4..eeb0e49d 100644 --- a/include/bluetooth.h +++ b/include/bluetooth.h @@ -41,10 +41,6 @@ extern "C" { #define PF_BLUETOOTH AF_BLUETOOTH #endif -#ifndef SOL_BLUETOOTH -#define SOL_BLUETOOTH 274 -#endif - #define BTPROTO_L2CAP 0 #define BTPROTO_HCI 1 #define BTPROTO_SCO 2 @@ -59,6 +55,21 @@ extern "C" { #define SOL_SCO 17 #define SOL_RFCOMM 18 +#ifndef SOL_BLUETOOTH +#define SOL_BLUETOOTH 274 +#endif + +#define BT_SECURITY 3 +struct bt_security { + uint8_t level; +}; +#define BT_SECURITY_SDP 0 +#define BT_SECURITY_LOW 1 +#define BT_SECURITY_MEDIUM 2 +#define BT_SECURITY_HIGH 3 + +#define BT_DEFER_SETUP 5 + /* Connection and socket states */ enum { BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */ |