From: DoHyun Pyun Date: Mon, 7 Nov 2016 00:45:39 +0000 (+0900) Subject: Add the hid custom event sending API to the internal header X-Git-Tag: submit/tizen/20161107.085724~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=973d7ceb26d3d52d8f59f3c10006d13ff587f0df;p=platform%2Fcore%2Fapi%2Fbluetooth.git Add the hid custom event sending API to the internal header Change-Id: I43dfdd9f2be4087e6671df68891648754385c757 Signed-off-by: DoHyun Pyun --- diff --git a/include/bluetooth_private.h b/include/bluetooth_private.h index c6cdba1..2023522 100644 --- a/include/bluetooth_private.h +++ b/include/bluetooth_private.h @@ -880,30 +880,6 @@ typedef void (*_bt_le_set_data_length_changed_cb) int bt_device_le_set_data_length_change_cb( _bt_le_set_data_length_changed_cb callback, void *user_data); -/** - * @ingroup CAPI_NETWORK_BLUETOOTH_HID_MODULE - * @brief Sends the custom event data. - * @since_tizen 3.0 - * @privlevel platform - * @privilege %http://tizen.org/privilege/bluetooth.admin - * - * @param[in] remote_address device address of remote device. - * @param[in] report_id reoport id need to be passed to remote device - * @param[in] data The data need to be passed to remote device - * @param[in] data_len The length of the data - * @return 0 on success, otherwise a negative error value. - * @retval #BT_ERROR_NONE Successful - * @retval #BT_ERROR_NOT_INITIALIZED Not initialized - * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #BT_ERROR_OPERATION_FAILED Operation failed - * @retval #BT_ERROR_PERMISSION_DENIED Permission denied - * - * @pre The HID connection must be established. - * @see bt_hid_device_connection_state_changed_cb() - */ -int bt_hid_device_send_custom_event(const char *remote_address, - unsigned char report_id, const char *data, unsigned int data_len); - #ifdef __cplusplus } #endif diff --git a/include/mobile/bluetooth_internal.h b/include/mobile/bluetooth_internal.h index 7171b75..8e82632 100644 --- a/include/mobile/bluetooth_internal.h +++ b/include/mobile/bluetooth_internal.h @@ -2312,6 +2312,30 @@ int bt_hid_device_reply_to_report(const char *remote_address, bt_hid_header_type_e header_type, bt_hid_param_type_e param_type, const char *data, unsigned int data_len); +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_HID_MODULE + * @brief Sends the custom event data. + * @since_tizen 3.0 + * @privlevel platform + * @privilege %http://tizen.org/privilege/bluetooth.admin + * + * @param[in] remote_address device address of remote device. + * @param[in] report_id reoport id need to be passed to remote device + * @param[in] data The data need to be passed to remote device + * @param[in] data_len The length of the data + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_NOT_INITIALIZED Not initialized + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_OPERATION_FAILED Operation failed + * @retval #BT_ERROR_PERMISSION_DENIED Permission denied + * + * @pre The HID connection must be established. + * @see bt_hid_device_connection_state_changed_cb() + */ +int bt_hid_device_send_custom_event(const char *remote_address, + unsigned char report_id, const char *data, unsigned int data_len); + /** * @ingroup CAPI_NETWORK_BLUETOOTH_DPM_MODULE * @brief Sets Restriction for BT mode(BT allowed or not). diff --git a/include/tv/bluetooth_internal.h b/include/tv/bluetooth_internal.h index 495e089..636b8d2 100644 --- a/include/tv/bluetooth_internal.h +++ b/include/tv/bluetooth_internal.h @@ -2291,6 +2291,30 @@ int bt_hid_device_reply_to_report(const char *remote_address, bt_hid_header_type_e header_type, bt_hid_param_type_e param_type, const char *data, unsigned int data_len); +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_HID_MODULE + * @brief Sends the custom event data. + * @since_tizen 3.0 + * @privlevel platform + * @privilege %http://tizen.org/privilege/bluetooth.admin + * + * @param[in] remote_address device address of remote device. + * @param[in] report_id reoport id need to be passed to remote device + * @param[in] data The data need to be passed to remote device + * @param[in] data_len The length of the data + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_NOT_INITIALIZED Not initialized + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_OPERATION_FAILED Operation failed + * @retval #BT_ERROR_PERMISSION_DENIED Permission denied + * + * @pre The HID connection must be established. + * @see bt_hid_device_connection_state_changed_cb() + */ +int bt_hid_device_send_custom_event(const char *remote_address, + unsigned char report_id, const char *data, unsigned int data_len); + /** * @ingroup CAPI_NETWORK_BLUETOOTH_DPM_MODULE * @brief Sets Restriction for BT mode(BT allowed or not). diff --git a/include/wearable/bluetooth_internal.h b/include/wearable/bluetooth_internal.h index 7d98a0f..9599320 100644 --- a/include/wearable/bluetooth_internal.h +++ b/include/wearable/bluetooth_internal.h @@ -3267,6 +3267,30 @@ int bt_ipsp_unset_connection_state_changed_cb(void); */ int bt_pbap_client_is_connected(const char *address, bool *connected_status); +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_HID_MODULE + * @brief Sends the custom event data. + * @since_tizen 3.0 + * @privlevel platform + * @privilege %http://tizen.org/privilege/bluetooth.admin + * + * @param[in] remote_address device address of remote device. + * @param[in] report_id reoport id need to be passed to remote device + * @param[in] data The data need to be passed to remote device + * @param[in] data_len The length of the data + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_NOT_INITIALIZED Not initialized + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_OPERATION_FAILED Operation failed + * @retval #BT_ERROR_PERMISSION_DENIED Permission denied + * + * @pre The HID connection must be established. + * @see bt_hid_device_connection_state_changed_cb() + */ +int bt_hid_device_send_custom_event(const char *remote_address, + unsigned char report_id, const char *data, unsigned int data_len); + /** * @} */