Name: iotcon
Summary: Tizen IoT Connectivity
-Version: 0.3.8
+Version: 0.3.9
Release: 0
Group: Network & Connectivity/Service
License: Apache-2.0
API int iotcon_attributes_create(iotcon_attributes_h *ret_attributes)
{
+ FN_CALL;
iotcon_attributes_h attributes;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_destroy(iotcon_attributes_h attributes)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == attributes, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_attributes_remove(iotcon_attributes_h attributes, const char *key)
{
+ FN_CALL;
gboolean ret = FALSE;
iotcon_value_h value = NULL;
API int iotcon_attributes_get_int(iotcon_attributes_h attributes, const char *key,
int *val)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_add_int(iotcon_attributes_h attributes, const char *key,
int val)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_bool(iotcon_attributes_h attributes, const char *key,
bool *val)
{
+ FN_CALL;
icl_basic_s *real = NULL;
iotcon_value_h value = NULL;
API int iotcon_attributes_add_bool(iotcon_attributes_h attributes, const char *key,
bool val)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_double(iotcon_attributes_h attributes,
const char *key, double *val)
{
+ FN_CALL;
icl_basic_s *real = NULL;
iotcon_value_h value = NULL;
API int iotcon_attributes_add_double(iotcon_attributes_h attributes,
const char *key, double val)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_str(iotcon_attributes_h attributes, const char *key,
char **val)
{
+ FN_CALL;
icl_basic_s *real = NULL;
iotcon_value_h value = NULL;
API int iotcon_attributes_add_str(iotcon_attributes_h attributes, const char *key,
char *val)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_byte_str(iotcon_attributes_h attributes, const char *key,
unsigned char **val, int *len)
{
+ FN_CALL;
iotcon_value_h value = NULL;
icl_val_byte_str_s *real = NULL;
API int iotcon_attributes_add_byte_str(iotcon_attributes_h attributes,
const char *key, unsigned char *val, int len)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_is_null(iotcon_attributes_h attributes, const char *key,
bool *is_null)
{
+ FN_CALL;
icl_basic_s *real = NULL;
iotcon_value_h value = NULL;
API int iotcon_attributes_add_null(iotcon_attributes_h attributes, const char *key)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_list(iotcon_attributes_h attributes, const char *key,
iotcon_list_h *list)
{
+ FN_CALL;
iotcon_value_h value = NULL;
icl_val_list_s *real = NULL;
API int iotcon_attributes_add_list(iotcon_attributes_h attributes, const char *key,
iotcon_list_h list)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_attributes(iotcon_attributes_h src, const char *key,
iotcon_attributes_h *dest)
{
+ FN_CALL;
icl_val_attributes_s *real = NULL;
iotcon_value_h value = NULL;
API int iotcon_attributes_add_attributes(iotcon_attributes_h attributes,
const char *key, iotcon_attributes_h val)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_attributes_get_type(iotcon_attributes_h attributes, const char *key,
iotcon_type_e *type)
{
+ FN_CALL;
iotcon_value_h value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
int icl_attributes_set_value(iotcon_attributes_h attributes, const char *key,
iotcon_value_h value)
{
+ FN_CALL;
RETV_IF(NULL == attributes, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == value, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_attributes_get_keys_count(iotcon_attributes_h attributes,
unsigned int *count)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == attributes, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == count, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_attributes_clone(iotcon_attributes_h attributes,
iotcon_attributes_h *attributes_clone)
{
+ FN_CALL;
int ret;
iotcon_attributes_h temp = NULL;
API int iotcon_attributes_foreach(iotcon_attributes_h attributes,
iotcon_attributes_cb cb, void *user_data)
{
+ FN_CALL;
GHashTableIter iter;
gpointer key;
API int iotcon_device_info_get_property(iotcon_device_info_h device_info,
iotcon_device_info_e property, char **value)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == device_info, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == value, IOTCON_ERROR_INVALID_PARAMETER);
iotcon_device_info_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_set_device_name(const char *device_name)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_platform_info_get_property(iotcon_platform_info_h platform_info,
iotcon_platform_info_e property, char **value)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == platform_info, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == value, IOTCON_ERROR_INVALID_PARAMETER);
iotcon_platform_info_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_polling_get_interval(int *interval)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == interval, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_polling_set_interval(int interval)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(interval <= ICL_IOTY_TIME_INTERVAL_MIN, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_polling_invoke(void)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
ic_utils_cond_signal(IC_UTILS_COND_POLLING);
resource = resource_list->data;
resource->is_found = true;
cb = (iotcon_found_resource_cb)cb_data->cb;
+ INFO("Call the callback");
if (IOTCON_FUNC_STOP == cb(resource, IOTCON_ERROR_NONE, cb_data->user_data)) {
/* Stop */
INFO("Stop the callback");
API int iotcon_list_create(iotcon_type_e type, iotcon_list_h *ret_list)
{
+ FN_CALL;
iotcon_list_h list;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_int(iotcon_list_h list, int val, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_bool(iotcon_list_h list, bool val, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_double(iotcon_list_h list, double val, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_str(iotcon_list_h list, char *val, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_byte_str(iotcon_list_h list, unsigned char *val, int len,
int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_list(iotcon_list_h list, iotcon_list_h val, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_add_attributes(iotcon_list_h list, iotcon_attributes_h val, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_get_nth_int(iotcon_list_h list, int pos, int *val)
{
+ FN_CALL;
int ival, ret;
iotcon_value_h value;
API int iotcon_list_get_nth_bool(iotcon_list_h list, int pos, bool *val)
{
+ FN_CALL;
int ret;
bool bval;
iotcon_value_h value;
API int iotcon_list_get_nth_double(iotcon_list_h list, int pos, double *val)
{
+ FN_CALL;
int ret;
double dbval;
iotcon_value_h value;
API int iotcon_list_get_nth_str(iotcon_list_h list, int pos, char **val)
{
+ FN_CALL;
int ret;
char *strval;
iotcon_value_h value;
API int iotcon_list_get_nth_byte_str(iotcon_list_h list, int pos,
unsigned char **val, int *len)
{
+ FN_CALL;
unsigned char *byte_val;
int ret, byte_len;
iotcon_value_h value;
API int iotcon_list_get_nth_list(iotcon_list_h src, int pos, iotcon_list_h *dest)
{
+ FN_CALL;
int ret;
iotcon_value_h value;
iotcon_list_h list_val;
API int iotcon_list_get_nth_attributes(iotcon_list_h list, int pos,
iotcon_attributes_h *attributes)
{
+ FN_CALL;
int ret;
iotcon_value_h value;
iotcon_attributes_h attributes_val;
API int iotcon_list_remove_nth(iotcon_list_h list, int pos)
{
+ FN_CALL;
iotcon_value_h value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_list_get_type(iotcon_list_h list, iotcon_type_e *type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_list_get_length(iotcon_list_h list, unsigned int *length)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == length, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_list_foreach_int(iotcon_list_h list, iotcon_list_int_cb cb,
void *user_data)
{
+ FN_CALL;
GList *cur;
int index = 0;
icl_basic_s *real = NULL;
API int iotcon_list_foreach_bool(iotcon_list_h list, iotcon_list_bool_cb cb,
void *user_data)
{
+ FN_CALL;
GList *cur;
int index = 0;
icl_basic_s *real = NULL;
API int iotcon_list_foreach_double(iotcon_list_h list, iotcon_list_double_cb cb,
void *user_data)
{
+ FN_CALL;
GList *cur;
int index = 0;
icl_basic_s *real = NULL;
API int iotcon_list_foreach_str(iotcon_list_h list, iotcon_list_str_cb cb,
void *user_data)
{
+ FN_CALL;
GList *cur;
int index = 0;
icl_basic_s *real = NULL;
API int iotcon_list_foreach_byte_str(iotcon_list_h list, iotcon_list_byte_str_cb cb,
void *user_data)
{
+ FN_CALL;
GList *cur;
int index = 0;
icl_val_byte_str_s *real = NULL;
API int iotcon_list_foreach_list(iotcon_list_h list, iotcon_list_list_cb cb,
void *user_data)
{
+ FN_CALL;
int index = 0;
GList *cur = NULL;
icl_val_list_s *real = NULL;
API int iotcon_list_foreach_attributes(iotcon_list_h list,
iotcon_list_attributes_cb cb, void *user_data)
{
+ FN_CALL;
int index = 0;
GList *cur = NULL;
icl_val_attributes_s *real = NULL;
API int iotcon_list_destroy(iotcon_list_h list)
{
+ FN_CALL;
GList *cur = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
void *user_data,
iotcon_lite_resource_h *resource_handle)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_lite_resource_destroy(iotcon_lite_resource_h resource)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_lite_resource_update_attributes(iotcon_lite_resource_h resource,
iotcon_attributes_h attributes)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_lite_resource_get_attributes(iotcon_lite_resource_h resource,
iotcon_attributes_h *attributes)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == attributes, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_observers_create(iotcon_observers_h *ret_observers)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == ret_observers, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_observers_destroy(iotcon_observers_h observers)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == observers, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_observers_add(iotcon_observers_h observers, int obs_id)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == observers, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_observers_remove(iotcon_observers_h observers, int obs_id)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == observers, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_options_create(iotcon_options_h *ret_options)
{
+ FN_CALL;
iotcon_options_h options;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_options_destroy(iotcon_options_h options)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_options_add(iotcon_options_h options, unsigned short id,
const char *data)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
RETVM_IF(1 < options->ref_count, IOTCON_ERROR_INVALID_PARAMETER,
API int iotcon_options_remove(iotcon_options_h options, unsigned short id)
{
+ FN_CALL;
gboolean is_removed;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_options_lookup(iotcon_options_h options, unsigned short id,
char **data)
{
+ FN_CALL;
char *value;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_options_foreach(iotcon_options_h options,
iotcon_options_foreach_cb cb, void *user_data)
{
+ FN_CALL;
GHashTableIter iter;
gpointer key, value;
API int iotcon_presence_get_host_address(iotcon_presence_h presence,
char **host_address)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_get_connectivity_type(iotcon_presence_h presence,
iotcon_connectivity_type_e *connectivity_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_get_resource_type(iotcon_presence_h presence,
char **resource_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == resource_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_response_get_host_address(
iotcon_presence_response_h response, char **host_address)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_response_get_connectivity_type(
iotcon_presence_response_h response, iotcon_connectivity_type_e *connectivity_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_response_get_resource_type(
iotcon_presence_response_h response, char **resource_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == resource_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_response_get_result(iotcon_presence_response_h response,
iotcon_presence_result_e *result)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == result, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_presence_response_get_trigger(iotcon_presence_response_h response,
iotcon_presence_trigger_e *trigger)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == trigger, IOTCON_ERROR_INVALID_PARAMETER);
iotcon_provisioning_device_h device,
iotcon_connectivity_type_e *connectivity_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == device, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_provisioning_device_get_id(iotcon_provisioning_device_h device,
char **device_id)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == device, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == device_id, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_provisioning_device_get_oxm(iotcon_provisioning_device_h device,
iotcon_provisioning_oxm_e *oxm)
{
+ FN_CALL;
int ret;
iotcon_provisioning_oxm_e temp;
API int iotcon_provisioning_device_is_owned(iotcon_provisioning_device_h device,
bool *is_owned)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == device, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == device->device, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_provisioning_acl_create(iotcon_provisioning_acl_h *acl)
{
+ FN_CALL;
iotcon_provisioning_acl_h temp;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_provisioning_acl_destroy(iotcon_provisioning_acl_h acl)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == acl, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_provisioning_acl_set_subject(iotcon_provisioning_acl_h acl,
iotcon_provisioning_device_h device)
{
+ FN_CALL;
OCProvisionDev_t *dev;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_provisioning_acl_set_all_subject(iotcon_provisioning_acl_h acl)
{
+ FN_CALL;
OCProvisionDev_t *dev;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_provisioning_acl_add_resource(iotcon_provisioning_acl_h acl,
const char *uri_path)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == acl, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_provisioning_acl_set_permission(iotcon_provisioning_acl_h acl,
int permission)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == acl, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(permission <= 0 || IOTCON_PERMISSION_FULL_CONTROL < permission,
API int iotcon_query_create(iotcon_query_h *ret_query)
{
+ FN_CALL;
iotcon_query_h query;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_query_destroy(iotcon_query_h query)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_query_get_resource_type(iotcon_query_h query,
char **resource_type)
{
+ FN_CALL;
char *type;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_query_get_interface(iotcon_query_h query, char **resource_iface)
{
+ FN_CALL;
char *iface = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_query_set_resource_type(iotcon_query_h query,
const char *resource_type)
{
+ FN_CALL;
int length_old = 0;
int length_new = 0;
char *value = NULL;
API int iotcon_query_set_interface(iotcon_query_h query, const char *resource_iface)
{
+ FN_CALL;
int length_old = 0;
int length_new = 0;
char *value = NULL;
/* The full length of query should be less than or equal to 64. */
API int iotcon_query_add(iotcon_query_h query, const char *key, const char *value)
{
+ FN_CALL;
int query_len;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_query_remove(iotcon_query_h query, const char *key)
{
+ FN_CALL;
gboolean is_removed;
int query_len;
char *value;
API int iotcon_query_lookup(iotcon_query_h query, const char *key, char **data)
{
+ FN_CALL;
char *value = NULL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_query_foreach(iotcon_query_h query, iotcon_query_foreach_cb cb,
void *user_data)
{
+ FN_CALL;
GHashTableIter iter;
gpointer key, value;
API int iotcon_remote_resource_start_caching(iotcon_remote_resource_h resource,
iotcon_remote_resource_cached_representation_changed_cb cb, void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_remote_resource_stop_caching(iotcon_remote_resource_h resource)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
iotcon_remote_resource_h resource,
iotcon_representation_h *representation)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == representation, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get(iotcon_remote_resource_h resource,
iotcon_query_h query, iotcon_remote_resource_response_cb cb, void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
iotcon_remote_resource_response_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
iotcon_remote_resource_response_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
API int iotcon_remote_resource_delete(iotcon_remote_resource_h resource,
iotcon_remote_resource_response_cb cb, void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
iotcon_remote_resource_observe_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_remote_resource_observe_deregister(
iotcon_remote_resource_h resource)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
iotcon_remote_resource_state_changed_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_remote_resource_stop_monitoring(iotcon_remote_resource_h resource)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
iotcon_found_resource_cb cb,
void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_remote_resource_destroy(iotcon_remote_resource_h resource)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_clone(iotcon_remote_resource_h src,
iotcon_remote_resource_h *dest)
{
+ FN_CALL;
int ret;
iotcon_remote_resource_h resource = NULL;
API int iotcon_remote_resource_get_uri_path(iotcon_remote_resource_h resource,
char **uri_path)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_host_address(
iotcon_remote_resource_h resource, char **host_address)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_connectivity_type(
iotcon_remote_resource_h resource, iotcon_connectivity_type_e *connectivity_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_device_id(iotcon_remote_resource_h resource,
char **device_id)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == device_id, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_device_name(iotcon_remote_resource_h resource,
char **device_name)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == device_name, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_types(iotcon_remote_resource_h resource,
iotcon_resource_types_h *types)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_interfaces(iotcon_remote_resource_h resource,
iotcon_resource_interfaces_h *ifaces)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_policies(iotcon_remote_resource_h resource,
uint8_t *policies)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == policies, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_options(iotcon_remote_resource_h resource,
iotcon_options_h *options)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,
iotcon_options_h options)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_get_checking_interval(iotcon_remote_resource_h resource,
int *interval)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == interval, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_remote_resource_set_checking_interval(iotcon_remote_resource_h resource,
int interval)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_representation_create(iotcon_representation_h *ret_repr)
{
+ FN_CALL;
iotcon_representation_h repr;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_representation_destroy(iotcon_representation_h repr)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_get_uri_path(iotcon_representation_h repr,
char **uri_path)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_set_uri_path(iotcon_representation_h repr,
const char *uri_path)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_get_resource_types(iotcon_representation_h repr,
iotcon_resource_types_h *types)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_set_resource_types(iotcon_representation_h repr,
iotcon_resource_types_h types)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_get_resource_interfaces(
iotcon_representation_h repr, iotcon_resource_interfaces_h *ifaces)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_set_resource_interfaces(
iotcon_representation_h repr, iotcon_resource_interfaces_h ifaces)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_set_attributes(iotcon_representation_h repr,
iotcon_attributes_h attributes)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_get_attributes(iotcon_representation_h repr,
iotcon_attributes_h *attributes)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == attributes, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_add_child(iotcon_representation_h parent,
iotcon_representation_h child)
{
+ FN_CALL;
iotcon_representation_h repr;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_representation_remove_child(iotcon_representation_h parent,
iotcon_representation_h child)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_foreach_children(iotcon_representation_h parent,
iotcon_children_cb cb, void *user_data)
{
+ FN_CALL;
GList *list, *next;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_representation_get_child_count(iotcon_representation_h parent,
unsigned int *count)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == count, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_representation_get_nth_child(iotcon_representation_h parent,
int pos, iotcon_representation_h *child)
{
+ FN_CALL;
iotcon_representation_h repr;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_request_get_host_address(iotcon_request_h request,
char **host_address)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_request_get_connectivity_type(iotcon_request_h request,
iotcon_connectivity_type_e *connectivity_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_request_get_representation(iotcon_request_h request,
iotcon_representation_h *repr)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_request_get_request_type(iotcon_request_h request,
iotcon_request_type_e *type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_request_get_options(iotcon_request_h request,
iotcon_options_h *options)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
/* The content of the request should not be freed by user. */
API int iotcon_request_get_query(iotcon_request_h request, iotcon_query_h *query)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_request_get_observe_type(iotcon_request_h request,
iotcon_observe_type_e *observe_type)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == observe_type, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_request_get_observe_id(iotcon_request_h request, int *observe_id)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == observe_id, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_interfaces_create(iotcon_resource_interfaces_h *ret_ifaces)
{
+ FN_CALL;
iotcon_resource_interfaces_h ifaces;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_interfaces_destroy(iotcon_resource_interfaces_h ifaces)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_interfaces_add(iotcon_resource_interfaces_h ifaces,
const char *iface)
{
+ FN_CALL;
char *resource_iface;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_interfaces_remove(iotcon_resource_interfaces_h ifaces,
const char *iface)
{
+ FN_CALL;
GList *node;
char *node_data;
API int iotcon_resource_interfaces_foreach(iotcon_resource_interfaces_h ifaces,
iotcon_resource_interfaces_foreach_cb cb, void *user_data)
{
+ FN_CALL;
GList *node;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_interfaces_clone(iotcon_resource_interfaces_h src,
iotcon_resource_interfaces_h *dest)
{
+ FN_CALL;
GList *node;
char *resource_iface;
iotcon_resource_interfaces_h resource_ifaces;
API int iotcon_resource_types_create(iotcon_resource_types_h *ret_types)
{
+ FN_CALL;
iotcon_resource_types_h types;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_types_destroy(iotcon_resource_types_h types)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
* Duplicate strings are not allowed. */
API int iotcon_resource_types_add(iotcon_resource_types_h types, const char *type)
{
+ FN_CALL;
char *resource_type;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_types_remove(iotcon_resource_types_h types,
const char *type)
{
+ FN_CALL;
GList *found_node;
char *node_data;
API int iotcon_resource_types_foreach(iotcon_resource_types_h types,
iotcon_resource_types_foreach_cb cb, void *user_data)
{
+ FN_CALL;
GList *node;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_types_clone(iotcon_resource_types_h src,
iotcon_resource_types_h *dest)
{
+ FN_CALL;
GList *node;
char *resource_type;
iotcon_resource_types_h resource_types;
void *user_data,
iotcon_resource_h *resource_handle)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_set_request_handler(iotcon_resource_h resource,
iotcon_request_handler_cb cb, void *user_data)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_bind_child_resource(iotcon_resource_h parent,
iotcon_resource_h child)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_unbind_child_resource(iotcon_resource_h parent,
iotcon_resource_h child)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_resource_get_child_count(iotcon_resource_h resource,
unsigned int *count)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == count, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_get_nth_child(iotcon_resource_h parent, int index,
iotcon_resource_h *child)
{
+ FN_CALL;
iotcon_resource_h resource;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
/* The content of the resource should not be freed by user. */
API int iotcon_resource_get_uri_path(iotcon_resource_h resource, char **uri_path)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_get_types(iotcon_resource_h resource,
iotcon_resource_types_h *types)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_get_interfaces(iotcon_resource_h resource,
iotcon_resource_interfaces_h *ifaces)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_get_policies(iotcon_resource_h resource, uint8_t *policies)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == policies, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_resource_notify(iotcon_resource_h resource,
iotcon_representation_h repr, iotcon_observers_h observers, iotcon_qos_e qos)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_response_destroy(iotcon_response_h resp)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_response_get_options(iotcon_response_h resp,
iotcon_options_h *options)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_response_get_representation(iotcon_response_h resp,
iotcon_representation_h *repr)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_response_get_result(iotcon_response_h resp,
iotcon_response_result_e *result)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
RETV_IF(NULL == result, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_response_set_result(iotcon_response_h resp,
iotcon_response_result_e result)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_response_set_representation(iotcon_response_h resp,
iotcon_representation_h repr)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_response_set_options(iotcon_response_h resp,
iotcon_options_h options)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_initialize(const char *file_path)
{
+ FN_CALL;
return icl_initialize(file_path, false);
}
API int iotcon_get_timeout(int *timeout_seconds)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == timeout_seconds, IOTCON_ERROR_INVALID_PARAMETER);
API int iotcon_set_timeout(int timeout_seconds)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
if (ICL_TIMEOUT_MAX < timeout_seconds || timeout_seconds <= 0) {
ERR("timeout_seconds(%d) must be in range from 1 to 3600", timeout_seconds);
API int iotcon_add_generated_pin_cb(iotcon_generated_pin_cb cb, void *user_data)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
API int iotcon_remove_generated_pin_cb(iotcon_generated_pin_cb cb)
{
+ FN_CALL;
int ret;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);