X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-api.h;h=aa5ae3b95d031803db52e0de407bf401f58d5583;hb=056495021756aa37041f3e498c79f550d1885a91;hp=30dbdb99c62b5d40084a13cd0f5efe53fb9b0eb4;hpb=ad3cb4b9fcbcf8d1d5ecc0814deaa9991fac6cf9;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-api.h b/include/bluetooth-api.h index 30dbdb9..aa5ae3b 100644 --- a/include/bluetooth-api.h +++ b/include/bluetooth-api.h @@ -62,9 +62,7 @@ extern "C" { #define BLUETOOTH_PIN_CODE_MAX_LENGTH 16 -#ifdef TIZEN_GATT_CLIENT #define BLUETOOTH_GATT_ATT_DATA_LENGTH_MAX 610 /**< GATT ATT value max len */ -#endif /** * This is Bluetooth Connected event role @@ -327,18 +325,22 @@ typedef struct { */ typedef struct { - time_t session_start_time; - time_t session_end_time; - uint16_t session_connected_time; - uint16_t session_scan_time; - GSList *atm_list; + time_t session_start_time; + time_t session_end_time; + uint32_t tx_time; + uint32_t rx_time; + uint32_t idle_time; + uint32_t session_connected_time; + uint32_t session_scan_time; + GSList *atm_list; } bt_battery_data; typedef struct { uid_t uid; pid_t pid; - uint16_t rx_bytes; - uint16_t tx_bytes; + uint32_t rx_bytes; + uint32_t tx_bytes; + uint time; } bt_battery_app_data; /** @@ -516,8 +518,10 @@ typedef enum { * TDS transport Type */ typedef enum { - BLUETOOTH_TDS_TRANSPORT_BT = 0x01, /* Transport type BR-EDR */ - BLUETOOTH_TDS_TRANSPORT_CUSTOM, /* Transport type custom */ + BLUETOOTH_TDS_TRANSPORT_BT = 0x01, /* Transport type BR-EDR */ + BLUETOOTH_TDS_TRANSPORT_CUSTOM, /* Transport type custom */ + BLUETOOTH_TDS_TRANSPORT_WIFI_NAN, /* Wi-Fi Alliance Neighbor Awareness Networking */ + BLUETOOTH_TDS_TRANSPORT_WIFI_SVC_ADV, /* Wi-Fi Alliance Service Advertisement */ /* ... */ BLUETOOTH_TDS_TRANSPORT_INVALID } bluetooth_tds_transport_t; @@ -604,8 +608,8 @@ typedef struct { * Advertising parameters */ typedef struct { - float interval_min; - float interval_max; + int interval_min; + int interval_max; guint8 filter_policy; guint8 type; int tx_power_level; @@ -709,6 +713,8 @@ typedef struct { /**< Base ID for IPSP events */ #define BLUETOOTH_EVENT_MAP_BASE ((int)(BLUETOOTH_EVENT_IPSP_BASE + 0x0020)) /**< Base ID for MAP events */ +#define BLUETOOTH_EVENT_MESH_BASE ((int)(BLUETOOTH_EVENT_MAP_BASE + 0x0020)) + /**< Base ID for MAP events */ /** * Bluetooth event type @@ -831,15 +837,10 @@ typedef enum { BLUETOOTH_EVENT_GATT_READ_DESC, /**