gboolean group_device_find(Group *group, GDBusMethodInvocation *invocation,
gpointer user_data)
{
- //group_complete_device_find(group, invocation, result);
+ int ret;
+
+ ret = comp_group_find_mot_enabled_devices();
+
+ group_complete_device_find(group, invocation, ret);
return TRUE;
}
notify_group_device_invite_result(result);
}
+// Find MOT enabled devices
+int comp_group_find_mot_enabled_devices()
+{
+ int ret;
+ LOG_BEGIN();
+
+ ret = agent_find_mot_enable_devices();
+
+ LOG_END();
+
+ return ret;
+}
+
//Join to device in group (async)
int comp_group_invite(gchar *uuid, gchar *pin)
{
while (g_variant_iter_loop(iter_row, "{sv}", &key, &val)) {
if (strcasecmp(key, "deviceId") == 0) {
const char *deviceid = g_variant_get_string(val, &len);
- LOG_DEBUG("deviceId=%s", deviceid);
+ LOG_DEBUG("deviceId = %s", deviceid);
} else if (strcasecmp(key, "adapter") == 0) {
int adapter = g_variant_get_uint32(val);
LOG_DEBUG("adapter = %d", adapter);
- } else if (strcasecmp(key, "adapter") == 0) {
+ } else if (strcasecmp(key, "flags") == 0) {
int flags = g_variant_get_uint32(val);
LOG_DEBUG("flags = %d", flags);
} else if (strcasecmp(key, "port") == 0) {
<arg type="i" name="result" direction="out" />
</method>
<method name="DeviceFind">
- <arg type="i" name="group_count" direction="out" />
- <arg type="aa{sv}" name="groups" direction="out" />
<arg type="i" name="result" direction="out" />
</method>
<method name="DeviceInvite">