RETV_IF(NULL == cb_data, G_SOURCE_REMOVE);
if (cb_data->cb) {
- for (i = 0; i < cb_data->resource_count; i++) {
+ for (i = 0; i < cb_data->resource_count; i++)
cb_data->cb(cb_data->resource_list[i], IOTCON_ERROR_NONE, cb_data->user_data);
- }
}
icl_destroy_find_cb_data(cb_data);
iotcon_resource_types_destroy(types);
continue;
}
- for (; node; node = node->next) {
+ for (; node; node = node->next)
iotcon_resource_interfaces_add(ifaces, node->value);
- }
/* Resource Properties */
properties = ic_ioty_parse_oic_properties(res_payload->bitmap);
/* interfaces */
if (repr->interfaces) {
- for (c = repr->interfaces->iface_list; c; c = c->next) {
+ for (c = repr->interfaces->iface_list; c; c = c->next)
OCRepPayloadAddInterface(repr_payload, c->data);
- }
} else {
OCRepPayloadAddInterface(repr_payload, IOTCON_INTERFACE_DEFAULT);
}
/* resource types */
if (repr->res_types) {
- for (c = repr->res_types->type_list; c; c = c->next) {
+ for (c = repr->res_types->type_list; c; c = c->next)
OCRepPayloadAddResourceType(repr_payload, c->data);
- }
}
/* state */
if (NULL == list1->list || NULL == list2->list)
return !!(list1->list - list2->list);
- for (c = list1->list; c; c = c->next) {
+ for (c = list1->list; c; c = c->next)
g_list_find_custom(list2->list, c->data, _icl_repr_compare_state_value_custom);
- }
return IC_EQUAL;
}