//if request type is "put" and resource type is "operation",
//then It is join request. CLIENT send device information to OWNER(Device info Exchange)
//resource type "operation" don't have "get" request type.
+
int ret;
iotcon_request_type_e type;
result = comp_group_create(group_name);
arg = g_strdup(group_name);
- free(group_name);
} else if (strcmp(command, COMP_REQ_INVITE_DEVICE) == 0) {
LOG_DEBUG("Request invite");
char *group_name;
result = comp_group_invite(group_name, uuid, "12341234");
arg = g_strdup(uuid);
- free(group_name);
- free(uuid);
} else if (strcmp(command, COMP_REQ_EJECT_DEVICE) == 0) {
LOG_DEBUG("Request eject");
char *group_name;
result = comp_group_dismiss(group_name, uuid);
arg = g_strdup(uuid);
- free(group_name);
- free(uuid);
} else if (strcmp(command, COMP_REQ_DELETE_GROUP) == 0) {
LOG_DEBUG("Request delete group");
arg = g_strdup("DELETED");
iotcon_query_lookup(query, "data", &data);
LOG_DEBUG("Receive Data = %s", data);
arg = g_strdup(data);
- free(data);
#endif
}