Add the hid custom event sending API to the internal header 17/95817/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 7 Nov 2016 00:45:39 +0000 (09:45 +0900)
committerPyun DoHyun <dh79.pyun@samsung.com>
Mon, 7 Nov 2016 01:29:08 +0000 (17:29 -0800)
Change-Id: I8a72a8f61eebf440e49981ea8e841bd8c1a5bb88
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
include/bluetooth_private.h
include/mobile/bluetooth_internal.h
include/tv/bluetooth_internal.h
include/wearable/bluetooth_internal.h

index c6cdba117339be14d838239a8640ff2181a7415d..2023522d7aa1163b95e01d92bfcbb432a08c1096 100644 (file)
@@ -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
index 7171b7568e7eef0355048b182ff16c45b24138a9..8e8263290160a2ad046e68455810d4fd036a51de 100644 (file)
@@ -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).
index 495e0896224b5479e23c9810015e7ff0e7faefc0..636b8d20287add3ed41ea52c20dd98d4a3853686 100644 (file)
@@ -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).
index 7d98a0f365f1af6d951e4b3c4485fdbba3f51cea..95993202d1c5540da9ab3930d7ea448bfa09bd6f 100644 (file)
@@ -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);
+
 /**
  * @}
  */