Name: capi-network-nfc
Summary: A NFC library in Native API
-Version: 0.3.0
+Version: 0.3.1
Release: 0
Group: Network & Connectivity/NFC
License: Apache-2.0
net_nfc_util_gdbus_variant_to_data_s(arg_apdu, &apdu);
- hce_handler.hce_event_cb((net_nfc_target_handle_h)arg_handle,
+ hce_handler.hce_event_cb((net_nfc_target_handle_h)GUINT_TO_POINTER(arg_handle),
(net_nfc_hce_event_t)arg_event, &apdu,
hce_handler.hce_data);
temp.length = data.length - sizeof(net_nfc_hce_data_t);
net_nfc_client_hce_process_received_event(header->type,
- (net_nfc_target_handle_h)header->handle, (data_h)&temp);
+ (net_nfc_target_handle_h)GUINT_TO_POINTER(header->handle), (data_h)&temp);
result = true;
} else {
header = (net_nfc_hce_data_t *)(temp.buffer + sizeof(len));
header->type = type;
- header->handle = (int)handle;
+ header->handle = GPOINTER_TO_UINT(handle);
if (data != NULL && data->length > 0) {
memcpy(header->data, data->buffer, data->length);
net_nfc_util_gdbus_variant_to_data_s(arg_data, &buffer_data);
- callback((net_nfc_target_handle_h)arg_handle,
+ callback((net_nfc_target_handle_h)GUINT_TO_POINTER(arg_handle),
arg_se_type, &buffer_data,
se_esedetecthandler.se_ese_detected_data);
(net_nfc_se_open_se_cb)func_data->se_callback;
se_callback(result,
- (net_nfc_target_handle_h)out_handle,
+ (net_nfc_target_handle_h)GUINT_TO_POINTER(out_handle),
func_data->se_data);
}