X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fbluetooth-api.h;h=a1335c13bcd844980ed2f14cb2506d25dd0bd960;hb=34389ab8d8f647d553404f074e2e93e62480e1f4;hp=84036655535478fa291096a66826b9bd33e35bde;hpb=e8e5b1ab3fa909f922a6a10540e39e0a45619b07;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/include/bluetooth-api.h b/include/bluetooth-api.h index 8403665..a1335c1 100644 --- a/include/bluetooth-api.h +++ b/include/bluetooth-api.h @@ -22,6 +22,8 @@ #include #include #include +#include + #ifdef __cplusplus extern "C" { @@ -321,6 +323,29 @@ typedef struct { } bluetooth_device_pin_code_t; /** + * This is data for battery usage monitoring + */ + +typedef struct { + 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; + uint32_t rx_bytes; + uint32_t tx_bytes; + uint time; +} bt_battery_app_data; + +/** * Adapter state */ typedef enum { @@ -697,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*/ @@ -819,6 +845,7 @@ typedef enum { BLUETOOTH_EVENT_GATT_DISCONNECTED, /**