int ret;
ret = agent_remove_mo_at_device(device_uuid2);
+#if 0
if (ret != COMP_ERROR_NONE) {
comp_group_notify_group_dismiss(ret);
g_free(device_uuid1);
g_free(device_uuid2);
device_uuid1 = NULL;
}
+#endif
return FALSE;
}
int ret;
ret = agent_remove_cred_at_local(device_uuid2);
+#if 0
if (ret != COMP_ERROR_NONE) {
comp_group_notify_group_dismiss(ret);
g_free(device_uuid1);
g_free(device_uuid2);
device_uuid1 = NULL;
}
-
+#endif
return FALSE;
}
g_variant_get(parameters, "(i)", &result);
LOG_DEBUG("Result : %d", result);
} else if (0 == g_strcmp0(signal_name, "mot_done")) {
- g_variant_get(parameters, "(i)", &result);
- LOG_DEBUG("Result : %d", result);
+ comp_mot_device_t *device;
+ comp_context_t *comp_ctx = comp_context_get_context();
- g_timeout_add(1000, __perform_agent_pairwise, NULL);
-#if 0
- if (result != 0 && result != 49) {
- comp_group_notify_group_invite(result);
- mot_dev2 = false;
- } else {
- if (mot_dev2 == false)
- g_timeout_add(1000, __perform_group_mot_dev2, NULL);
- else
- g_timeout_add(1000, __perform_agent_pairwise, NULL);
+ if (comp_ctx && (TRUE == comp_ctx->mot_me) ) {
+ g_timeout_add(1000, __perform_agent_pairwise, NULL);
}
-#endif
} else if (0 == g_strcmp0(signal_name, "remove_mo_done")) {
g_variant_get(parameters, "(i)", &result);
LOG_DEBUG("Result : %d", result);
- if (result != 0) {
- comp_group_notify_group_dismiss(result);
- g_free(device_uuid1);
- device_uuid1 = NULL;
- g_free(device_uuid2);
- device_uuid1 = NULL;
- } else
- g_timeout_add(1000, __perform_remove_cred_at_local, NULL);
+ g_timeout_add(1000, __perform_remove_cred_at_local, NULL);
+
} else if (0 == g_strcmp0(signal_name, "remove_cred_local_done")) {
g_variant_get(parameters, "(i)", &result);
LOG_DEBUG("Result : %d", result);
} else if (0 == g_strcmp0(signal_name, "unpair_done")) {
g_variant_get(parameters, "(i)", &result);
LOG_DEBUG("Result : %d", result);
-
+#if 0
if (result != 0) {
comp_group_notify_group_dismiss(result);
g_free(device_uuid1);
device_uuid1 = NULL;
g_free(device_uuid2);
device_uuid1 = NULL;
- } else
- g_timeout_add(1000, __perform_remove_mot_dev2, NULL);
+ }
+#endif
+ g_timeout_add(1000, __perform_remove_mot_dev2, NULL);
}
}
static int _subscribe_event()