SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(INC_DIR include)
-IF (TIZEN_TV)
+IF (TIZEN_PROFILE_TV)
INCLUDE_DIRECTORIES(${INC_DIR})
INCLUDE_DIRECTORIES(${INC_DIR}/tv)
ELSE ()
INCLUDE_DIRECTORIES(${INC_DIR})
- IF (TIZEN_WEARABLE)
+ IF (TIZEN_PROFILE_WEARABLE)
INCLUDE_DIRECTORIES(${INC_DIR}/wearable)
ELSE ()
INCLUDE_DIRECTORIES(${INC_DIR}/mobile)
- ENDIF (TIZEN_WEARABLE)
-ENDIF (TIZEN_TV)
+ ENDIF (TIZEN_PROFILE_WEARABLE)
+ENDIF (TIZEN_PROFILE_TV)
-IF (TIZEN_TV)
+IF (TIZEN_PROFILE_TV)
SET(dependents "dlog glib-2.0 capi-base-common bluetooth-api db-util capi-system-info")
ELSE ()
SET(dependents "dlog glib-2.0 capi-base-common bluetooth-api capi-system-info")
-ENDIF (TIZEN_TV)
+ENDIF (TIZEN_PROFILE_TV)
SET(pc_dependents "capi-base-common glib-2.0")
INCLUDE(FindPkgConfig)
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
-IF (TIZEN_TV)
+IF (TIZEN_PROFILE_TV)
SET(SOURCES
src/bluetooth-common.c
src/bluetooth-adapter.c
src/bluetooth-ipsp.c
src/bluetooth-dpm.c
)
-IF (TIZEN_WEARABLE)
+IF (TIZEN_PROFILE_WEARABLE)
LIST(APPEND SOURCES src/bluetooth-pbap.c)
-ENDIF (TIZEN_WEARABLE)
-ENDIF (TIZEN_TV)
+ENDIF (TIZEN_PROFILE_WEARABLE)
+ENDIF (TIZEN_PROFILE_TV)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
PATTERN "*_private.h" EXCLUDE
PATTERN "${INC_DIR}/*.h"
)
-IF (TIZEN_TV)
+IF (TIZEN_PROFILE_TV)
INSTALL(
DIRECTORY ${INC_DIR}/tv/ DESTINATION include/network
FILES_MATCHING
)
ELSE ()
- IF (TIZEN_WEARABLE)
+ IF (TIZEN_PROFILE_WEARABLE)
INSTALL(
DIRECTORY ${INC_DIR}/wearable/ DESTINATION include/network
FILES_MATCHING
FILES_MATCHING
PATTERN "${INC_DIR}/mobile/*.h"
)
- ENDIF (TIZEN_WEARABLE)
-ENDIF (TIZEN_TV)
+ ENDIF (TIZEN_PROFILE_WEARABLE)
+ENDIF (TIZEN_PROFILE_TV)
SET(PC_NAME ${fw_name})
SET(PC_REQUIRED ${pc_dependents})
)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
-IF (TIZEN_TV)
+IF (TIZEN_PROFILE_TV)
ELSE ()
ADD_SUBDIRECTORY(test)
-ENDIF (TIZEN_TV)
+ENDIF (TIZEN_PROFILE_TV)
IF(UNIX)
BT_EVENT_GATT_CLIENT_READ_DESCRIPTOR, /**< GATT descriptor value read callback */
BT_EVENT_GATT_CLIENT_WRITE_DESCRIPTOR, /**< GATT descriptor value write callback */
BT_EVENT_GATT_SERVER_READ_REQUESTED, /**< GATT Characteristic/Descriptor Read Requested callback*/
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
BT_EVENT_GATT_CLIENT_CHARACTERISTIC_DISCOVERED_LEGACY, /**< GATT characteristic discovered callback */
BT_EVENT_GATT_CLIENT_CHARACTERISTIC_DESCRIPTOR_DISCOVERED_LEGACY, /**< GATT characteristic descriptor discovered callback */
BT_EVENT_GATT_CLIENT_VALUE_CHANGED_LEGACY, /**< GATT characteristic value changed callback */
BT_EVENT_GET_RSSI_EVENT, /**< Get RSSI Strength callback */
BT_EVENT_LE_READ_MAXIMUM_DATA_LENGTH, /**< Read maximun LE data length callback */
BT_EVENT_SUPPORTED_TRUSTED_PROFILE_EVENT, /**< Trusted Profile callback */
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
BT_EVENT_PBAP_CONNECTION_STATUS, /**< PBAP connection status callback */
BT_EVENT_PBAP_PHONEBOOK_SIZE, /**< PBAP Phonebook Size status callback */
BT_EVENT_PBAP_PHONEBOOK_PULL, /**< PBAP Phonebook Pull status callback */
BT_GATT_ROLE_CLIENT = 0x02,
} bt_gatt_role_e;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
/**
* @internal
*/
*/
void _bt_audio_event_proxy(int event, bt_audio_event_param_t *param, void *user_data);
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_HF_MODULE
* @brief Enumerations for the device state event from Audio-Gateway device
void _bt_adapter_le_invoke_advertising_state_cb(int handle, int result, bt_adapter_le_advertising_state_e adv_state);
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
bool _bt_gatt_is_legacy_client_mode(void);
#endif
%build
%if "%{?profile}" == "wearable"
-export CFLAGS="$CFLAGS -DTIZEN_WEARABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_WEARABLE"
-export FFLAGS="$FFLAGS -DTIZEN_WEARABLE"
+export CFLAGS="$CFLAGS -DTIZEN_PROFILE_WEARABLE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_PROFILE_WEARABLE"
+export FFLAGS="$FFLAGS -DTIZEN_PROFILE_WEARABLE"
%endif
%if "%{?profile}" == "mobile"
-export CFLAGS="$CFLAGS -DBT_ENABLE_LEGACY_GATT_CLIENT"
-export CXXFLAGS="$CXXFLAGS -DBT_ENABLE_LEGACY_GATT_CLIENT"
-export FFLAGS="$FFLAGS -DBT_ENABLE_LEGACY_GATT_CLIENT"
+export CFLAGS="$CFLAGS -DTIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT"
+export FFLAGS="$FFLAGS -DTIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT"
%endif
-export CFLAGS="$CFLAGS -DTIZEN_AUDIO_HF_DISABLE -DTIZEN_IPSP_SUPPORT"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_AUDIO_HF_DISABLE -DTIZEN_IPSP_SUPPORT"
-export FFLAGS="$FFLAGS -DTIZEN_AUDIO_HF_DISABLE -DTIZEN_IPSP_SUPPORT"
+export CFLAGS="$CFLAGS -DTIZEN_FEATURE_AUDIO_HF_DISABLE -DTIZEN_FEATURE_IPSP_SUPPORT"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_FEATURE_AUDIO_HF_DISABLE -DTIZEN_FEATURE_IPSP_SUPPORT"
+export FFLAGS="$FFLAGS -DTIZEN_FEATURE_AUDIO_HF_DISABLE -DTIZEN_FEATURE_IPSP_SUPPORT"
%ifarch aarch64
echo arch64
%cmake \
%if "%{?profile}" == "wearable"
- -DTIZEN_WEARABLE=YES \
+ -DTIZEN_PROFILE_WEARABLE=YES \
%else
%if "%{?profile}" == "tv"
- -DTIZEN_TV=YES \
+ -DTIZEN_PROFILE_TV=YES \
%else
%if "%{?profile}" == "mobile"
- -DTIZEN_WEARABLE=NO \
- -DTIZEN_MOBILE=YES \
+ -DTIZEN_PROFILE_WEARABLE=NO \
+ -DTIZEN_PROFILE_MOBILE=YES \
%endif
%endif
%endif
return ret;
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
int bt_adapter_le_set_device_discovery_state_changed_cb(bt_adapter_le_device_discovery_state_changed_cb callback,
void *user_data)
{
return BT_ERROR_NONE;
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_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.");
}
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
int bt_adapter_le_start_device_discovery(void)
{
int error_code = BT_ERROR_NONE;
return ret;
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
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,
} call_list_s;
static bool is_audio_a2dp_initialized = false;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
static bool is_audio_hf_initialized = false;
#endif
static bool is_audio_ag_initialized = false;
BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_AUDIO_MEDIA); \
}
-#ifdef TIZEN_AUDIO_HF_DISABLE
+#ifdef TIZEN_FEATURE_AUDIO_HF_DISABLE
#define BT_CHECK_HF_SUPPORT() \
{ \
BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); \
else
is_audio_a2dp_initialized = true;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
error = bluetooth_hf_init(_bt_hf_event_proxy, NULL);
error = _bt_get_error_code(error);
if (BT_ERROR_NONE != error)
is_audio_hf_initialized = true;
#endif
-#ifndef TIZEN_HFP_DISABLE /* B2_3G */
+#ifndef TIZEN_FEATURE_HFP_DISABLE /* B2_3G */
error = bluetooth_telephony_init((void *)_bt_telephony_event_proxy, NULL);
error = _bt_convert_telephony_error_code(error);
if (BT_ERROR_NONE != error)
/* There is no success case for 3 profiles */
if (!is_audio_a2dp_initialized &&
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
!is_audio_hf_initialized &&
#endif
!is_audio_ag_initialized) {
is_audio_a2dp_initialized = false;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
error = bluetooth_hf_deinit();
error = _bt_get_error_code(error);
if (BT_ERROR_NONE != error)
is_audio_hf_initialized = false;
#endif
-#ifndef TIZEN_HFP_DISABLE /* B2_3G */
+#ifndef TIZEN_FEATURE_HFP_DISABLE /* B2_3G */
error = bluetooth_telephony_deinit();
error = _bt_convert_telephony_error_code(error);
if (BT_ERROR_NONE != error)
BT_CHECK_A2DP_SUPPORT();
BT_CHECK_A2DP_INIT_STATUS();
} else if (type == BT_AUDIO_PROFILE_TYPE_ALL) {
-#if defined(TIZEN_HFP_DISABLE)
+#if defined(TIZEN_FEATURE_HFP_DISABLE)
BT_CHECK_A2DP_INIT_STATUS();
BT_ERR("HSP NOT SUPPORTED(0x%08x)", BT_ERROR_NOT_SUPPORTED);
type = BT_AUDIO_PROFILE_TYPE_A2DP;
BT_CHECK_INPUT_PARAMETER(remote_address);
_bt_convert_address_to_hex(&addr_hex, remote_address);
switch (type) {
-#ifndef TIZEN_HFP_DISABLE
+#ifndef TIZEN_FEATURE_HFP_DISABLE
case BT_AUDIO_PROFILE_TYPE_HSP_HFP:
error = bluetooth_ag_connect(&addr_hex);
break;
case BT_AUDIO_PROFILE_TYPE_A2DP:
error = bluetooth_av_connect(&addr_hex);
break;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BT_AUDIO_PROFILE_TYPE_AG:
error = bluetooth_hf_connect(&addr_hex);
break;
BT_CHECK_A2DP_SUPPORT();
BT_CHECK_A2DP_INIT_STATUS();
} else if (type == BT_AUDIO_PROFILE_TYPE_ALL) {
-#if defined(TIZEN_HFP_DISABLE)
+#if defined(TIZEN_FEATURE_HFP_DISABLE)
BT_CHECK_A2DP_INIT_STATUS();
BT_ERR("HSP NOT SUPPORTED(0x%08x)", BT_ERROR_NOT_SUPPORTED);
type = BT_AUDIO_PROFILE_TYPE_A2DP;
BT_CHECK_INPUT_PARAMETER(remote_address);
_bt_convert_address_to_hex(&addr_hex, remote_address);
switch (type) {
-#ifndef TIZEN_HFP_DISABLE
+#ifndef TIZEN_FEATURE_HFP_DISABLE
case BT_AUDIO_PROFILE_TYPE_HSP_HFP:
error = bluetooth_ag_disconnect(&addr_hex);
break;
case BT_AUDIO_PROFILE_TYPE_A2DP:
error = bluetooth_av_disconnect(&addr_hex);
break;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BT_AUDIO_PROFILE_TYPE_AG:
error = bluetooth_hf_disconnect(&addr_hex);
break;
}
/* LCOV_EXCL_STOP */
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
int bt_hf_initialize(void)
{
BT_CHECK_INIT_STATUS();
static void __bt_free_bt_adapter_device_discovery_info_s(bt_adapter_device_discovery_info_s *discovery_info);
static int __bt_get_bt_adapter_le_device_scan_info_s(bt_adapter_le_device_scan_result_info_s **scan_info, bluetooth_le_device_info_t *source_info);
static void __bt_free_bt_adapter_le_device_scan_info_s(bt_adapter_le_device_scan_result_info_s *scan_info);
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static int __bt_get_bt_adapter_le_device_discovery_info_s(bt_adapter_le_device_discovery_info_s **le_discovery_info, bluetooth_le_device_info_t *source_info);
static void __bt_free_bt_adapter_le_device_discovery_info_s(bt_adapter_le_device_discovery_info_s *discovery_info);
#endif
__bt_event_proxy(event, &new_param, user_data);
}
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
void _bt_hf_event_proxy(int event, bt_hf_event_param_t *param, void *user_data)
{
bluetooth_event_param_t new_param;
bluetooth_device_address_t *bd_addr = NULL;
telephony_event_callid_t *call_data = NULL;
char *device_addr = NULL;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
char *phone_number = NULL;
#endif
int error_code = BT_ERROR_NONE;
device_addr = NULL;
break;
}
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
case BLUETOOTH_EVENT_GATT_SVC_CHAR_DISCOVERED: {
BT_INFO("BLUETOOTH_EVENT_GATT_SVC_CHAR_DISCOVERED");
if (_bt_gatt_is_legacy_client_mode()) {
BT_INFO("BLUETOOTH_EVENT_GATT_CHAR_VAL_CHANGED");
char_val = (bt_gatt_char_value_t *)(param->param_data);
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
if (_bt_gatt_is_legacy_client_mode()) {
bt_gatt_char_value_t *char_val = param->param_data;
BT_INFO("BLUETOOTH_EVENT_GATT_READ_CHAR");
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
if (_bt_gatt_is_legacy_client_mode()) {
bt_gatt_char_value_t *char_val = param->param_data;
BT_INFO("BLUETOOTH_EVENT_GATT_WRITE_CHAR");
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
if (_bt_gatt_is_legacy_client_mode()) {
((bt_gatt_characteristic_write_cb)bt_event_slot_container[event_index].callback)
(bt_event_slot_container[event_index].user_data);
break;
}
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
case BLUETOOTH_EVENT_GATT_SVC_CHAR_DESC_DISCOVERED: {
BT_INFO("BLUETOOTH_EVENT_GATT_SVC_CHAR_DESC_DISCOVERED");
if (_bt_gatt_is_legacy_client_mode()) {
if (device_addr != NULL)
free(device_addr); /* LCOV_EXCL_STOP */
break;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BLUETOOTH_PBAP_CONNECTED: {
bt_pbap_connection_state_changed_cb cb = bt_event_slot_container[event_index].callback;
void *user_data = bt_event_slot_container[event_index].user_data;
static void __bt_le_event_proxy(int event, bluetooth_event_param_t *param, void *user_data)
{
bt_adapter_le_device_scan_result_info_s *scan_info = NULL;
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
bt_adapter_le_device_discovery_info_s *discovery_info = NULL;
#endif
int event_index = -1;
(_bt_get_error_code(param->result), BT_ADAPTER_LE_DISABLED, bt_event_slot_container[event_index].user_data);
break;
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
case BLUETOOTH_EVENT_LE_DISCOVERY_STARTED:
BT_INFO("BLUETOOTH_EVENT_LE_DISCOVERY_STARTED"); /* LCOV_EXCL_LINE */
((bt_adapter_le_device_discovery_state_changed_cb) bt_event_slot_container[event_index].callback) /* LCOV_EXCL_LINE */
(_bt_get_error_code(param->result), NULL, bt_event_slot_container[event_index].user_data);
}
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
event_index = BT_EVENT_LE_DEVICE_DISCOVERY_STATE_CHANGED;
if (bt_event_slot_container[event_index].callback != NULL) {
if (__bt_get_bt_adapter_le_device_discovery_info_s(&discovery_info, (bluetooth_le_device_info_t *)(param->param_data)) == BT_ERROR_NONE) { /* LCOV_EXCL_LINE */
scan_info = NULL;
}
/* LCOV_EXCL_START */
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static int __bt_get_bt_adapter_le_device_discovery_info_s(
bt_adapter_le_device_discovery_info_s **le_discovery_info,
bluetooth_le_device_info_t *source_info)
#endif
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
static int __bt_get_gatt_client_cb_index(int event)
{
switch (event) {
return BT_EVENT_HID_DEVICE_CONNECTION_STATUS;
case BLUETOOTH_HID_DEVICE_DATA_RECEIVED:
return BT_EVENT_HID_DEVICE_DATA_RECEIVED;
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
case BLUETOOTH_EVENT_GATT_SVC_CHAR_DISCOVERED:
return BT_EVENT_GATT_CLIENT_CHARACTERISTIC_DISCOVERED_LEGACY;
case BLUETOOTH_EVENT_GATT_SVC_CHAR_DESC_DISCOVERED:
return BT_EVENT_SUPPORTED_TRUSTED_PROFILE_EVENT;
case BLUETOOTH_EVENT_LE_DATA_LENGTH_CHANGED:
return BT_EVENT_LE_DATA_LENGTH_CHANGED; /* LCOV_EXCL_LINE */
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BLUETOOTH_PBAP_CONNECTED:
case BLUETOOTH_PBAP_DISCONNECTED:
return BT_EVENT_PBAP_CONNECTION_STATUS;
return BT_ERROR_NONE;
}
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
bool _bt_gatt_is_legacy_client_mode(void)
{
if (gatt_client_list) {
static bool is_ipsp_initialized = false;
-#ifdef TIZEN_IPSP_SUPPORT
+#ifdef TIZEN_FEATURE_IPSP_SUPPORT
#define BT_CHECK_IPSP_SUPPORT()
#else
#define BT_CHECK_IPSP_SUPPORT() \
static struct timeval check_time = {0,};
static gboolean is_sub_index = FALSE;
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
int service_index;
int char_service_index;
static int selected_service_index = -1;
gatt_handle_t custom_h;
gatt_handle_t ipsp_h;
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
bt_gatt_attribute_h service_clone[MAX_SERVICES];
bt_gatt_attribute_h characteristics[MAX_SERVICES];
bt_gatt_attribute_h characteristics_services[MAX_SERVICES];
, BT_UNIT_TEST_TABLE_HDP},
{"DPM"
, BT_UNIT_TEST_TABLE_DPM},
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
{"HF Role"
, BT_UNIT_TEST_TABLE_HF},
{"PBAP Client"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_SCAN},
{"bt_adapter_le_stop_scan"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_STOP_SCAN},
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
{"bt_adapter_le_start_device_discovery"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_DEVICE_DISCOVERY},
{"bt_adapter_le_stop_device_discovery"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_ADVERTISING_CONNECTABLE},
{"bt_adapter_le_start_advertising_new"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_ADVERTISING_NEW},
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
{"bt_adapter_le_start_advertising"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_ADVERTISING},
#endif
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_ADD_WHITE_LIST},
{"bt_adapter_le_remove_white_list"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_REMOVE_WHITE_LIST},
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
{"bt_adapter_le_clear_white_list"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_CLEAR_WHITE_LIST},
#endif
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_REGISTER_SCAN_FILTER_SERVICE_SOLICITATION_UUID},
{"Unregister all scan filters"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_UNREGISTER_ALL_SCAN_FILTERS},
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
{"bt_adapter_le_set_device_discovery_state_changed_cb"
, BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_DEVICE_DISCOVERY_STATE_CHANGED_CB},
{"bt_adapter_le_unset_device_discovery_state_changed_cb"
, BT_UNIT_TEST_FUNCTION_ANCS_NEGATIVE_ACTION},
{"ANCS (Get Noti. Attr.)"
, BT_UNIT_TEST_FUNCTION_ANCS_GET_NOTI_ATTR},
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
{"bt_gatt_foreach_primary_services"
, BT_UNIT_TEST_FUNCTION_GATT_FOREACH_PRIMARY_SERVICES},
{"bt_gatt_discover_characteristics"
{NULL , 0x0000},
};
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
tc_table_t tc_hf[] = {
/* Handsfree role functions */
{"BACK"
case BT_UNIT_TEST_TABLE_DPM:
tc_table = tc_DPM;
break;
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_TABLE_HF:
tc_table = tc_hf;
break;
return err_str;
}
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
static gboolean __select_index_cb(GIOChannel *chan,
GIOCondition cond,
gpointer data)
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void __bt_adapter_le_device_discovery_state_changed_cb(int result,
bt_adapter_le_device_discovery_state_e discovery_state,
bt_adapter_le_device_discovery_info_s *discovery_info,
return true;
}
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
bool __bt_gatt_primary_service_cb(bt_gatt_attribute_h service,
void *user_data)
{
memcpy(ipsp_iface_name, iface_name, strlen(iface_name));
}
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
void __bt_hf_sco_state_changed_cb(int result,
bool opened, void *user_data)
{
__bt_adapter_device_discovery_state_changed_cb, NULL);
if (ret != BT_ERROR_NONE)
TC_PRT("returns %s\n", __bt_get_error_message(ret));
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
ret = bt_adapter_le_set_device_discovery_state_changed_cb(
__bt_adapter_le_device_discovery_state_changed_cb, NULL);
if (ret != BT_ERROR_NONE)
break;
}
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_TABLE_HF: {
switch (test_id) {
default:
TC_PRT("returns %s\n", __bt_get_error_message(ret));
break;
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_DEVICE_DISCOVERY:
ret = bt_adapter_le_start_device_discovery();
TC_PRT("returns %s\n", __bt_get_error_message(ret));
TC_PRT("failed with [0x%04x]", ret);
break;
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_ADVERTISING: {
bt_adapter_le_advertising_state_changed_cb cb;
bt_adapter_le_advertising_params_s adv_params = { 0, };
break;
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_CLEAR_WHITE_LIST: {
ret = bt_adapter_le_clear_white_list();
TC_PRT("returns %s\n", __bt_get_error_message(ret));
break;
}
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_DEVICE_DISCOVERY_STATE_CHANGED_CB:
ret = bt_adapter_le_set_device_discovery_state_changed_cb(
__bt_adapter_le_device_discovery_state_changed_cb, NULL);
break;
}
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
case BT_UNIT_TEST_FUNCTION_GATT_FOREACH_PRIMARY_SERVICES: {
__bt_free_gatt_services();
}
break;
}
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
case BT_UNIT_TEST_TABLE_HF: {
switch (test_id) {
case BT_UNIT_TEST_FUNCTION_HF_INITIALIZE:
BT_UNIT_TEST_TABLE_IPSP,
BT_UNIT_TEST_TABLE_HDP,
BT_UNIT_TEST_TABLE_DPM,
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
BT_UNIT_TEST_TABLE_HF,
BT_UNIT_TEST_TABLE_PBAP_CLIENT,
#endif
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_SCAN_MODE,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_SCAN,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_STOP_SCAN,
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_DEVICE_DISCOVERY,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_STOP_DEVICE_DISCOVERY,
#endif
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_ADVERTISING_FILTER_POLICY,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_ADVERTISING_CONNECTABLE,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_ADVERTISING_NEW,
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_ADVERTISING,
#endif
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_STOP_ADVERTISING,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_ADD_WHITE_LIST,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_REMOVE_WHITE_LIST,
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_CLEAR_WHITE_LIST,
#endif
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_ENABLE_PRIVACY,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_REGISTER_SCAN_FILTER_SERVICE_UUID,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_REGISTER_SCAN_FILTER_SERVICE_SOLICITATION_UUID,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_UNREGISTER_ALL_SCAN_FILTERS,
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_SET_DEVICE_DISCOVERY_STATE_CHANGED_CB,
BT_UNIT_TEST_FUNCTION_ADAPTER_LE_UNSET_DEVICE_DISCOVERY_STATE_CHANGED_CB,
#endif
BT_UNIT_TEST_FUNCTION_ANCS_POSITIVE_ACTION,
BT_UNIT_TEST_FUNCTION_ANCS_NEGATIVE_ACTION,
BT_UNIT_TEST_FUNCTION_ANCS_GET_NOTI_ATTR,
-#ifdef BT_ENABLE_LEGACY_GATT_CLIENT
+#ifdef TIZEN_FEATURE_ENABLE_LEGACY_GATT_CLIENT
BT_UNIT_TEST_FUNCTION_GATT_FOREACH_PRIMARY_SERVICES,
BT_UNIT_TEST_FUNCTION_GATT_DISCOVER_CHARACTERISTICS,
BT_UNIT_TEST_FUNCTION_GATT_DISCOVER_CHARACTERISTIC_DESCRIPTORS,
BT_UNIT_TEST_FUNCTION_DPM_GET_LIMITED_DISCOVERABLE_STATE,
BT_UNIT_TEST_FUNCTION_DPM_SET_DATA_TRANSFER_STATE,
BT_UNIT_TEST_FUNCTION_DPM_GET_DATA_TRANSFER_STATE,
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
BT_UNIT_TEST_FUNCTION_HF_INITIALIZE = 1,
BT_UNIT_TEST_FUNCTION_HF_DEINITIALIZE,
BT_UNIT_TEST_FUNCTION_HF_NOTIFY_CALL_ANSWER,