typedef struct _llcp_client_data
{
GDBusConnection *connection;
- char *id;
+ GDBusMethodInvocation *invocation;
net_nfc_target_handle_h handle;
net_nfc_llcp_socket_t socket;
void *user_data;
if (g_dbus_connection_emit_signal(
client_data->connection,
- client_data->id,
+ g_dbus_method_invocation_get_sender(client_data->invocation),
"/org/tizen/NetNfcService/Llcp",
"org.tizen.NetNfcService.Llcp",
"Error",
if (g_dbus_connection_emit_signal(
client_data->connection,
- client_data->id,
+ g_dbus_method_invocation_get_sender(client_data->invocation),
"/org/tizen/NetNfcService/Llcp",
"org.tizen.NetNfcService.Llcp",
"Incoming",
client_data->connection = g_dbus_method_invocation_get_connection(
data->invocation);
- client_data->id = g_strdup(
- g_dbus_method_invocation_get_sender(data->invocation));
+ client_data->invocation = data->invocation;
client_data->handle = (net_nfc_target_handle_h)data->handle;
if (net_nfc_controller_llcp_create_socket(&socket,
client_data->connection = g_dbus_method_invocation_get_connection(
data->invocation);
- client_data->id = g_strdup(
- g_dbus_method_invocation_get_sender(data->invocation));
+ client_data->invocation = data->invocation;
client_data->handle = (net_nfc_target_handle_h)data->handle;
client_data->socket = data->client_socket;
client_data->connection = g_dbus_method_invocation_get_connection(
data->invocation);
- client_data->id = g_strdup(
- g_dbus_method_invocation_get_sender(data->invocation));
+ client_data->invocation = data->invocation;
client_data->handle = (net_nfc_target_handle_h)data->handle;
if (net_nfc_controller_llcp_create_socket(&socket,
client_data->connection = g_dbus_method_invocation_get_connection(
data->invocation);
- client_data->id = g_strdup(
- g_dbus_method_invocation_get_sender(data->invocation));
+ client_data->invocation = data->invocation;
client_data->handle = (net_nfc_target_handle_h)data->handle;
if (net_nfc_controller_llcp_create_socket(&socket,