API int iotcon_list_get_length(iotcon_list_h list, unsigned int *length)
{
RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == length, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
*length = g_list_length(list->list);
int *ifaces)
{
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
*ifaces = repr->interfaces;
unsigned int *count)
{
RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == count, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == parent->children, IOTCON_ERROR_INVALID_PARAMETER);
*count = g_list_length(parent->children);
API int iotcon_state_get_keys_count(iotcon_state_h state, unsigned int *count)
{
RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == count, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == state->hash_table, IOTCON_ERROR_INVALID_PARAMETER);
*count = g_hash_table_size(state->hash_table);
iotcon_representation_h cloned_repr, copied_repr;
RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
ret = iotcon_representation_create(&cloned_repr);
if (IOTCON_ERROR_NONE != ret) {
iotcon_resource_types_h resource_types;
RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
resource_types = calloc(1, sizeof(struct icl_resource_types));
if (NULL == resource_types) {
RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == is_null, IOTCON_ERROR_INVALID_PARAMETER);
value = (iotcon_value_h) g_hash_table_lookup(state->hash_table, key);
if (NULL == value) {