{
int i;
guint size;
- bluetooth_device_info_t info;
+ bluetooth_device_info_t *info;
BT_CHECK_PARAMETER(out_param2, return);
BT_CHECK_PARAMETER(dev_list, return);
for (i = 0; i < size; i++) {
bluetooth_device_info_t *dev_info = NULL;
- info = g_array_index(out_param2,
+ info = &g_array_index(out_param2,
bluetooth_device_info_t, i);
- dev_info = g_memdup(&info, sizeof(bluetooth_device_info_t));
+ dev_info = g_memdup(info, sizeof(bluetooth_device_info_t));
if (dev_info)
g_ptr_array_add(*dev_list, (gpointer)dev_info);
#ifndef TIZEN_TEST_EMUL
int ret;
- ret = _bt_get_adapter_path(_bt_gdbus_get_system_gconn(), NULL);
+ ret = _bt_get_adapter_path(_bt_get_system_private_conn(), NULL);
if (ret != BLUETOOTH_ERROR_NONE)
return BLUETOOTH_ADAPTER_DISABLED;
int result;
BT_INFO_C("### Enable adapter");
+ _bt_print_api_caller_name();
retv_if(bluetooth_check_adapter() == BLUETOOTH_ADAPTER_ENABLED,
BLUETOOTH_ERROR_DEVICE_ALREADY_ENABLED);
int result;
BT_INFO_C("### Disable adapter");
+ _bt_print_api_caller_name();
BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
{
int result;
- BT_INFO("Recover adapter");
+ BT_INFO_C("### Recover adapter");
BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();