for (int i = 0; i < count; i++) {
companion_group_type_e type;
char *uri_path;
+ char *group_name;
+ char *host_addr;
companion_group_information_get_type(groups[i], &type);
companion_group_information_get_uri_path(groups[i], &uri_path);
- msgb("%d. type : %d, uri path : %s", i+1, type, uri_path);
+ companion_group_information_get_name(groups[i], &group_name);
+ companion_group_information_get_host_addr(groups[i], &host_addr);
+
+ msgb("%d. type : %d, name : %s host address : %s uri path : %s", i+1,
+ type, group_name, host_addr, uri_path);
+
found_group_list = g_list_prepend(found_group_list, groups[i]);
+
+ g_free(uri_path);
+ g_free(group_name);
+ g_free(host_addr);
}
return RET_SUCCESS;