g_error_free(error);
}
- g_variant_get(parameter, "(uuu)",
- (guint *)&callback,
- (guint *)&user_param,
- (guint *)&handle);
+ g_variant_get(parameter, "(ttt)",
+ &callback,
+ &user_param,
+ &handle);
if (callback != NULL) {
ndef_message_h message;
if (net_nfc_client_manager_is_activated() == false)
return NET_NFC_NOT_ACTIVATED;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (net_nfc_gdbus_snep_call_server_start_sync(snep_proxy,
GPOINTER_TO_UINT(target),
if (net_nfc_client_manager_is_activated() == false)
return NET_NFC_NOT_ACTIVATED;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (net_nfc_gdbus_snep_call_client_start_sync(snep_proxy,
GPOINTER_TO_UINT(target),
if (net_nfc_client_manager_is_activated() == false)
return NET_NFC_NOT_ACTIVATED;
- parameter = g_variant_new("(uuu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data),
- GPOINTER_TO_UINT(target));
+ parameter = g_variant_new("(ttt)",
+ callback,
+ user_data,
+ target);
ndef_msg = net_nfc_util_gdbus_ndef_message_to_variant(msg);
void *user_data;
g_variant_get(parameter,
- "(uu)",
+ "(tt)",
&callback,
&user_data);
if (net_nfc_client_manager_is_activated() == false)
return NET_NFC_NOT_ACTIVATED;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (net_nfc_gdbus_snep_call_server_register_sync(snep_proxy,
sap,
return;
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
CHECK_ACTIVATED();
CHECK_APP_PERMISSION();
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
net_nfc_create_rawdata_from_ndef_message(message, &rawdata);
ret = net_nfc_client_p2p_send((net_nfc_target_handle_h)target,
/* skip check app permission */
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
net_nfc_create_rawdata_from_ndef_message(message, &rawdata);
ret = net_nfc_client_p2p_send((net_nfc_target_handle_h)target,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
nfc_snep_event_e snep_event;
CHECK_INIT();
CHECK_INVALID(target == NULL);
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
result = net_nfc_client_snep_start_server(
(net_nfc_target_handle_h)target,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
nfc_snep_event_e snep_event;
CHECK_INIT();
CHECK_INVALID(target == NULL);
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
result = net_nfc_client_snep_start_client(
(net_nfc_target_handle_h)target,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
callback((nfc_p2p_snep_h)target,
CHECK_INVALID(handle == NULL);
CHECK_INVALID(msg == NULL);
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
result = net_nfc_client_snep_send_client_request(
(net_nfc_target_handle_h)handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
switch ((int)event) {
CHECK_INVALID(san == NULL);
CHECK_INVALID(sap == 0);
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
result = net_nfc_client_snep_register_server(san, (sap_t)sap,
_snep_event_cb, parameter);
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
callback(nfc_common_convert_error_code(__func__, result),
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_ndef_format(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
callback(nfc_common_convert_error_code(__func__, result),
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_ndef_read(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_ndef_write(
handle,
return;
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
uint8_t *buffer = NULL;
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_transceive_data(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_authenticate_with_keyA(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_authenticate_with_keyB(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL) {
uint8_t *buffer = NULL;
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_read(
handle,
CHECK_INIT();
CHECK_INVALID(tag == NULL);
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
g_variant_unref(parameter);
ret = NET_NFC_OK;
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_write_block(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_write_page(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_increment(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_decrement(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_transfer(
handle,
}
g_variant_get((GVariant *)user_data,
- "(uu)",
- (guint *)&callback,
- (guint *)&user_param);
+ "(tt)",
+ &callback,
+ &user_param);
if (callback != NULL)
callback(nfc_common_convert_error_code(__func__, result), user_param);
if (ret == NET_NFC_OK) {
GVariant *parameter;
- parameter = g_variant_new("(uu)",
- GPOINTER_TO_UINT(callback),
- GPOINTER_TO_UINT(user_data));
+ parameter = g_variant_new("(tt)",
+ callback,
+ user_data);
if (parameter != NULL) {
ret = net_nfc_client_mifare_restore(
handle,