X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-api.h;h=50ee9a9aeb8796dd7bc4c80c6c7e7b8005b88269;hb=a8373d97e95041c7ea9ea0088021f4f1874bf754;hp=24ffa7b10321df5c3c4ed99ca10e0862ca48c451;hpb=a1fa4179917cc65ee46b8a24b15f739c4ebf1b28;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-api.h b/include/bluetooth-api.h index 24ffa7b..50ee9a9 100644 --- a/include/bluetooth-api.h +++ b/include/bluetooth-api.h @@ -327,13 +327,24 @@ 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; + uint16_t session_connected_time; + uint16_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; + uint time; +} bt_battery_app_data; + /** * Adapter state */ @@ -711,6 +722,7 @@ typedef enum { BLUETOOTH_EVENT_ENABLED, /**< Bluetooth event adpater enabled */ BLUETOOTH_EVENT_DISABLED, /**< Bluetooth event adpater disabled */ + BLUETOOTH_EVENT_DISABLED_BATTERY_DATA, /**< Bluetooth event adapter disabled battery data*/ BLUETOOTH_EVENT_LE_ENABLED, /**< Bluetooth event adpater enabled */ BLUETOOTH_EVENT_LE_DISABLED, /**< Bluetooth event adpater disabled */ BLUETOOTH_EVENT_LOCAL_NAME_CHANGED, /**< Bluetooth event local name changed*/ @@ -833,6 +845,7 @@ typedef enum { BLUETOOTH_EVENT_GATT_DISCONNECTED, /**