AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} COMMON_SRCS)
-pkg_check_modules(common_pkgs REQUIRED glib-2.0 gio-2.0 gio-unix-2.0 dlog bluetooth-api
- libssl libtzplatform-config)
+pkg_check_modules(common_pkgs REQUIRED glib-2.0 gio-2.0 gio-unix-2.0 dlog vconf
+ libssl libtzplatform-config capi-network-bluetooth)
FOREACH(flag ${common_pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
#include <fcntl.h>
// platform header
-#include <bluetooth-api.h>
#include <vconf.h>
+#include <bluetooth.h>
// nfc-manager header
#include "net_nfc_util_internal.h"
net_nfc_conn_handover_carrier_type_e carrier_type)
{
net_nfc_conn_handover_carrier_state_e cps = NET_NFC_CONN_HANDOVER_CARRIER_INACTIVATE;
+ bt_adapter_state_e state = BT_ADAPTER_DISABLED;
if (NET_NFC_CONN_HANDOVER_CARRIER_BT== carrier_type)
{
- int ret = bluetooth_check_adapter();
+ bt_adapter_get_state(&state);
- switch (ret)
+ switch (state)
{
- case BLUETOOTH_ADAPTER_ENABLED :
+ case BT_ADAPTER_ENABLED :
cps = NET_NFC_CONN_HANDOVER_CARRIER_ACTIVATE;
break;
-
- case BLUETOOTH_ADAPTER_CHANGING_ENABLE :
+ /*
+ case BT_ADAPTER_CHANGING_ENABLE :
cps = NET_NFC_CONN_HANDOVER_CARRIER_ACTIVATING;
break;
-
- case BLUETOOTH_ADAPTER_DISABLED :
- case BLUETOOTH_ADAPTER_CHANGING_DISABLE :
- case BLUETOOTH_ERROR_NO_RESOURCES :
+ */
+ case BT_ADAPTER_DISABLED :
+ //case BT_ADAPTER_CHANGING_DISABLE :
default :
cps = NET_NFC_CONN_HANDOVER_CARRIER_INACTIVATE;
break;
}
else
{
- bluetooth_device_address_t local_address;
-
- memset(&local_address, 0x00, sizeof(bluetooth_device_address_t));
+ char *local_address = NULL;
- bluetooth_get_local_address(&local_address);
+ bt_adapter_get_address(&local_address);
- memcpy(bt_addr, &local_address.addr, BLUETOOTH_ADDRESS_LENGTH);
+ memcpy(bt_addr, local_address, BLUETOOTH_ADDRESS_LENGTH);
}
}
void net_nfc_util_enable_bluetooth(void)
{
- bluetooth_enable_adapter();
+ bt_adapter_enable();
}
bool net_nfc_util_strip_string(char *buffer, int buffer_length)
SET(NFC_DAEMON "nfc-manager-daemon")
FILE(GLOB DAEMON_SRCS *.c)
+#LIST(REMOVE_ITEM DAEMON_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/net_nfc_server_process_handover.c)
+LIST(REMOVE_ITEM DAEMON_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/net_nfc_server_handover_bt.c)
IF(X11_SUPPORT)
SET(WIN_PKG "ecore-x")
INCLUDE(FindPkgConfig)
IF(ARM_TARGET)
pkg_check_modules(daemon_pkgs REQUIRED aul glib-2.0 gio-unix-2.0 security-server
- vconf dlog tapi appsvc libcurl bluetooth-api libssl svi capi-media-wav-player
+ vconf dlog tapi appsvc libcurl libssl svi capi-media-wav-player
pkgmgr pkgmgr-info capi-network-wifi pmapi wifi-direct
libtzplatform-config neardal ${WIN_PKG})
ELSE(ARM_TARGET)
pkg_check_modules(daemon_pkgs REQUIRED aul glib-2.0 gio-unix-2.0 security-server
- vconf dlog tapi appsvc libcurl bluetooth-api libssl svi capi-media-wav-player
+ vconf dlog tapi appsvc libcurl libssl svi capi-media-wav-player
pkgmgr pkgmgr-info capi-network-wifi pmapi libtzplatform-config neardal
${WIN_PKG})
ENDIF(ARM_TARGET)
* limitations under the License.
*/
-#include "bluetooth-api.h"
#include "net_nfc_server_handover.h"
#include "net_nfc_debug_internal.h"
#include "net_nfc_util_internal.h"
#include "net_nfc_server_process_snep.h"
#include "net_nfc_util_gdbus_internal.h"
#include "net_nfc_server_handover_bss.h"
-#include "net_nfc_server_handover_bt.h"
+//#include "net_nfc_server_handover_bt.h"
typedef void (*_net_nfc_server_handover_create_carrier_msg_cb)(
net_nfc_error_e result,
switch (context->current_type)
{
+/*
case NET_NFC_CONN_HANDOVER_CARRIER_BT :
NFC_DBG("[NET_NFC_CONN_HANDOVER_CARRIER_BT]");
net_nfc_server_handover_bt_get_carrier_record(
_net_nfc_server_handover_bt_get_carrier_record_cb, context);
break;
-
+*/
case NET_NFC_CONN_HANDOVER_CARRIER_WIFI_BSS :
NFC_DBG("[NET_NFC_CONN_HANDOVER_CARRIER_WIFI_BSS]");
/* process carrier record */
switch (type)
{
+ /*
case NET_NFC_CONN_HANDOVER_CARRIER_BT :
NFC_DBG("[NET_NFC_CONN_HANDOVER_CARRIER_BT]");
net_nfc_server_handover_bt_process_carrier_record(carrier,
_net_nfc_server_handover_bt_process_carrier_record_cb, context);
break;
+ */
case NET_NFC_CONN_HANDOVER_CARRIER_WIFI_BSS :
NFC_DBG("[NET_NFC_CONN_HANDOVER_CARRIER_WIFI_BSS]");
/* start post process */
if (NET_NFC_CONN_HANDOVER_CARRIER_BT == context->type)
{
+ /*
net_nfc_server_handover_bt_post_process(&context->data,
_net_nfc_server_handover_client_post_process_cb, context);
+ */
}
else
{
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(tapi)
-BuildRequires: pkgconfig(bluetooth-api)
BuildRequires: pkgconfig(capi-network-wifi)
+BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(svi)