From 7d76a4c7336d3694ec259bd409a725c3e3b9edd0 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 12 Jan 2009 11:13:27 +0100 Subject: Add BT_SECURITY and BT_DEFER_SETUP definitions --- include/bluetooth.h | 19 +++++++++++++++---- 1 file 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 */ -- cgit