#include <unistd.h>
#include <stdbool.h>
#include <tizen_error.h>
+#include <tizen.h>
#include <bluetooth_type.h>
+#ifndef TIZEN_DEPRECATED_API
+#define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated))
+#endif
+
#ifdef __cplusplus
extern "C"
{
* @see bt_adapter_le_set_device_discovery_state_changed_cb()
* @see bt_adapter_le_unset_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_start_device_discovery(void);
+int bt_adapter_le_start_device_discovery(void) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_adapter_le_unset_device_discovery_state_changed_cb()
* @see bt_adapter_le_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_stop_device_discovery(void);
+int bt_adapter_le_stop_device_discovery(void) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_adapter_le_start_device_discovery()
* @see bt_adapter_le_stop_device_discovery()
*/
-int bt_adapter_le_is_discovering(bool *is_discovering);
+int bt_adapter_le_is_discovering(bool *is_discovering) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_adapter_le_device_discovery_state_changed_cb()
* @see bt_adapter_le_unset_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_set_device_discovery_state_changed_cb(bt_adapter_le_device_discovery_state_changed_cb callback, void *user_data);
+int bt_adapter_le_set_device_discovery_state_changed_cb(bt_adapter_le_device_discovery_state_changed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_initialize()
* @see bt_adapter_le_set_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_unset_device_discovery_state_changed_cb(void);
+int bt_adapter_le_unset_device_discovery_state_changed_cb(void) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
*/
int bt_adapter_le_add_advertising_data(bt_advertiser_h advertiser,
bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_packet_data_type_e data_type,
- void *data, unsigned int data_size);
+ void *data, unsigned int data_size) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
* @see bt_adapter_le_clear_advertising_data()
*/
int bt_adapter_le_remove_advertising_data(bt_advertiser_h advertiser,
- bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_packet_data_type_e data_type);
+ bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_packet_data_type_e data_type) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
* @see bt_adapter_le_advertising_state_changed_cb()
*/
int bt_adapter_le_start_advertising(bt_advertiser_h advertiser, bt_adapter_le_advertising_params_s *adv_params,
- bt_adapter_le_advertising_state_changed_cb cb, void *user_data);
+ bt_adapter_le_advertising_state_changed_cb cb, void *user_data) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
* @post @a callback will be called if there are primary services.
* @see bt_gatt_primary_service_cb()
*/
-int bt_gatt_foreach_primary_services(const char *remote_address, bt_gatt_primary_service_cb callback, void *user_data);
+int bt_gatt_foreach_primary_services(const char *remote_address, bt_gatt_primary_service_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. This function call is not required because characteristic discovery is happened automatically.
* @post @a callback will be called.
* @see bt_gatt_characteristics_discovered_cb()
*/
-int bt_gatt_discover_characteristics(bt_gatt_attribute_h service, bt_gatt_characteristics_discovered_cb callback, void *user_data);
+int bt_gatt_discover_characteristics(bt_gatt_attribute_h service, bt_gatt_characteristics_discovered_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_get_uuid instead.
*
* @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
*/
-int bt_gatt_get_service_uuid(bt_gatt_attribute_h service, char **uuid);
+int bt_gatt_get_service_uuid(bt_gatt_attribute_h service, char **uuid) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_service_foreach_included_services or bt_gatt_service_get_included_service instead.
* @post @a callback will be called if there are included services.
* @see bt_gatt_included_service_cb()
*/
-int bt_gatt_foreach_included_services(bt_gatt_attribute_h service, bt_gatt_included_service_cb callback, void *user_data);
+int bt_gatt_foreach_included_services(bt_gatt_attribute_h service, bt_gatt_included_service_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_set_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_unset_characteristic_changed_cb()
*/
-int bt_gatt_set_characteristic_changed_cb(bt_gatt_characteristic_changed_cb callback, void *user_data);
+int bt_gatt_set_characteristic_changed_cb(bt_gatt_characteristic_changed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_unset_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_set_characteristic_changed_cb()
*/
-int bt_gatt_unset_characteristic_changed_cb(void);
+int bt_gatt_unset_characteristic_changed_cb(void) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_set_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_unset_characteristic_changed_cb()
*/
-int bt_gatt_watch_characteristic_changes(bt_gatt_attribute_h service);
+int bt_gatt_watch_characteristic_changes(bt_gatt_attribute_h service) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_unset_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_set_characteristic_changed_cb()
*/
-int bt_gatt_unwatch_characteristic_changes(bt_gatt_attribute_h service);
+int bt_gatt_unwatch_characteristic_changes(bt_gatt_attribute_h service) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_get_value or bt_gatt_get_uuid after bt_gatt_client_read_value instead.
* @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
* @see bt_gatt_set_characteristic_value()
*/
-int bt_gatt_get_characteristic_declaration(bt_gatt_attribute_h characteristic, char **uuid, unsigned char **value, int *value_length);
+int bt_gatt_get_characteristic_declaration(bt_gatt_attribute_h characteristic, char **uuid, unsigned char **value, int *value_length) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_set_value and bt_gatt_client_write_value instead.
* @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
* @see bt_gatt_get_characteristic_declaration()
*/
-int bt_gatt_set_characteristic_value(bt_gatt_attribute_h characteristic, const unsigned char *value, int value_length);
+int bt_gatt_set_characteristic_value(bt_gatt_attribute_h characteristic, const unsigned char *value, int value_length) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_set_value and bt_gatt_client_write_value instead.
* @see bt_gatt_get_characteristic_declaration()
*/
int bt_gatt_set_characteristic_value_request(bt_gatt_attribute_h characteristic, const unsigned char *value,
- int value_length, bt_gatt_characteristic_write_cb callback);
+ int value_length, bt_gatt_characteristic_write_cb callback) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. GATT handle clone is not allowed. Instead, all handles for client role must be got from GATT client handle.
*
* @see bt_gatt_destroy_attribute_handle()
*/
-int bt_gatt_clone_attribute_handle(bt_gatt_attribute_h *clone, bt_gatt_attribute_h origin);
+int bt_gatt_clone_attribute_handle(bt_gatt_attribute_h *clone, bt_gatt_attribute_h origin) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. GATT handle clone and destroy are not allowed.
*
* @see bt_gatt_clone_attribute_handle()
*/
-int bt_gatt_destroy_attribute_handle(bt_gatt_attribute_h handle);
+int bt_gatt_destroy_attribute_handle(bt_gatt_attribute_h handle) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use gatt_client_read_value instead.
* @see bt_gatt_get_characteristic_declaration()
*/
int bt_gatt_read_characteristic_value(bt_gatt_attribute_h char_handle,
- bt_gatt_characteristic_read_cb callback);
+ bt_gatt_characteristic_read_cb callback) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. This function call is not required because descriptor discovery is happened automatically.
*/
int bt_gatt_discover_characteristic_descriptor(bt_gatt_attribute_h characteristic_handle,
bt_gatt_characteristic_descriptor_discovered_cb callback,
- void *user_data);
+ void *user_data) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE
#include <unistd.h>
#include <stdbool.h>
#include <tizen_error.h>
+#include <tizen.h>
#include <bluetooth_type.h>
+#ifndef TIZEN_DEPRECATED_API
+#define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated))
+#endif
+
#ifdef __cplusplus
extern "C"
{
* @see bt_adapter_le_set_device_discovery_state_changed_cb()
* @see bt_adapter_le_unset_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_start_device_discovery(void);
+int bt_adapter_le_start_device_discovery(void) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_adapter_le_unset_device_discovery_state_changed_cb()
* @see bt_adapter_le_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_stop_device_discovery(void);
+int bt_adapter_le_stop_device_discovery(void) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_adapter_le_start_device_discovery()
* @see bt_adapter_le_stop_device_discovery()
*/
-int bt_adapter_le_is_discovering(bool *is_discovering);
+int bt_adapter_le_is_discovering(bool *is_discovering) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_adapter_le_device_discovery_state_changed_cb()
* @see bt_adapter_le_unset_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_set_device_discovery_state_changed_cb(bt_adapter_le_device_discovery_state_changed_cb callback, void *user_data);
+int bt_adapter_le_set_device_discovery_state_changed_cb(bt_adapter_le_device_discovery_state_changed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1
* @see bt_initialize()
* @see bt_adapter_le_set_device_discovery_state_changed_cb()
*/
-int bt_adapter_le_unset_device_discovery_state_changed_cb(void);
+int bt_adapter_le_unset_device_discovery_state_changed_cb(void) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
*/
int bt_adapter_le_add_advertising_data(bt_advertiser_h advertiser,
bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_packet_data_type_e data_type,
- void *data, unsigned int data_size);
+ void *data, unsigned int data_size) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
* @see bt_adapter_le_clear_advertising_data()
*/
int bt_adapter_le_remove_advertising_data(bt_advertiser_h advertiser,
- bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_packet_data_type_e data_type);
+ bt_adapter_le_packet_type_e pkt_type, bt_adapter_le_packet_data_type_e data_type) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
* @see bt_adapter_le_advertising_state_changed_cb()
*/
int bt_adapter_le_start_advertising(bt_advertiser_h advertiser, bt_adapter_le_advertising_params_s *adv_params,
- bt_adapter_le_advertising_state_changed_cb cb, void *user_data);
+ bt_adapter_le_advertising_state_changed_cb cb, void *user_data) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
* @post @a callback will be called if there are primary services.
* @see bt_gatt_primary_service_cb()
*/
-int bt_gatt_foreach_primary_services(const char *remote_address, bt_gatt_primary_service_cb callback, void *user_data);
+int bt_gatt_foreach_primary_services(const char *remote_address, bt_gatt_primary_service_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. This function call is not required because characteristic discovery is happened automatically.
* @post @a callback will be called.
* @see bt_gatt_characteristics_discovered_cb()
*/
-int bt_gatt_discover_characteristics(bt_gatt_attribute_h service, bt_gatt_characteristics_discovered_cb callback, void *user_data);
+int bt_gatt_discover_characteristics(bt_gatt_attribute_h service, bt_gatt_characteristics_discovered_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_get_uuid instead.
*
* @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
*/
-int bt_gatt_get_service_uuid(bt_gatt_attribute_h service, char **uuid);
+int bt_gatt_get_service_uuid(bt_gatt_attribute_h service, char **uuid) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_service_foreach_included_services or bt_gatt_service_get_included_service instead.
* @post @a callback will be called if there are included services.
* @see bt_gatt_included_service_cb()
*/
-int bt_gatt_foreach_included_services(bt_gatt_attribute_h service, bt_gatt_included_service_cb callback, void *user_data);
+int bt_gatt_foreach_included_services(bt_gatt_attribute_h service, bt_gatt_included_service_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_set_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_unset_characteristic_changed_cb()
*/
-int bt_gatt_set_characteristic_changed_cb(bt_gatt_characteristic_changed_cb callback, void *user_data);
+int bt_gatt_set_characteristic_changed_cb(bt_gatt_characteristic_changed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_unset_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_set_characteristic_changed_cb()
*/
-int bt_gatt_unset_characteristic_changed_cb(void);
+int bt_gatt_unset_characteristic_changed_cb(void) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_set_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_unset_characteristic_changed_cb()
*/
-int bt_gatt_watch_characteristic_changes(bt_gatt_attribute_h service);
+int bt_gatt_watch_characteristic_changes(bt_gatt_attribute_h service) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_client_unset_characteristic_value_changed_cb instead.
* @pre The Bluetooth service must be initialized with bt_initialize().
* @see bt_gatt_set_characteristic_changed_cb()
*/
-int bt_gatt_unwatch_characteristic_changes(bt_gatt_attribute_h service);
+int bt_gatt_unwatch_characteristic_changes(bt_gatt_attribute_h service) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_get_value or bt_gatt_get_uuid after bt_gatt_client_read_value instead.
* @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
* @see bt_gatt_set_characteristic_value()
*/
-int bt_gatt_get_characteristic_declaration(bt_gatt_attribute_h characteristic, char **uuid, unsigned char **value, int *value_length);
+int bt_gatt_get_characteristic_declaration(bt_gatt_attribute_h characteristic, char **uuid, unsigned char **value, int *value_length) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_set_value and bt_gatt_client_write_value instead.
* @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
* @see bt_gatt_get_characteristic_declaration()
*/
-int bt_gatt_set_characteristic_value(bt_gatt_attribute_h characteristic, const unsigned char *value, int value_length);
+int bt_gatt_set_characteristic_value(bt_gatt_attribute_h characteristic, const unsigned char *value, int value_length) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use bt_gatt_set_value and bt_gatt_client_write_value instead.
* @see bt_gatt_get_characteristic_declaration()
*/
int bt_gatt_set_characteristic_value_request(bt_gatt_attribute_h characteristic, const unsigned char *value,
- int value_length, bt_gatt_characteristic_write_cb callback);
+ int value_length, bt_gatt_characteristic_write_cb callback) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. GATT handle clone is not allowed. Instead, all handles for client role must be got from GATT client handle.
* @see bt_gatt_destroy_attribute_handle()
*/
int bt_gatt_clone_attribute_handle(bt_gatt_attribute_h *clone,
- bt_gatt_attribute_h origin);
+ bt_gatt_attribute_h origin) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. GATT handle clone and destroy are not allowed.
*
* @see bt_gatt_clone_attribute_handle()
*/
-int bt_gatt_destroy_attribute_handle(bt_gatt_attribute_h handle);
+int bt_gatt_destroy_attribute_handle(bt_gatt_attribute_h handle) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. Use gatt_client_read_value instead.
* @see bt_gatt_get_characteristic_declaration()
*/
int bt_gatt_read_characteristic_value(bt_gatt_attribute_h char_handle,
- bt_gatt_characteristic_read_cb callback);
+ bt_gatt_characteristic_read_cb callback) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 2.3.1. This function call is not required because descriptor discovery is happened automatically.
*/
int bt_gatt_discover_characteristic_descriptor(bt_gatt_attribute_h characteristic_handle,
bt_gatt_characteristic_descriptor_discovered_cb callback,
- void *user_data);
+ void *user_data) TIZEN_DEPRECATED_API;
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_GATT_MODULE
#include <unistd.h>
#include <stdbool.h>
#include <tizen_error.h>
+#include <tizen.h>
#include <bluetooth_type.h>
+#ifndef TIZEN_DEPRECATED_API
+#define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated))
+#endif
+
#ifdef __cplusplus
extern "C"
{
int bt_adapter_le_set_device_discovery_state_changed_cb(bt_adapter_le_device_discovery_state_changed_cb callback,
void *user_data)
{
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_set_device_discovery_state_changed_cb() is deprecated and will be removed from next release.");
+
BT_CHECK_LE_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(callback);
#ifndef TIZEN_WEARABLE
int bt_adapter_le_unset_device_discovery_state_changed_cb(void)
{
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_unset_device_discovery_state_changed_cb() is deprecated and will be removed from next release.");
+
BT_CHECK_LE_SUPPORT();
BT_CHECK_INIT_STATUS();
_bt_unset_cb(BT_EVENT_LE_DEVICE_DISCOVERY_STATE_CHANGED);
int bt_adapter_le_start_device_discovery(void)
{
int error_code = BT_ERROR_NONE;
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_start_device_discovery() is deprecated and will be removed from next release. Use bt_adapter_le_start_scan() instead.");
BT_CHECK_LE_SUPPORT();
BT_CHECK_INIT_STATUS();
int bt_adapter_le_stop_device_discovery(void)
{
int error_code = BT_ERROR_NONE;
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_stop_device_discovery() is deprecated and will be removed from next release. Use bt_adapter_le_stop_scan() instead.");
BT_CHECK_LE_SUPPORT();
BT_CHECK_INIT_STATUS();
int bt_adapter_le_is_discovering(bool *is_discovering)
{
int ret = 0;
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_is_discovering() is deprecated and will be removed from next release.");
BT_CHECK_LE_SUPPORT();
BT_CHECK_INIT_STATUS();
int bt_adapter_le_clear_white_list(void)
{
int error_code = BT_ERROR_NONE;
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_clear_white_list() is deprecated and will be removed from next release.");
+
BT_CHECK_LE_SUPPORT();
BT_CHECK_INIT_STATUS();
bt_adapter_le_packet_data_type_e data_type,
void *data, unsigned int data_size)
{
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_add_advertising_data() is deprecated and will be removed from next release.");
+
bt_advertiser_s *__adv = (bt_advertiser_s *)advertiser;
char **p;
unsigned int *len;
bt_adapter_le_packet_type_e pkt_type,
bt_adapter_le_packet_data_type_e data_type)
{
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_remove_advertising_data() is deprecated and will be removed from next release.");
+
int ret = BT_ERROR_NONE;
bt_advertiser_s *__adv = (bt_advertiser_s *)advertiser;
char **p;
bt_adapter_le_advertising_state_changed_cb cb,
void *user_data)
{
+ BT_INFO("DEPRECATION WARNING: bt_adapter_le_start_advertising() is deprecated and will be removed from next release. Use bt_adapter_le_start_advertising_new() instead");
+
int ret = BT_ERROR_NONE;
int error_code;
bt_advertiser_s *__adv = (bt_advertiser_s *)advertiser;
bt_gatt_primary_service_cb callback,
void *user_data)
{
+ BT_INFO("DEPRECATION WARNING: bt_gatt_foreach_primary_services() is deprecated and will be removed from next release.");
+
int i;
int ret;
bool foreach_call = true;
void *user_data)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_discover_characteristics() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
int i;
int ret;
bt_gatt_service_property_t property;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_get_service_uuid() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
bt_gatt_included_service_cb callback,
void *user_data)
{
+ BT_INFO("DEPRECATION WARNING: bt_gatt_foreach_included_services() is deprecated and will be removed from next release.");
+
int i;
int ret;
bool foreach_call = true;
int bt_gatt_set_characteristic_changed_cb(bt_gatt_characteristic_changed_cb callback,
void *user_data)
{
+ BT_INFO("DEPRECATION WARNING: bt_gatt_set_characteristic_changed_cb() is deprecated and will be removed from next release.");
+
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(callback);
int bt_gatt_unset_characteristic_changed_cb()
{
+ BT_INFO("DEPRECATION WARNING: bt_gatt_unset_characteristic_changed_cb() is deprecated and will be removed from next release.");
+
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
int bt_gatt_watch_characteristic_changes(bt_gatt_attribute_h service)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_watch_characteristic_changes() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
int bt_gatt_unwatch_characteristic_changes(bt_gatt_attribute_h service)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_unwatch_characteristic_changes() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
{
int ret;
bt_gatt_char_property_t property;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_get_characteristic_declaration() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
int value_length)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_set_characteristic_value() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
bt_gatt_characteristic_write_cb callback)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_set_characteristic_value_request() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
bt_gatt_attribute_h origin)
{
int error = BT_ERROR_NONE;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_clone_attribute_handle() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
int bt_gatt_destroy_attribute_handle(bt_gatt_attribute_h handle)
{
int error = BT_ERROR_NONE;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_destroy_attribute_handle() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
bt_gatt_characteristic_read_cb callback)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_read_characteristic_value() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();
void *user_data)
{
int ret;
+ BT_INFO("DEPRECATION WARNING: bt_gatt_discover_characteristic_descriptor() is deprecated and will be removed from next release.");
BT_CHECK_GATT_SUPPORT();
BT_CHECK_INIT_STATUS();