From: DoHyun Pyun Date: Thu, 25 Aug 2016 02:22:45 +0000 (+0900) Subject: Fix TV profile's build error X-Git-Tag: submit/tizen/20160825.004351~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F85392%2F1;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix TV profile's build error Change-Id: I4cd2aafe12920630fd73ed14604a41f25bcbf287 Signed-off-by: DoHyun Pyun --- diff --git a/include/tv/bluetooth_internal.h b/include/tv/bluetooth_internal.h index 24243e0..66e7d31 100644 --- a/include/tv/bluetooth_internal.h +++ b/include/tv/bluetooth_internal.h @@ -2094,8 +2094,7 @@ int bt_device_le_conn_update(const char *device_address, * @see bt_initialize() * @see bt_hid_device_deactivate() */ -int bt_hid_device_activate(bt_hid_device_connection_state_changed_cb callback, - void *user_data); +int bt_hid_device_activate(bt_hid_device_connection_state_changed_cb callback, void *user_data); /** * @ingroup CAPI_NETWORK_BLUETOOTH_HID_MODULE diff --git a/include/tv/bluetooth_type.h b/include/tv/bluetooth_type.h index 9ed88ac..68c21f3 100644 --- a/include/tv/bluetooth_type.h +++ b/include/tv/bluetooth_type.h @@ -1526,10 +1526,8 @@ typedef void (*bt_hid_host_connection_state_changed_cb) (int result, bool connec * @see bt_hdp_set_connection_state_changed_cb() * @see bt_hdp_unset_connection_state_changed_cb() */ -typedef void (*bt_hdp_connected_cb) (int result, - const char *remote_address, const char *app_id, - bt_hdp_channel_type_e type, unsigned int channel, - void *user_data); +typedef void (*bt_hdp_connected_cb) (int result, const char *remote_address, const char *app_id, + bt_hdp_channel_type_e type, unsigned int channel, void *user_data); /** * @ingroup CAPI_NETWORK_BLUETOOTH_HDP_MODULE @@ -1761,7 +1759,7 @@ typedef void (*bt_gatt_connection_state_changed_cb)(int result, bool connected, * @param[in] len The length of @a value * @param[in] user_data The user data passed from the registration function * - * @see bt_gatt_server_set_write_value_requested_cb()a + * @see bt_gatt_server_set_write_value_requested_cb() * @see bt_gatt_server_send_response() */ typedef void (*bt_gatt_server_write_value_requested_cb) (const char *remote_address, diff --git a/include/tv/bluetooth_type_internal.h b/include/tv/bluetooth_type_internal.h index f9386eb..55b7555 100644 --- a/include/tv/bluetooth_type_internal.h +++ b/include/tv/bluetooth_type_internal.h @@ -154,6 +154,21 @@ typedef enum { typedef void (*bt_adapter_manufacturer_data_changed_cb) (char *data, int len, void *user_data); +/** + * @internal + * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE + * @brief Called repeatedly when you get the devices connected with specific profile. + * @since_tizen 3.0 + * + * @param[in] remote_address The address of remote device + * @param[in] user_data The user data passed from the callback registration function + * @return @c true to continue with the next iteration of the loop, + * \n @c false to break out of the loop. + * @pre bt_adapter_foreach_profile_connected_devices() will invoke this function. + * @see bt_adapter_foreach_profile_connected_devices() + */ +typedef bool (*bt_adapter_profile_connected_devices_cb)(const char *remote_address, void *user_data); + /** * @ingroup CAPI_NETWORK_BLUETOOTH_DPM_MODULE * @brief DPM BT allowance state @@ -180,7 +195,7 @@ typedef enum { BT_DPM_ENABLE = 1, /**< DPM Policy status enabled. */ BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */ - BT_DPM_FALSE = 0, /**< DPM Policy status false. */ + BT_DPM_FALSE = 0, /**< DPM Policy status false. */ BT_DPM_TRUE = 1, /**< DPM Policy status true. */ } bt_dpm_status_e; @@ -362,20 +377,57 @@ typedef void (*bt_hid_device_connection_state_changed_cb) (int result, */ typedef void (*bt_hid_device_data_received_cb)(const bt_hid_device_received_data_s *data, void *user_data); +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE + * @brief Trusted Profile enumeration. + * @since_tizen 3.0 + * + * @see bt_device_set_profile_trusted() + * @see bt_device_get_profile_trusted() + */ +typedef enum { + BT_TRUSTED_PROFILE_PBAP = 1, + BT_TRUSTED_PROFILE_MAP, + BT_TRUSTED_PROFILE_SAP, + BT_TRUSTED_PROFILE_ALL = 0xFFFFFFFF, +} bt_trusted_profile_t; + +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE + * @brief Called when Trusted Profiles is changed. + * @since_tizen 3.0 + * + * @param[in] result The result of supported profile callback + * @param[in] remote_address Address of remote device + * @param[in] trusted_profiles Trusted profile FLAG + * @param[in] user_data The user data passed from the callback registration function + * @see bt_device_set_trusted_profile_cb() + * @see bt_device_unset_trusted_profile_cb() + */ +typedef void (*bt_device_trusted_profiles_cb) + (int result, char *remote_address, int trusted_profile, bool supported, bool trusted,void *user_data); + + /** * @internal + * @ingroup * @brief IPSP Init state changed callback + * @since_tizen 3.0 */ typedef void (*bt_ipsp_init_state_changed_cb) (int result, bool ipsp_initialized, void *user_data); /** * @internal + * @ingroup + * @since_tizen 3.0 + * @brief IPSP Connection state changed callback */ typedef void (*bt_ipsp_connection_state_changed_cb) (int result, bool connected, const char *remote_address, const char *iface_name, void *user_data); + /** * @} */