Fix TV profile's build error 92/85392/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 25 Aug 2016 02:22:45 +0000 (11:22 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 25 Aug 2016 02:22:45 +0000 (11:22 +0900)
Change-Id: I4cd2aafe12920630fd73ed14604a41f25bcbf287
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
include/tv/bluetooth_internal.h
include/tv/bluetooth_type.h
include/tv/bluetooth_type_internal.h

index 24243e0a30ab81cf54d8c9d878a785065d68cf91..66e7d3187e98d3fa1e8006595283b21a01eca100 100644 (file)
@@ -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
index 9ed88ac36e8e087d5743f741e229a3e06e4c952a..68c21f38d69461b0b44cf4c771afdbdbc26d26e3 100644 (file)
@@ -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,
index f9386eb060ac425cabdd8bbc08f895cfe3933524..55b7555a5935005d367aca5735eb676f92848487 100644 (file)
@@ -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);
 
+
 /**
  * @}
  */