#ifdef __cplusplus
extern "C" {
#endif
-
+typedef void *nfc_se_h;
/*************Secure Element Callbacks*********/
typedef void (*net_nfc_se_set_se_cb)(
net_nfc_error_e result,
net_nfc_error_e net_nfc_client_se_open_internal_secure_element_sync(
net_nfc_se_type_e se_type,
- net_nfc_target_handle_h *handle);
+ nfc_se_h *handle);
net_nfc_error_e net_nfc_client_se_close_internal_secure_element(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
net_nfc_se_close_se_cb callback,
void *user_data);
net_nfc_error_e net_nfc_client_se_close_internal_secure_element_sync(
- net_nfc_target_handle_h handle);
+ nfc_se_h handle);
net_nfc_error_e net_nfc_client_se_get_atr(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
net_nfc_se_get_atr_cb callback,
void *user_data);
net_nfc_error_e net_nfc_client_se_get_atr_sync(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
data_h *atr);
net_nfc_error_e net_nfc_client_se_send_apdu(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
data_h apdu_data,
net_nfc_se_send_apdu_cb callback,
void *user_data);
net_nfc_error_e net_nfc_client_se_send_apdu_sync(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
data_h apdu_data,
data_h *response);
Name: capi-network-nfc
Summary: A NFC library in Native API
-Version: 0.3.12
+Version: 0.4.0
Release: 0
Group: Network & Connectivity/NFC
License: Apache-2.0
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_open_internal_secure_element_sync(
net_nfc_se_type_e se_type,
- net_nfc_target_handle_h *handle)
+ nfc_se_h* handle)
{
net_nfc_error_e result = NET_NFC_OK;
guint out_handle = 0;
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_close_internal_secure_element(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
net_nfc_se_close_se_cb callback,
void *user_data)
{
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_close_internal_secure_element_sync(
- net_nfc_target_handle_h handle)
+ nfc_se_h handle)
{
net_nfc_error_e result = NET_NFC_OK;
GError *error = NULL;
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_get_atr(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
net_nfc_se_get_atr_cb callback,
void *user_data)
{
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_get_atr_sync(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
data_h *atr)
{
net_nfc_error_e result = NET_NFC_OK;
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_send_apdu(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
data_h apdu_data,
net_nfc_se_send_apdu_cb callback,
void *user_data)
NET_NFC_EXPORT_API
net_nfc_error_e net_nfc_client_se_send_apdu_sync(
- net_nfc_target_handle_h handle,
+ nfc_se_h handle,
data_h apdu_data,
data_h *response)
{
{
net_nfc_error_e result;
net_nfc_se_type_e type;
- net_nfc_target_handle_h temp = NULL;
+ nfc_se_h temp = NULL;
LOG_BEGIN(); // LCOV_EXCL_LINE
type,
&temp);
if (result == NET_NFC_OK)
- *handle = (nfc_se_h)temp;
+ *handle = temp;
return nfc_common_convert_error_code(__func__, result);
/* LCOV_EXCL_STOP */
data_h response = NULL;
result = net_nfc_client_se_send_apdu_sync(
- (net_nfc_target_handle_h)handle,
+ handle,
command,
&response);
if (result == NET_NFC_OK && response != NULL) {
*atr_len = 0;
result = net_nfc_client_se_get_atr_sync(
- (net_nfc_target_handle_h)handle,
+ handle,
&response);
if (result == NET_NFC_OK && response != NULL) {
uint8_t *buffer;
CHECK_INVALID(handle == NULL);
result = net_nfc_client_se_close_internal_secure_element_sync(
- (net_nfc_target_handle_h)handle);
+ handle);
return nfc_common_convert_error_code(__func__, result);
/* LCOV_EXCL_STOP */