Change-Id: I8cc6eff03a7035fae2a5816f13e6d118d6d2abeb
Signed-off-by: Youngjae Shin <yj99.shin@samsung.com>
#include <string.h>
#include <sys/time.h>
#include <string.h>
#include <sys/time.h>
-/* SLP library header */
-#include "net_nfc.h"
-#include "net_nfc_internal_se.h"
-
/* local header */
#include "Debug.h"
#include "TerminalInterface.h"
/* local header */
#include "Debug.h"
#include "TerminalInterface.h"
if (initialized == false)
{
#if 0
if (initialized == false)
{
#if 0
- if ((ret = net_nfc_initialize()) == NET_NFC_OK)
+ if ((ret = net_nfc_client_initialize()) == NET_NFC_OK)
{
if ((ret = net_nfc_set_response_callback(&NFCTerminal::nfcResponseCallback, this)) == NET_NFC_OK)
{
{
if ((ret = net_nfc_set_response_callback(&NFCTerminal::nfcResponseCallback, this)) == NET_NFC_OK)
{
{
if (isInitialized() && isClosed() == false && seHandle != NULL)
{
{
if (isInitialized() && isClosed() == false && seHandle != NULL)
{
- net_nfc_close_internal_secure_element(seHandle, this);
+ net_nfc_client_se_close_internal_secure_element_sync(seHandle);
- net_nfc_deinitialize();
+ net_nfc_client_deinitialize();
}
bool NFCTerminal::open()
}
bool NFCTerminal::open()
if (isInitialized() && isClosed() == false && seHandle != NULL)
{
if (isInitialized() && isClosed() == false && seHandle != NULL)
{
- if ((ret = net_nfc_close_internal_secure_element(seHandle, this)) == NET_NFC_OK)
+ if ((ret = net_nfc_client_se_close_internal_secure_element_sync(seHandle)) == NET_NFC_OK)
response.releaseBuffer();
#endif
net_nfc_create_data(&data, command.getBuffer(), command.getLength());
response.releaseBuffer();
#endif
net_nfc_create_data(&data, command.getBuffer(), command.getLength());
- net_nfc_send_apdu(seHandle, data, this);
+ net_nfc_client_se_send_apdu_sync(seHandle, data, NULL);
#ifndef ASYNC
syncLock();
rv = waitTimedCondition(3);
#ifndef ASYNC
syncLock();
rv = waitTimedCondition(3);
/* standard library header */
/* standard library header */
-/* SLP library header */
-#include "net_nfc_typedef.h"
+/* NFC-Manager header */
+#include "net_nfc.h"
/* local header */
#include "Terminal.h"
/* local header */
#include "Terminal.h"
Name: smartcard-plugin-nfc
Summary: Smartcard plugin nfc
Name: smartcard-plugin-nfc
Summary: Smartcard plugin nfc
Release: 0
Group: libs
License: Apache License, Version 2.0
Release: 0
Group: libs
License: Apache License, Version 2.0
Source1001: smartcard-plugin-nfc.manifest
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dlog)
Source1001: smartcard-plugin-nfc.manifest
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(nfc)
+BuildRequires: nfc-client-lib-devel
BuildRequires: pkgconfig(smartcard-service-common)
BuildRequires: cmake
BuildRequires: gettext-tools
BuildRequires: pkgconfig(smartcard-service-common)
BuildRequires: cmake
BuildRequires: gettext-tools
-#%post
-# -n nfc-common-lib -p /sbin/ldconfig
-
-#%postun
-# -n nfc-common-lib -p /sbin/ldconfig
-
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)