return FALSE;
}
+static gboolean __perform_mot_me(gpointer data)
+{
+ int ret;
+ comp_context_t *comp_ctx = comp_context_get_context();
+ ret = agent_mot_device(comp_ctx->device_uuid, "12341234");
+ if (ret != COMP_ERROR_NONE) {
+ LOG_ERR("agent_mot_device(%s) Failed", comp_ctx->device_uuid);
+ }
+
+ return FALSE;
+}
static void _agent_signal_handler(GDBusConnection *connection,
const gchar *sender_name, const gchar *object_path, const gchar *interface_name,
gsize len = 0;
int mot_enb_devs_cnt = 0;
comp_mot_device_t *device;
+ comp_context_t *comp_ctx = comp_context_get_context();
if (NULL == parameters) {
LOG_ERR("No MOT enabled devices found");
while (g_variant_iter_loop(iter_row, "{sv}", &key, &val)) {
if (strcasecmp(key, "deviceId") == 0) {
const char *deviceid = g_variant_get_string(val, &len);
+ if (comp_ctx && (FALSE == comp_ctx->mot_me) &&
+ strcasecmp(deviceid, comp_ctx->device_uuid) == 0) {
+ g_timeout_add(10, __perform_mot_me, NULL);
+ comp_ctx->mot_me = TRUE;
+ }
LOG_DEBUG("deviceId = %s", deviceid);
device->device_id = g_strdup(deviceid);
+
} else if (strcasecmp(key, "adapter") == 0) {
int adapter = g_variant_get_uint32(val);
LOG_DEBUG("adapter = %d", adapter);
g_variant_get(parameters, "(i)", &result);
LOG_DEBUG("Result : %d", result);
+ 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
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);