typedef struct {
time_t session_start_time;
time_t session_end_time;
- uint16_t session_connected_time;
- uint16_t session_scan_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;
/**< 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
BLUETOOTH_EVENT_AVRCP_SETTING_REPEAT_STATUS, /**<AVRCP service player repeat status event*/
BLUETOOTH_EVENT_AVRCP_SETTING_SCAN_STATUS, /**<AVRCP service player scan status event*/
BLUETOOTH_EVENT_AVRCP_DELAY_CHANGED, /**<AVRCP service transport delay changed event*/
+ BLUETOOTH_EVENT_AVRCP_VOLUME_CHANGED, /**<AVRCP service transport volume changed event*/
+ BLUETOOTH_EVENT_AUDIO_AVC_STATUS, /**<Absolute Volume Control status changed event*/
BLUETOOTH_EVENT_HF_CONNECTED,
BLUETOOTH_EVENT_HF_DISCONNECTED,
BLUETOOTH_EVENT_HF_AUDIO_CONNECTED,
BLUETOOTH_EVENT_HF_CALLSETUP_DIALING,
BLUETOOTH_EVENT_HF_CALLSETUP_ALERTING,
BLUETOOTH_EVENT_HF_CIEV_DEVICE_STATUS_CHANGED,
+ BLUETOOTH_EVENT_AUDIO_AVC_MODE_CHANGED,
BLUETOOTH_HID_CONNECTED = BLUETOOTH_EVENT_HID_BASE, /**< Input connectd event*/
BLUETOOTH_HID_DISCONNECTED, /**< Input disconnectd event*/
BLUETOOTH_EVENT_OTP_WRITE_CHAR_VAL, /* OTP Write Value Response */
BLUETOOTH_EVENT_OTP_INDICATION, /* OTP Indication */
BLUETOOTH_EVENT_OTC_STATE_CHANGED, /* OTC Connection State Changed Event */
+ BLUETOOTH_EVENT_MESH_SCAN_STARTED = BLUETOOTH_EVENT_MESH_BASE,
+ BLUETOOTH_EVENT_MESH_SCAN_FINISHED,
+ BLUETOOTH_EVENT_MESH_SCAN_RESULT,
+ BLUETOOTH_EVENT_MESH_AUTHENTICATION_REQUEST,
+ BLUETOOTH_EVENT_MESH_PROVISIONING_FINISHED,
+ BLUETOOTH_EVENT_MESH_NODE_BROWSED,
+ BLUETOOTH_EVENT_MESH_NODE_VENDOR_FEATURES,
+ BLUETOOTH_EVENT_MESH_NODE_KEY_CONFIGURED,
+ BLUETOOTH_EVENT_MESH_NODE_TTL_CONFIGURED,
+ BLUETOOTH_EVENT_MESH_MODEL_APPKEY_BIND,
+ BLUETOOTH_EVENT_MESH_MODEL_APPKEY_LIST,
+ BLUETOOTH_EVENT_MESH_MODEL_SUBSCRIPTION_LIST,
+ BLUETOOTH_EVENT_MESH_MODEL_SUBSCRIPTION_CONFGURED,
+ BLUETOOTH_EVENT_MESH_MODEL_VIRTUAL_SUBSCRIPTION_CONFGURED,
+ BLUETOOTH_EVENT_MESH_MODEL_PUBLICATION_STATUS,
} bluetooth_event_type_t;
/**
bluetooth_device_address_t device_addr;
char *svc_path;
bluetooth_gatt_service_change_type_t change_type;
+#ifdef TIZEN_GATT_CLIENT
+ int inst_id;
+ char *uuid;
+#endif
} bt_gatt_service_change_t;
/**
int bluetooth_disconnect_le(const bluetooth_device_address_t *device_address);
#endif
+int bluetooth_get_gatt_data_batching_available_packets(
+ int *available_packets);
+
+int bluetooth_enable_gatt_data_batching(
+ const bluetooth_device_address_t *device_address, int packet_threshold, int timeout);
+
+int bluetooth_disable_gatt_data_batching(
+ const bluetooth_device_address_t *device_address);
+
/**
* @fn int bluetooth_gatt_discover_characteristic_descriptor(const char *characteristic_handle);
*