Apply feature (http://tizen.org/feature/iot.oic) 12/57412/8
authorsung.goo.kim <sung.goo.kim@samsung.com>
Wed, 20 Jan 2016 02:29:08 +0000 (11:29 +0900)
committersung.goo.kim <sung.goo.kim@samsung.com>
Thu, 21 Jan 2016 05:11:17 +0000 (14:11 +0900)
Change-Id: Ifb4ca895431852a59560ed9cd10b14a9137beca8

39 files changed:
common/ic-common.h
common/ic-utils.c
common/ic-utils.h
daemon/CMakeLists.txt
lib/CMakeLists.txt
lib/icl-dbus.c
lib/icl-device.c
lib/icl-list.c
lib/icl-lite-resource.c
lib/icl-observation.c
lib/icl-options.c
lib/icl-presence.c
lib/icl-query.c
lib/icl-remote-resource-caching.c
lib/icl-remote-resource-crud.c
lib/icl-remote-resource-monitoring.c
lib/icl-remote-resource.c
lib/icl-representation.c
lib/icl-request.c
lib/icl-resource-types.c
lib/icl-resource.c
lib/icl-response.c
lib/icl-state.c
lib/icl.c
lib/include/iotcon-client.h
lib/include/iotcon-internal.h
lib/include/iotcon-list.h
lib/include/iotcon-lite-resource.h
lib/include/iotcon-observers.h
lib/include/iotcon-options.h
lib/include/iotcon-query.h
lib/include/iotcon-remote-resource.h
lib/include/iotcon-representation.h
lib/include/iotcon-request.h
lib/include/iotcon-resource-types.h
lib/include/iotcon-resource.h
lib/include/iotcon-response.h
lib/include/iotcon-state.h
lib/include/iotcon.h

index 481f2e3..ac623fa 100644 (file)
@@ -42,4 +42,6 @@
 #define IC_INTERFACE_GROUP "oic.mi.grp"
 #define IC_INTERFACE_READONLY "oic.if.r"
 
+#define IC_FEATURE_OIC "http://tizen.org/feature/iot.oic"
+
 #endif /* __IOT_CONNECTIVITY_MANAGER_INTERNAL_COMMON_H__ */
index 0038ee8..309e5ed 100644 (file)
 #include <string.h>
 #include <errno.h>
 #include <glib.h>
+#include <system_info.h>
 
 #include "iotcon-types.h"
 #include "ic-common.h"
 #include "ic-log.h"
 #include "ic-utils.h"
 
+
+static int _ic_oic_feature_supported = -1;
+
 char* ic_utils_strdup(const char *src)
 {
        char *dest = NULL;
@@ -118,4 +122,17 @@ void ic_utils_gvariant_array_free(GVariant **value)
        free(value);
 }
 
+bool ic_utils_check_oic_feature_supported()
+{
+#ifdef TZ_VER_3
+       if (_ic_oic_feature_supported < 0) {
+               bool feature_supported = false;
+               system_info_get_platform_bool(IC_FEATURE_OIC, &feature_supported);
+               _ic_oic_feature_supported = feature_supported? 1: 0;
+       }
+       return _ic_oic_feature_supported;
+#else
+       return true;
+#endif
+}
 
index 4ac9091..7bda22d 100644 (file)
@@ -33,5 +33,6 @@ char* ic_utils_dbus_decode_str(char *src);
 int ic_utils_convert_interface_flag(iotcon_interface_e src, char **dest);
 int ic_utils_convert_interface_string(const char *src, iotcon_interface_e *dest);
 void ic_utils_gvariant_array_free(GVariant **value);
+bool ic_utils_check_oic_feature_supported();
 
 #endif /* __IOT_CONNECTIVITY_MANAGER_INTERNAL_COMMON_UTILITY_H__ */
index ab9c4e6..744ec4a 100644 (file)
@@ -7,7 +7,7 @@ SET(DAEMON_SRCS ${DAEMON_SRCS} ${CMAKE_SOURCE_DIR}/common/ic-dbus.c)
 SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/common/ic-dbus.c
        PROPERTIES GENERATED TRUE)
 
-SET(PKG_MODULES gio-2.0 dlog gio-unix-2.0 capi-system-info capi-system-system-settings
+SET(PKG_MODULES gio-2.0 dlog gio-unix-2.0 capi-system-system-settings capi-system-info
        iotivity)
 
 IF(TZ_VER_3)
index 5d704ad..fd31cce 100644 (file)
@@ -7,7 +7,7 @@ SET(CLIENT_SRCS ${CLIENT_SRCS} ${CMAKE_SOURCE_DIR}/common/ic-dbus.c)
 SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/common/ic-dbus.c
        PROPERTIES GENERATED TRUE)
 
-pkg_check_modules(client_pkgs REQUIRED glib-2.0 dlog capi-base-common gio-2.0
+pkg_check_modules(client_pkgs REQUIRED glib-2.0 dlog capi-base-common gio-2.0 capi-system-info
        gio-unix-2.0)
 INCLUDE_DIRECTORIES(${client_pkgs_INCLUDE_DIRS})
 LINK_DIRECTORIES(${client_pkgs_LIBRARY_DIRS})
index 7ceb929..61021a2 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "iotcon.h"
 #include "ic-common.h"
+#include "ic-utils.h"
 #include "ic-dbus.h"
 #include "icl.h"
 #include "icl-dbus.h"
@@ -117,9 +118,9 @@ API int iotcon_add_connection_changed_cb(iotcon_connection_changed_cb cb, void *
        unsigned int id;
        icl_cb_container_s *cb_container;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
-
        if (_dbus_find_conn_changed_cb(cb, user_data)) {
                ERR("This callback is already registered.");
                return IOTCON_ERROR_ALREADY;
@@ -154,6 +155,7 @@ API int iotcon_remove_connection_changed_cb(iotcon_connection_changed_cb cb,
 {
        icl_cb_container_s *cb_container;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
        cb_container = _dbus_find_conn_changed_cb(cb, user_data);
index f024ea1..18ac244 100644 (file)
@@ -63,6 +63,7 @@ typedef struct {
 API int iotcon_device_info_get_property(iotcon_device_info_h device_info,
                iotcon_device_info_e property, char **value)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == device_info, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == value, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -149,6 +150,7 @@ API int iotcon_get_device_info(const char *host_address,
        int64_t signal_number;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -205,6 +207,7 @@ API int iotcon_get_device_info(const char *host_address,
 API int iotcon_platform_info_get_property(iotcon_platform_info_h platform_info,
                iotcon_platform_info_e property, char **value)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == platform_info, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == value, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -335,6 +338,7 @@ API int iotcon_get_platform_info(const char *host_address,
        int64_t signal_number;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
index 72d5015..17a4581 100644 (file)
@@ -18,6 +18,7 @@
 #include <errno.h>
 
 #include "iotcon-types.h"
+#include "ic-utils.h"
 #include "icl.h"
 #include "icl-state.h"
 #include "icl-representation.h"
@@ -39,6 +40,7 @@ API int iotcon_list_create(iotcon_type_e type, iotcon_list_h *ret_list)
 {
        iotcon_list_h list;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_list, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (type < IOTCON_TYPE_INT || IOTCON_TYPE_STATE < type) {
@@ -65,6 +67,7 @@ API int iotcon_list_add_int(iotcon_list_h list, int val, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_INT != list->type, IOTCON_ERROR_INVALID_TYPE, "Invalid Type(%d)",
                        list->type);
@@ -83,6 +86,7 @@ API int iotcon_list_add_bool(iotcon_list_h list, bool val, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_BOOL != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
@@ -101,6 +105,7 @@ API int iotcon_list_add_double(iotcon_list_h list, double val, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_DOUBLE != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
@@ -119,6 +124,7 @@ API int iotcon_list_add_str(iotcon_list_h list, char *val, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_STR != list->type, IOTCON_ERROR_INVALID_TYPE,
@@ -138,6 +144,7 @@ API int iotcon_list_add_byte_str(iotcon_list_h list, unsigned char *val, int len
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_BYTE_STR != list->type, IOTCON_ERROR_INVALID_TYPE,
@@ -157,6 +164,7 @@ API int iotcon_list_add_list(iotcon_list_h list, iotcon_list_h val, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_LIST != list->type, IOTCON_ERROR_INVALID_TYPE,
@@ -176,6 +184,7 @@ API int iotcon_list_add_state(iotcon_list_h list, iotcon_state_h val, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_STATE != list->type, IOTCON_ERROR_INVALID_TYPE,
@@ -196,6 +205,7 @@ API int iotcon_list_get_nth_int(iotcon_list_h list, int pos, int *val)
        int ival, ret;
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -224,6 +234,7 @@ API int iotcon_list_get_nth_bool(iotcon_list_h list, int pos, bool *val)
        bool bval;
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -252,6 +263,7 @@ API int iotcon_list_get_nth_double(iotcon_list_h list, int pos, double *val)
        double dbval;
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -280,6 +292,7 @@ API int iotcon_list_get_nth_str(iotcon_list_h list, int pos, char **val)
        char *strval;
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -309,6 +322,7 @@ API int iotcon_list_get_nth_byte_str(iotcon_list_h list, int pos, unsigned char
        int ret, byte_len;
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -339,6 +353,7 @@ API int iotcon_list_get_nth_list(iotcon_list_h src, int pos, iotcon_list_h *dest
        iotcon_value_h value;
        iotcon_list_h list_val;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == src->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
@@ -367,6 +382,7 @@ API int iotcon_list_get_nth_state(iotcon_list_h list, int pos, iotcon_state_h *s
        iotcon_value_h value;
        iotcon_state_h state_val;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
@@ -393,6 +409,7 @@ API int iotcon_list_remove_nth(iotcon_list_h list, int pos)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list->list, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -412,6 +429,7 @@ API int iotcon_list_remove_nth(iotcon_list_h list, int pos)
 
 API int iotcon_list_get_type(iotcon_list_h list, iotcon_type_e *type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -423,6 +441,7 @@ API int iotcon_list_get_type(iotcon_list_h list, iotcon_type_e *type)
 
 API int iotcon_list_get_length(iotcon_list_h list, unsigned int *length)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == length, IOTCON_ERROR_INVALID_PARAMETER);
        if (NULL == list->list)
@@ -450,6 +469,7 @@ API int iotcon_list_foreach_int(iotcon_list_h list, iotcon_list_int_cb cb,
        int index = 0;
        icl_basic_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_INT != list->type, IOTCON_ERROR_INVALID_TYPE, "Invalid Type(%d)",
                        list->type);
@@ -475,6 +495,7 @@ API int iotcon_list_foreach_bool(iotcon_list_h list, iotcon_list_bool_cb cb,
        int index = 0;
        icl_basic_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_BOOL != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
@@ -500,6 +521,7 @@ API int iotcon_list_foreach_double(iotcon_list_h list, iotcon_list_double_cb cb,
        int index = 0;
        icl_basic_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_DOUBLE != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
@@ -525,6 +547,7 @@ API int iotcon_list_foreach_str(iotcon_list_h list, iotcon_list_str_cb cb,
        int index = 0;
        icl_basic_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_STR != list->type, IOTCON_ERROR_INVALID_TYPE, "Invalid Type(%d)",
                        list->type);
@@ -550,6 +573,7 @@ API int iotcon_list_foreach_byte_str(iotcon_list_h list, iotcon_list_byte_str_cb
        int index = 0;
        icl_val_byte_str_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_BYTE_STR != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
@@ -575,6 +599,7 @@ API int iotcon_list_foreach_list(iotcon_list_h list, iotcon_list_list_cb cb,
        GList *cur = NULL;
        icl_val_list_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_LIST != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
@@ -600,6 +625,7 @@ API int iotcon_list_foreach_state(iotcon_list_h list, iotcon_list_state_cb cb,
        GList *cur = NULL;
        icl_val_state_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(IOTCON_TYPE_STATE != list->type, IOTCON_ERROR_INVALID_TYPE,
                        "Invalid Type(%d)", list->type);
index 1043d15..8f211ed 100644 (file)
@@ -301,6 +301,7 @@ API int iotcon_lite_resource_create(const char *uri_path,
        int64_t signal_number;
        char signal_name[IC_DBUS_SIGNAL_LENGTH];
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(ICL_URI_PATH_LENGTH_MAX < strlen(uri_path),
@@ -375,6 +376,7 @@ API int iotcon_lite_resource_destroy(iotcon_lite_resource_h resource)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (0 == resource->handle) { /* disconnected iotcon dbus */
@@ -413,6 +415,7 @@ API int iotcon_lite_resource_update_state(iotcon_lite_resource_h resource,
 {
        int ret;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (state)
@@ -434,6 +437,7 @@ API int iotcon_lite_resource_update_state(iotcon_lite_resource_h resource,
 API int iotcon_lite_resource_get_state(iotcon_lite_resource_h resource,
                iotcon_state_h *state)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
 
index 162d6c7..bdc9c56 100644 (file)
 #include <glib.h>
 
 #include "iotcon-types.h"
+#include "ic-utils.h"
 #include "icl.h"
 #include "icl-observation.h"
 
 API int iotcon_observers_create(iotcon_observers_h *ret_observers)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_observers, IOTCON_ERROR_INVALID_PARAMETER);
 
        iotcon_observers_h observers = calloc(1, sizeof(struct icl_observers));
@@ -48,6 +50,7 @@ API void iotcon_observers_destroy(iotcon_observers_h observers)
 
 API int iotcon_observers_add(iotcon_observers_h observers, int obs_id)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == observers, IOTCON_ERROR_INVALID_PARAMETER);
 
        observers->observers_list = g_list_append(observers->observers_list,
@@ -59,6 +62,7 @@ API int iotcon_observers_add(iotcon_observers_h observers, int obs_id)
 
 API int iotcon_observers_remove(iotcon_observers_h observers, int obs_id)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == observers, IOTCON_ERROR_INVALID_PARAMETER);
 
        observers->observers_list = g_list_remove(observers->observers_list,
index 00fa3c2..21c9a1c 100644 (file)
@@ -69,6 +69,7 @@ API int iotcon_options_create(iotcon_options_h *ret_options)
 {
        iotcon_options_h options;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_options, IOTCON_ERROR_INVALID_PARAMETER);
 
        options = calloc(1, sizeof(struct icl_options));
@@ -105,6 +106,7 @@ API void iotcon_options_destroy(iotcon_options_h options)
 API int iotcon_options_add(iotcon_options_h options, unsigned short id,
                const char *data)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(1 < options->ref_count, IOTCON_ERROR_INVALID_PARAMETER,
                        "Don't modify it. It is already set.");
@@ -128,6 +130,7 @@ API int iotcon_options_remove(iotcon_options_h options, unsigned short id)
 {
        gboolean is_removed;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(1 < options->ref_count, IOTCON_ERROR_INVALID_PARAMETER,
                        "Don't modify it. It is already set.");
@@ -145,6 +148,7 @@ API int iotcon_options_lookup(iotcon_options_h options, unsigned short id, char
 {
        char *value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == data, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -166,6 +170,7 @@ API int iotcon_options_foreach(iotcon_options_h options, iotcon_options_foreach_
        GHashTableIter iter;
        gpointer key, value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
index 39ba78d..5e66170 100644 (file)
@@ -55,6 +55,7 @@ API int iotcon_start_presence(unsigned int time_to_live)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(ICL_PRESENCE_TTL_SECONDS_MAX < time_to_live, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -82,6 +83,7 @@ API int iotcon_stop_presence(void)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
 
        ic_dbus_call_stop_presence_sync(icl_dbus_get_object(), &ret, NULL, &error);
@@ -172,6 +174,7 @@ API int iotcon_add_presence_cb(const char *host_address,
        icl_presence_s *presence;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == presence_handle, IOTCON_ERROR_INVALID_PARAMETER);
@@ -251,6 +254,7 @@ API int iotcon_remove_presence_cb(iotcon_presence_h presence)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (0 == presence->sub_id) { /* disconnected iotcon dbus */
@@ -290,6 +294,7 @@ API int iotcon_remove_presence_cb(iotcon_presence_h presence)
 
 API int iotcon_presence_get_host_address(iotcon_presence_h presence, char **host_address)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -302,6 +307,7 @@ API int iotcon_presence_get_host_address(iotcon_presence_h presence, char **host
 API int iotcon_presence_get_connectivity_type(iotcon_presence_h presence,
                iotcon_connectivity_type_e *connectivity_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -314,6 +320,7 @@ API int iotcon_presence_get_connectivity_type(iotcon_presence_h presence,
 API int iotcon_presence_get_resource_type(iotcon_presence_h presence,
                char **resource_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == presence, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == resource_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -326,6 +333,7 @@ API int iotcon_presence_get_resource_type(iotcon_presence_h presence,
 API int iotcon_presence_response_get_host_address(iotcon_presence_response_h response,
                char **host_address)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -338,6 +346,7 @@ API int iotcon_presence_response_get_host_address(iotcon_presence_response_h res
 API int iotcon_presence_response_get_connectivity_type(
                iotcon_presence_response_h response, iotcon_connectivity_type_e *connectivity_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -350,6 +359,7 @@ API int iotcon_presence_response_get_connectivity_type(
 API int iotcon_presence_response_get_resource_type(iotcon_presence_response_h response,
                char **resource_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == resource_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -362,6 +372,7 @@ API int iotcon_presence_response_get_resource_type(iotcon_presence_response_h re
 API int iotcon_presence_response_get_result(iotcon_presence_response_h response,
                iotcon_presence_result_e *result)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == result, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -374,6 +385,7 @@ API int iotcon_presence_response_get_result(iotcon_presence_response_h response,
 API int iotcon_presence_response_get_trigger(iotcon_presence_response_h response,
                iotcon_presence_trigger_e *trigger)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == trigger, IOTCON_ERROR_INVALID_PARAMETER);
 
index 3041511..019497a 100644 (file)
@@ -28,6 +28,7 @@
 
 API int iotcon_query_create(iotcon_query_h *ret_query)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_query, IOTCON_ERROR_INVALID_PARAMETER);
 
        iotcon_query_h query = calloc(1, sizeof(struct icl_query));
@@ -60,6 +61,7 @@ API int iotcon_query_get_resource_types(iotcon_query_h query,
        char *resource_type = NULL;
        iotcon_resource_types_h types_temp = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -91,6 +93,7 @@ API int iotcon_query_get_interface(iotcon_query_h query, iotcon_interface_e *ifa
 {
        char *iface_str = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == iface, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -112,6 +115,7 @@ API int iotcon_query_set_resource_types(iotcon_query_h query, iotcon_resource_ty
        char *value = NULL;
        char *resource_type = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
 
        value = g_hash_table_lookup(query->hash, ICL_QUERY_KEY_RESOURCE_TYPE);
@@ -144,6 +148,7 @@ API int iotcon_query_set_interface(iotcon_query_h query, iotcon_interface_e ifac
        char *value = NULL;
        char iface_str[ICL_QUERY_LENGTH_MAX] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
 
        value = g_hash_table_lookup(query->hash, ICL_QUERY_KEY_INTERFACE);
@@ -171,6 +176,7 @@ API int iotcon_query_add(iotcon_query_h query, const char *key, const char *valu
 {
        int query_len;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == value, IOTCON_ERROR_INVALID_PARAMETER);
@@ -196,6 +202,7 @@ API int iotcon_query_remove(iotcon_query_h query, const char *key)
        int query_len;
        char *value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -222,6 +229,7 @@ API int iotcon_query_lookup(iotcon_query_h query, const char *key, char **data)
 {
        char *value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == data, IOTCON_ERROR_INVALID_PARAMETER);
@@ -243,6 +251,7 @@ API int iotcon_query_foreach(iotcon_query_h query, iotcon_query_foreach_cb cb,
        GHashTableIter iter;
        gpointer key, value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
index 31b82b4..5411e04 100644 (file)
@@ -93,6 +93,7 @@ API int iotcon_remote_resource_start_caching(iotcon_remote_resource_h resource,
        icl_caching_s *cb_container;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -154,6 +155,7 @@ API int iotcon_remote_resource_stop_caching(iotcon_remote_resource_h resource)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -192,6 +194,7 @@ API int iotcon_remote_resource_get_cached_representation(
                iotcon_remote_resource_h resource,
                iotcon_representation_h *representation)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == representation, IOTCON_ERROR_INVALID_PARAMETER);
 
index f11b47d..65ffa6c 100644 (file)
@@ -224,6 +224,7 @@ API int iotcon_remote_resource_get(iotcon_remote_resource_h resource,
        GVariant *arg_remote_resource;
        icl_on_response_s *cb_container;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
@@ -261,6 +262,7 @@ API int iotcon_remote_resource_put(iotcon_remote_resource_h resource,
        GVariant *arg_query;
        icl_on_response_s *cb_container;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
@@ -306,6 +308,7 @@ API int iotcon_remote_resource_post(iotcon_remote_resource_h resource,
        GVariant *arg_remote_resource;
        icl_on_response_s *cb_container;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
@@ -353,6 +356,7 @@ API int iotcon_remote_resource_delete(iotcon_remote_resource_h resource,
        GVariant *arg_remote_resource;
        icl_on_response_s *cb_container;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
@@ -469,6 +473,7 @@ API int iotcon_remote_resource_observe_register(iotcon_remote_resource_h resourc
        GVariant *arg_query, *arg_remote_resource;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
@@ -531,6 +536,7 @@ API int iotcon_remote_resource_observe_deregister(iotcon_remote_resource_h resou
        GError *error = NULL;
        GVariant *arg_options;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        if (0 == resource->observe_handle) {
index d1c8038..c940b26 100644 (file)
@@ -22,6 +22,7 @@
 #include "iotcon-internal.h"
 #include "icl.h"
 #include "icl-dbus.h"
+#include "ic-utils.h"
 #include "icl-remote-resource.h"
 
 typedef struct {
@@ -68,6 +69,7 @@ API int iotcon_remote_resource_start_monitoring(iotcon_remote_resource_h resourc
        icl_monitoring_s *cb_container;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
@@ -130,6 +132,7 @@ API int iotcon_remote_resource_stop_monitoring(iotcon_remote_resource_h resource
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
index a802d5a..9759ee7 100644 (file)
@@ -119,6 +119,7 @@ API int iotcon_find_resource(const char *host_address,
        icl_found_resource_s *cb_container;
        char signal_name[IC_DBUS_SIGNAL_LENGTH] = {0};
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
        if (resource_type && (ICL_RESOURCE_TYPE_LENGTH_MAX < strlen(resource_type))) {
@@ -189,6 +190,7 @@ API int iotcon_remote_resource_create(const char *host_address,
        FN_CALL;
        iotcon_remote_resource_h resource = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == resource_types, IOTCON_ERROR_INVALID_PARAMETER);
@@ -291,6 +293,7 @@ API int iotcon_remote_resource_clone(iotcon_remote_resource_h src,
        int ret;
        iotcon_remote_resource_h resource = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -339,6 +342,7 @@ API int iotcon_remote_resource_clone(iotcon_remote_resource_h src,
 API int iotcon_remote_resource_get_uri_path(iotcon_remote_resource_h resource,
                char **uri_path)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -352,6 +356,7 @@ API int iotcon_remote_resource_get_uri_path(iotcon_remote_resource_h resource,
 API int iotcon_remote_resource_get_host_address(iotcon_remote_resource_h resource,
                char **host_address)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -365,6 +370,7 @@ API int iotcon_remote_resource_get_host_address(iotcon_remote_resource_h resourc
 API int iotcon_remote_resource_get_connectivity_type(iotcon_remote_resource_h resource,
                iotcon_connectivity_type_e *connectivity_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -378,6 +384,7 @@ API int iotcon_remote_resource_get_connectivity_type(iotcon_remote_resource_h re
 API int iotcon_remote_resource_get_device_id(iotcon_remote_resource_h resource,
                char **device_id)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == device_id, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -390,6 +397,7 @@ API int iotcon_remote_resource_get_device_id(iotcon_remote_resource_h resource,
 API int iotcon_remote_resource_get_types(iotcon_remote_resource_h resource,
                iotcon_resource_types_h *types)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -402,6 +410,7 @@ API int iotcon_remote_resource_get_types(iotcon_remote_resource_h resource,
 API int iotcon_remote_resource_get_interfaces(iotcon_remote_resource_h resource,
                int *ifaces)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -414,6 +423,7 @@ API int iotcon_remote_resource_get_interfaces(iotcon_remote_resource_h resource,
 API int iotcon_remote_resource_get_properties(iotcon_remote_resource_h resource,
                int *properties)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == properties, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -425,6 +435,7 @@ API int iotcon_remote_resource_get_properties(iotcon_remote_resource_h resource,
 API int iotcon_remote_resource_get_options(iotcon_remote_resource_h resource,
                iotcon_options_h *options)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -437,6 +448,7 @@ API int iotcon_remote_resource_get_options(iotcon_remote_resource_h resource,
 API int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,
                iotcon_options_h options)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (options)
@@ -514,6 +526,7 @@ API int iotcon_remote_resource_get_time_interval(int *time_interval)
        GError *error = NULL;
        int ret, arg_time_interval;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == time_interval, IOTCON_ERROR_INVALID_PARAMETER);
 
        ic_dbus_call_encap_get_time_interval_sync(icl_dbus_get_object(), &arg_time_interval,
@@ -536,6 +549,7 @@ API int iotcon_remote_resource_set_time_interval(int time_interval)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(ICL_REMOTE_RESOURCE_MAX_TIME_INTERVAL < time_interval || time_interval <= 0,
                        IOTCON_ERROR_INVALID_PARAMETER);
 
index 26ddddd..f7fdac0 100644 (file)
@@ -48,6 +48,7 @@ API int iotcon_representation_create(iotcon_representation_h *ret_repr)
        errno = 0;
        iotcon_representation_h repr;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_repr, IOTCON_ERROR_INVALID_PARAMETER);
 
        repr = calloc(1, sizeof(struct icl_representation_s));
@@ -93,6 +94,7 @@ API void iotcon_representation_destroy(iotcon_representation_h repr)
 
 API int iotcon_representation_get_uri_path(iotcon_representation_h repr, char **uri_path)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -104,6 +106,7 @@ API int iotcon_representation_get_uri_path(iotcon_representation_h repr, char **
 API int iotcon_representation_set_uri_path(iotcon_representation_h repr,
                const char *uri_path)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -120,6 +123,7 @@ API int iotcon_representation_set_uri_path(iotcon_representation_h repr,
 API int iotcon_representation_get_resource_types(iotcon_representation_h repr,
                iotcon_resource_types_h *types)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -131,6 +135,7 @@ API int iotcon_representation_get_resource_types(iotcon_representation_h repr,
 API int iotcon_representation_set_resource_types(iotcon_representation_h repr,
                iotcon_resource_types_h types)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (types)
@@ -147,6 +152,7 @@ API int iotcon_representation_set_resource_types(iotcon_representation_h repr,
 API int iotcon_representation_get_resource_interfaces(iotcon_representation_h repr,
                int *ifaces)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -158,6 +164,7 @@ API int iotcon_representation_get_resource_interfaces(iotcon_representation_h re
 API int iotcon_representation_set_resource_interfaces(iotcon_representation_h repr,
                int ifaces)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
 
        RETV_IF(ifaces <= IOTCON_INTERFACE_NONE || IC_INTERFACE_MAX < ifaces,
@@ -171,6 +178,7 @@ API int iotcon_representation_set_resource_interfaces(iotcon_representation_h re
 API int iotcon_representation_set_state(iotcon_representation_h repr,
                iotcon_state_h state)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (state)
@@ -188,6 +196,7 @@ API int iotcon_representation_set_state(iotcon_representation_h repr,
 API int iotcon_representation_get_state(iotcon_representation_h repr,
                iotcon_state_h *state)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -201,6 +210,7 @@ API int iotcon_representation_add_child(iotcon_representation_h parent,
 {
        iotcon_representation_h repr;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -215,6 +225,7 @@ API int iotcon_representation_add_child(iotcon_representation_h parent,
 API int iotcon_representation_remove_child(iotcon_representation_h parent,
                iotcon_representation_h child)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -231,6 +242,7 @@ API int iotcon_representation_foreach_children(iotcon_representation_h parent,
 {
        GList *list, *next;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -248,6 +260,7 @@ API int iotcon_representation_foreach_children(iotcon_representation_h parent,
 API int iotcon_representation_get_children_count(iotcon_representation_h parent,
                unsigned int *count)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == count, IOTCON_ERROR_INVALID_PARAMETER);
        if (NULL == parent->children)
@@ -261,6 +274,7 @@ API int iotcon_representation_get_children_count(iotcon_representation_h parent,
 API int iotcon_representation_get_nth_child(iotcon_representation_h parent, int pos,
                iotcon_representation_h *child)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == parent->children, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
@@ -284,6 +298,7 @@ API int iotcon_representation_clone(const iotcon_representation_h src,
        iotcon_resource_types_h list;
        iotcon_representation_h cloned_repr, copied_repr;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
 
index 64d62a2..bab8e8e 100644 (file)
  * limitations under the License.
  */
 #include "iotcon-types.h"
+#include "ic-utils.h"
 #include "icl.h"
 #include "icl-request.h"
 
 API int iotcon_request_get_host_address(iotcon_request_h request,
                char **host_address)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == host_address, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -32,6 +34,7 @@ API int iotcon_request_get_host_address(iotcon_request_h request,
 API int iotcon_request_get_connectivity_type(iotcon_request_h request,
                iotcon_connectivity_type_e *connectivity_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == connectivity_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -45,6 +48,7 @@ API int iotcon_request_get_connectivity_type(iotcon_request_h request,
 API int iotcon_request_get_representation(iotcon_request_h request,
                iotcon_representation_h *repr)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -57,6 +61,7 @@ API int iotcon_request_get_representation(iotcon_request_h request,
 API int iotcon_request_get_request_type(iotcon_request_h request,
                iotcon_request_type_e *type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -69,6 +74,7 @@ API int iotcon_request_get_request_type(iotcon_request_h request,
 /* The content of the request should not be freed by user. */
 API int iotcon_request_get_options(iotcon_request_h request, iotcon_options_h *options)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -81,6 +87,7 @@ API int iotcon_request_get_options(iotcon_request_h request, iotcon_options_h *o
 /* 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)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -93,6 +100,7 @@ API int iotcon_request_get_query(iotcon_request_h request, iotcon_query_h *query
 API int iotcon_request_get_observe_type(iotcon_request_h request,
                iotcon_observe_type_e *observe_type)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == observe_type, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -104,6 +112,7 @@ API int iotcon_request_get_observe_type(iotcon_request_h request,
 
 API int iotcon_request_get_observe_id(iotcon_request_h request, int *observe_id)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == observe_id, IOTCON_ERROR_INVALID_PARAMETER);
 
index 6bc08f0..41844fe 100644 (file)
@@ -38,6 +38,7 @@ API int iotcon_resource_types_create(iotcon_resource_types_h *ret_types)
 {
        iotcon_resource_types_h types;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_types, IOTCON_ERROR_INVALID_PARAMETER);
 
        types = calloc(1, sizeof(struct icl_resource_types));
@@ -95,6 +96,7 @@ API int iotcon_resource_types_add(iotcon_resource_types_h types, const char *typ
 {
        char *resource_type;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(1 < types->ref_count, IOTCON_ERROR_INVALID_PARAMETER,
@@ -127,6 +129,7 @@ API int iotcon_resource_types_remove(iotcon_resource_types_h types, const char *
 {
        GList *found_node;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(1 < types->ref_count, IOTCON_ERROR_INVALID_PARAMETER,
@@ -150,6 +153,7 @@ API int iotcon_resource_types_foreach(iotcon_resource_types_h types,
 {
        GList *node;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -169,6 +173,7 @@ API int iotcon_resource_types_clone(iotcon_resource_types_h src,
        char *resource_type;
        iotcon_resource_types_h resource_types;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
 
index 0bd4ef2..04deb2e 100644 (file)
@@ -166,6 +166,7 @@ API int iotcon_resource_create(const char *uri_path,
        int64_t signal_number;
        char signal_name[IC_DBUS_SIGNAL_LENGTH];
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
        RETVM_IF(ICL_URI_PATH_LENGTH_MAX < strlen(uri_path),
@@ -240,6 +241,7 @@ API int iotcon_resource_destroy(iotcon_resource_h resource)
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (0 == resource->handle) { /* iotcon dbus disconnected */
@@ -281,6 +283,7 @@ API int iotcon_resource_bind_interface(iotcon_resource_h resource,
        int ret;
        GError *error = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        if (0 == resource->sub_id) {
@@ -319,6 +322,7 @@ API int iotcon_resource_bind_type(iotcon_resource_h resource, const char *resour
        GError *error = NULL;
        iotcon_resource_types_h resource_types;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == resource_type, IOTCON_ERROR_INVALID_PARAMETER);
@@ -365,6 +369,7 @@ API int iotcon_resource_bind_type(iotcon_resource_h resource, const char *resour
 API int iotcon_resource_set_request_handler(iotcon_resource_h resource,
                iotcon_request_handler_cb cb, void *user_data)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -382,6 +387,7 @@ API int iotcon_resource_bind_child_resource(iotcon_resource_h parent,
        GError *error = NULL;
        int i, ret;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
@@ -436,6 +442,7 @@ API int iotcon_resource_unbind_child_resource(iotcon_resource_h parent,
        GError *error = NULL;
        int i, ret;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
@@ -476,6 +483,7 @@ API int iotcon_resource_get_number_of_children(iotcon_resource_h resource, int *
 {
        int i;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == number, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -492,6 +500,7 @@ API int iotcon_resource_get_number_of_children(iotcon_resource_h resource, int *
 API int iotcon_resource_get_nth_child(iotcon_resource_h parent, int index,
                iotcon_resource_h *child)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == parent, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == child, IOTCON_ERROR_INVALID_PARAMETER);
        if ((index < 0) || (ICL_CONTAINED_RESOURCES_MAX <= index)) {
@@ -508,6 +517,7 @@ API int iotcon_resource_get_nth_child(iotcon_resource_h parent, int index,
 /* 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)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -521,6 +531,7 @@ API int iotcon_resource_get_uri_path(iotcon_resource_h resource, char **uri_path
 API int iotcon_resource_get_types(iotcon_resource_h resource,
                iotcon_resource_types_h *types)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == types, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -532,6 +543,7 @@ API int iotcon_resource_get_types(iotcon_resource_h resource,
 
 API int iotcon_resource_get_interfaces(iotcon_resource_h resource, int *ifaces)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == ifaces, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -543,6 +555,7 @@ API int iotcon_resource_get_interfaces(iotcon_resource_h resource, int *ifaces)
 
 API int iotcon_resource_get_properties(iotcon_resource_h resource, int *properties)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == properties, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -559,6 +572,7 @@ API int iotcon_resource_notify(iotcon_resource_h resource,
        GVariant *obs;
        GVariant *repr_gvar;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
index ec8a9d2..5ea164c 100644 (file)
@@ -36,6 +36,7 @@ API int iotcon_response_create(iotcon_request_h request,
 {
        FN_CALL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == response, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -68,6 +69,7 @@ API void iotcon_response_destroy(iotcon_response_h resp)
 API int iotcon_response_get_options(iotcon_response_h resp,
                iotcon_options_h *options)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == resp->header_options, IOTCON_ERROR_NO_DATA);
@@ -80,6 +82,7 @@ API int iotcon_response_get_options(iotcon_response_h resp,
 API int iotcon_response_get_representation(iotcon_response_h resp,
                iotcon_representation_h *repr)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == repr, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == resp->repr, IOTCON_ERROR_NO_DATA);
@@ -93,6 +96,7 @@ API int iotcon_response_get_representation(iotcon_response_h resp,
 API int iotcon_response_get_result(iotcon_response_h resp,
                iotcon_response_result_e *result)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == result, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -104,6 +108,7 @@ API int iotcon_response_get_result(iotcon_response_h resp,
 API int iotcon_response_set_result(iotcon_response_h resp,
                iotcon_response_result_e result)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (result < IOTCON_RESPONSE_OK || ICL_RESPONSE_RESULT_MAX <= result) {
@@ -119,6 +124,7 @@ API int iotcon_response_set_result(iotcon_response_h resp,
 API int iotcon_response_set_representation(iotcon_response_h resp,
                iotcon_interface_e iface, iotcon_representation_h repr)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
 
        resp->iface = iface;
@@ -138,6 +144,7 @@ API int iotcon_response_set_representation(iotcon_response_h resp,
 API int iotcon_response_set_options(iotcon_response_h resp,
                iotcon_options_h options)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (options)
@@ -224,6 +231,7 @@ API int iotcon_response_send(iotcon_response_h resp)
        GError *error = NULL;
        GVariant *arg_response;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == icl_dbus_get_object(), IOTCON_ERROR_DBUS);
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
 
index bf292bd..5d9d6ee 100644 (file)
@@ -40,6 +40,7 @@ API int iotcon_state_create(iotcon_state_h *ret_state)
        errno = 0;
        iotcon_state_h state;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == ret_state, IOTCON_ERROR_INVALID_PARAMETER);
 
        state = calloc(1, sizeof(struct icl_state_s));
@@ -77,6 +78,7 @@ API int iotcon_state_remove(iotcon_state_h state, const char *key)
        gboolean ret = FALSE;
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -100,6 +102,7 @@ API int iotcon_state_get_int(iotcon_state_h state, const char *key, int *val)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -125,6 +128,7 @@ API int iotcon_state_add_int(iotcon_state_h state, const char *key, int val)
 {
        iotcon_value_h value;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -144,6 +148,7 @@ API int iotcon_state_get_bool(iotcon_state_h state, const char *key, bool *val)
        icl_basic_s *real = NULL;
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -169,6 +174,7 @@ API int iotcon_state_add_bool(iotcon_state_h state, const char *key, bool val)
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -188,6 +194,7 @@ API int iotcon_state_get_double(iotcon_state_h state, const char *key, double *v
        icl_basic_s *real = NULL;
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -213,6 +220,7 @@ API int iotcon_state_add_double(iotcon_state_h state, const char *key, double va
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -232,6 +240,7 @@ API int iotcon_state_get_str(iotcon_state_h state, const char *key, char **val)
        icl_basic_s *real = NULL;
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -257,6 +266,7 @@ API int iotcon_state_add_str(iotcon_state_h state, const char *key, char *val)
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -278,6 +288,7 @@ API int iotcon_state_get_byte_str(iotcon_state_h state, const char *key,
        iotcon_value_h value = NULL;
        icl_val_byte_str_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -306,6 +317,7 @@ API int iotcon_state_add_byte_str(iotcon_state_h state, const char *key,
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -327,6 +339,7 @@ API int iotcon_state_is_null(iotcon_state_h state, const char *key, bool *is_nul
        icl_basic_s *real = NULL;
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        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);
@@ -347,6 +360,7 @@ API int iotcon_state_add_null(iotcon_state_h state, const char *key)
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -366,6 +380,7 @@ API int iotcon_state_get_list(iotcon_state_h state, const char *key, iotcon_list
        iotcon_value_h value = NULL;
        icl_val_list_s *real = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
@@ -391,6 +406,7 @@ API int iotcon_state_add_list(iotcon_state_h state, const char *key, iotcon_list
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == list, IOTCON_ERROR_INVALID_PARAMETER);
@@ -411,6 +427,7 @@ API int iotcon_state_get_state(iotcon_state_h src, const char *key, iotcon_state
        icl_val_state_s *real = NULL;
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == src, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == dest, IOTCON_ERROR_INVALID_PARAMETER);
@@ -436,6 +453,7 @@ API int iotcon_state_add_state(iotcon_state_h state, const char *key, iotcon_sta
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == val, IOTCON_ERROR_INVALID_PARAMETER);
@@ -456,6 +474,7 @@ API int iotcon_state_get_type(iotcon_state_h state, const char *key,
 {
        iotcon_value_h value = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == key, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == type, IOTCON_ERROR_INVALID_PARAMETER);
@@ -484,6 +503,7 @@ int icl_state_set_value(iotcon_state_h state, const char *key, iotcon_value_h va
 
 API int iotcon_state_get_keys_count(iotcon_state_h state, unsigned int *count)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        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);
@@ -500,6 +520,7 @@ API int iotcon_state_clone(iotcon_state_h state, iotcon_state_h *state_clone)
 
        iotcon_state_h temp = NULL;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == state_clone, IOTCON_ERROR_INVALID_PARAMETER);
 
@@ -596,6 +617,7 @@ API int iotcon_state_foreach(iotcon_state_h state, iotcon_state_cb cb, void *use
        GHashTableIter iter;
        gpointer key;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == state, IOTCON_ERROR_INVALID_PARAMETER);
        RETV_IF(NULL == cb, IOTCON_ERROR_INVALID_PARAMETER);
 
index 3a9d020..df175de 100644 (file)
--- a/lib/icl.c
+++ b/lib/icl.c
@@ -16,6 +16,7 @@
 #include <glib.h>
 #include <glib-object.h>
 
+#include "ic-utils.h"
 #include "icl.h"
 #include "icl-dbus.h"
 
@@ -23,6 +24,8 @@ API int iotcon_connect(void)
 {
        int ret;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
+
 #if !GLIB_CHECK_VERSION(2, 35, 0)
        g_type_init();
 #endif
@@ -42,6 +45,7 @@ API void iotcon_disconnect(void)
 
 API int iotcon_get_timeout(int *timeout_seconds)
 {
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        RETV_IF(NULL == timeout_seconds, IOTCON_ERROR_INVALID_PARAMETER);
 
        *timeout_seconds = icl_dbus_get_timeout();
@@ -54,6 +58,7 @@ API int iotcon_set_timeout(int timeout_seconds)
 {
        int ret;
 
+       RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED);
        if (ICL_DBUS_TIMEOUT_MAX < timeout_seconds || timeout_seconds <= 0) {
                ERR("timeout_seconds(%d) must be in range from 1 to 3600", timeout_seconds);
                return IOTCON_ERROR_INVALID_PARAMETER;
index 5d37f5f..5ab2e77 100644 (file)
  * @section CAPI_IOT_CONNECTIVITY_CLIENT_MODULE_OVERVIEW Overview
  * This API set consists of client side API for @ref CAPI_IOT_CONNECTIVITY_CLIENT_REMOTE_RESOURCE_MODULE.
  *
+ * @section CAPI_IOT_CONNECTIVITY_CLIENT_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ * - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -90,6 +102,7 @@ typedef void (*iotcon_presence_cb)(iotcon_presence_h presence, iotcon_error_e er
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_IOTIVITY  Iotivity errors
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
@@ -123,6 +136,7 @@ int iotcon_add_presence_cb(const char *host_address,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -147,6 +161,7 @@ int iotcon_remove_presence_cb(iotcon_presence_h presence_handle);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_get_connectivity_type()
@@ -165,6 +180,7 @@ int iotcon_presence_get_host_address(iotcon_presence_h presence, char **host_add
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_get_host_address()
@@ -185,6 +201,7 @@ int iotcon_presence_get_connectivity_type(iotcon_presence_h presence,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_get_host_address()
@@ -204,6 +221,7 @@ int iotcon_presence_get_resource_type(iotcon_presence_h presence,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_response_get_trigger()
@@ -226,6 +244,7 @@ int iotcon_presence_response_get_result(iotcon_presence_response_h response,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_response_get_result()
@@ -248,6 +267,7 @@ int iotcon_presence_response_get_trigger(iotcon_presence_response_h response,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_response_get_result()
@@ -269,6 +289,7 @@ int iotcon_presence_response_get_host_address(iotcon_presence_response_h respons
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_response_get_result()
@@ -291,6 +312,7 @@ int iotcon_presence_response_get_connectivity_type(iotcon_presence_response_h re
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_presence_response_get_result()
@@ -344,6 +366,7 @@ typedef void (*iotcon_found_resource_cb)(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -400,6 +423,7 @@ typedef void (*iotcon_device_info_cb)(iotcon_device_info_h device_info,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY Out of memory
@@ -430,6 +454,7 @@ int iotcon_get_device_info(const char *host_address,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_device_info_cb()
@@ -477,6 +502,7 @@ typedef void (*iotcon_platform_info_cb)(iotcon_platform_info_h platform_info,
  * @return  0 on success, otherwise a negative error value.
  *
  * @retval #IOTCON_ERROR_NONE Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -508,6 +534,7 @@ int iotcon_get_platform_info(const char *host_address,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_platform_info_cb()
index c7b30b9..09b2fca 100644 (file)
@@ -42,6 +42,7 @@ extern "C" {
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
  * @retval #IOTCON_ERROR_PERMISSION_DENIED Permission denied
@@ -64,6 +65,7 @@ int iotcon_start_presence(unsigned int time_to_live);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
  * @retval #IOTCON_ERROR_PERMISSION_DENIED Permission denied
@@ -87,6 +89,7 @@ int iotcon_stop_presence(void);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
  *
  * @see iotcon_remote_resource_set_time_interval()
@@ -106,6 +109,7 @@ int iotcon_remote_resource_get_time_interval(int *time_interval);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
  *
  * @see iotcon_remote_resource_get_time_interval()
index 51984c5..0bbc39e 100644 (file)
@@ -154,6 +154,17 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_STATE_LIST_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
  *
  * @{
  */
@@ -171,6 +182,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -202,6 +214,7 @@ void iotcon_list_destroy(iotcon_list_h list);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -221,6 +234,7 @@ int iotcon_list_add_int(iotcon_list_h list, int val, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -240,6 +254,7 @@ int iotcon_list_add_bool(iotcon_list_h list, bool val, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -259,6 +274,7 @@ int iotcon_list_add_double(iotcon_list_h list, double val, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -279,6 +295,7 @@ int iotcon_list_add_str(iotcon_list_h list, char *val, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -298,6 +315,7 @@ int iotcon_list_add_byte_str(iotcon_list_h list, unsigned char *val, int len, in
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -317,6 +335,7 @@ int iotcon_list_add_list(iotcon_list_h list, iotcon_list_h val, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -335,6 +354,7 @@ int iotcon_list_add_state(iotcon_list_h list, iotcon_state_h val, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -353,6 +373,7 @@ int iotcon_list_get_nth_int(iotcon_list_h list, int pos, int *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -371,6 +392,7 @@ int iotcon_list_get_nth_bool(iotcon_list_h list, int pos, bool *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -391,6 +413,7 @@ int iotcon_list_get_nth_double(iotcon_list_h list, int pos, double *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -412,6 +435,7 @@ int iotcon_list_get_nth_str(iotcon_list_h list, int pos, char **val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -433,6 +457,7 @@ int iotcon_list_get_nth_byte_str(iotcon_list_h list, int pos, unsigned char **va
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -453,6 +478,7 @@ int iotcon_list_get_nth_list(iotcon_list_h src, int pos, iotcon_list_h *dest);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation errors
@@ -470,6 +496,7 @@ int iotcon_list_get_nth_state(iotcon_list_h list, int pos, iotcon_state_h *state
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  */
@@ -487,6 +514,7 @@ int iotcon_list_remove_nth(iotcon_list_h list, int pos);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_list_get_type(iotcon_list_h list, iotcon_type_e *type);
@@ -501,6 +529,7 @@ int iotcon_list_get_type(iotcon_list_h list, iotcon_type_e *type);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_list_get_length(iotcon_list_h list, unsigned int *length);
@@ -536,6 +565,7 @@ typedef bool (*iotcon_list_int_cb)(int pos, int value, void *user_data);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_int_cb() will be called for each item.
@@ -575,6 +605,7 @@ typedef bool (*iotcon_list_bool_cb)(int pos, bool value, void *user_data);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_bool_cb() will be called for each item.
@@ -614,6 +645,7 @@ typedef bool (*iotcon_list_double_cb)(int pos, double value, void *user_data);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_double_cb() will be called for each item.
@@ -656,6 +688,7 @@ typedef bool (*iotcon_list_byte_str_cb)(int pos, const unsigned char *value, int
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_byte_str_cb() will be called for each item.
@@ -696,6 +729,7 @@ typedef bool (*iotcon_list_str_cb)(int pos, const char *value, void *user_data);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_str_cb() will be called for each item.
@@ -735,6 +769,7 @@ typedef bool (*iotcon_list_list_cb)(int pos, iotcon_list_h value, void *user_dat
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_list_cb() will be called for each item.
@@ -774,6 +809,7 @@ typedef bool (*iotcon_list_state_cb)(int pos, iotcon_state_h value, void *user_d
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_list_state_cb() will be called for each item.
index 8b37ee5..0a5bc9c 100644 (file)
@@ -131,6 +131,18 @@ static void _update_brightness(int brightness)
 
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_SERVER_LITE_RESOURCE_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -180,6 +192,7 @@ typedef bool (*iotcon_lite_resource_put_request_cb)(iotcon_lite_resource_h resou
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_IOTIVITY  Iotivity errors
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
@@ -212,6 +225,7 @@ int iotcon_lite_resource_create(const char *uri_path,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_PERMISSION_DENIED Permission denied
@@ -233,6 +247,7 @@ int iotcon_lite_resource_destroy(iotcon_lite_resource_h resource);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
@@ -253,6 +268,7 @@ int iotcon_lite_resource_update_state(iotcon_lite_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_lite_resource_update_state()
index c1104d5..f00def7 100644 (file)
@@ -106,6 +106,18 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_SERVER_OBSERVERS_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -121,6 +133,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
@@ -155,6 +168,7 @@ void iotcon_observers_destroy(iotcon_observers_h observers);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_observers_create()
@@ -173,6 +187,7 @@ int iotcon_observers_add(iotcon_observers_h observers, int obs_id);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_observers_create()
index 01ca9d8..5d844e1 100644 (file)
@@ -101,6 +101,19 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
 
  * @endcode
+ *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_OPTIONS_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -116,6 +129,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
  *
@@ -156,6 +170,7 @@ void iotcon_options_destroy(iotcon_options_h options);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -177,6 +192,7 @@ int iotcon_options_add(iotcon_options_h options, unsigned short id,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_options_create()
@@ -199,6 +215,7 @@ int iotcon_options_remove(iotcon_options_h options, unsigned short id);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_options_create()
@@ -241,6 +258,7 @@ typedef bool (*iotcon_options_foreach_cb)(unsigned short id, const char *data,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_options_foreach_cb() will be called for each option.
index a49baef..4ac482f 100644 (file)
@@ -92,6 +92,18 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_QUERY_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -107,6 +119,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -145,6 +158,7 @@ void iotcon_query_destroy(iotcon_query_h query);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -168,6 +182,7 @@ int iotcon_query_get_resource_types(iotcon_query_h query, iotcon_resource_types_
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  *
@@ -189,6 +204,7 @@ int iotcon_query_get_interface(iotcon_query_h query, iotcon_interface_e *iface);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -211,6 +227,7 @@ int iotcon_query_set_resource_types(iotcon_query_h query, iotcon_resource_types_
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -235,6 +252,7 @@ int iotcon_query_set_interface(iotcon_query_h query, iotcon_interface_e iface);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -255,6 +273,7 @@ int iotcon_query_add(iotcon_query_h query, const char *key, const char *value);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_query_create()
@@ -277,6 +296,7 @@ int iotcon_query_remove(iotcon_query_h query, const char *key);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_query_create()
@@ -319,6 +339,7 @@ typedef bool (*iotcon_query_foreach_cb)(const char *key, const char *value,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_query_foreach_cb() will be called for each query.
index 3273888..6b36a9d 100644 (file)
@@ -87,6 +87,18 @@ static void _find_light_resource()
 
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_CLIENT_REMOTE_RESOURCE_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -121,6 +133,7 @@ static void _find_light_resource()
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_IOTIVITY  Iotivity errors
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
@@ -163,6 +176,7 @@ void iotcon_remote_resource_destroy(iotcon_remote_resource_h resource);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_create()
@@ -213,6 +227,7 @@ typedef void (*iotcon_remote_resource_observe_cb)(iotcon_remote_resource_h resou
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_IOTIVITY  Iotivity errors
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
@@ -243,6 +258,7 @@ int iotcon_remote_resource_observe_register(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -298,6 +314,7 @@ typedef void (*iotcon_remote_resource_response_cb)(iotcon_remote_resource_h reso
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -330,6 +347,7 @@ int iotcon_remote_resource_get(iotcon_remote_resource_h resource, iotcon_query_h
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -365,6 +383,7 @@ int iotcon_remote_resource_put(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -398,6 +417,7 @@ int iotcon_remote_resource_post(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -448,6 +468,7 @@ typedef void (*iotcon_remote_resource_cached_representation_changed_cb)(
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
  * @retval #IOTCON_ERROR_PERMISSION_DENIED Permission denied
@@ -474,6 +495,7 @@ int iotcon_remote_resource_start_caching(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -519,6 +541,7 @@ typedef void (*iotcon_remote_resource_state_changed_cb)(iotcon_remote_resource_h
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_ALREADY  Already done
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -542,6 +565,7 @@ int iotcon_remote_resource_start_monitoring(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -564,6 +588,7 @@ int iotcon_remote_resource_stop_monitoring(iotcon_remote_resource_h resource);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_host_address()
@@ -587,6 +612,7 @@ int iotcon_remote_resource_get_uri_path(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
 
  * @see iotcon_remote_resource_get_uri_path()
@@ -613,6 +639,7 @@ int iotcon_remote_resource_get_connectivity_type(iotcon_remote_resource_h resour
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_connectivity_type()
@@ -638,6 +665,7 @@ int iotcon_remote_resource_get_host_address(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_uri_path()
@@ -663,6 +691,7 @@ int iotcon_remote_resource_get_device_id(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_uri_path()
@@ -688,6 +717,7 @@ int iotcon_remote_resource_get_types(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_uri_path()
@@ -712,6 +742,7 @@ int iotcon_remote_resource_get_interfaces(iotcon_remote_resource_h resource, int
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_uri_path()
@@ -738,6 +769,7 @@ int iotcon_remote_resource_get_properties(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_uri_path()
@@ -762,6 +794,7 @@ int iotcon_remote_resource_get_options(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_remote_resource_get_uri_path()
@@ -788,6 +821,7 @@ int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data
  */
index ca60bec..8d4f339 100644 (file)
        iotcon_representation_destroy(resp_repr);
 }
  * @endcode
+ *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -251,6 +265,7 @@ int iotcon_representation_clone(const iotcon_representation_h src,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -269,6 +284,7 @@ int iotcon_representation_set_uri_path(iotcon_representation_h repr,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_get_uri_path(iotcon_representation_h repr, char **uri_path);
@@ -284,6 +300,7 @@ int iotcon_representation_get_uri_path(iotcon_representation_h repr, char **uri_
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_set_resource_types(iotcon_representation_h repr,
@@ -301,6 +318,7 @@ int iotcon_representation_set_resource_types(iotcon_representation_h repr,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_get_resource_types(iotcon_representation_h repr,
@@ -319,6 +337,7 @@ int iotcon_representation_get_resource_types(iotcon_representation_h repr,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_set_resource_interfaces(iotcon_representation_h repr,
@@ -351,6 +370,7 @@ int iotcon_representation_get_resource_interfaces(iotcon_representation_h repr,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -366,6 +386,7 @@ int iotcon_representation_set_state(iotcon_representation_h repr, iotcon_state_h
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_get_state(iotcon_representation_h repr, iotcon_state_h *state);
@@ -381,6 +402,7 @@ int iotcon_representation_get_state(iotcon_representation_h repr, iotcon_state_h
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_add_child(iotcon_representation_h parent,
@@ -396,6 +418,7 @@ int iotcon_representation_add_child(iotcon_representation_h parent,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_remove_child(iotcon_representation_h parent,
@@ -432,6 +455,7 @@ typedef bool (*iotcon_children_cb)(iotcon_representation_h child, void *user_dat
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_children_cb() will be called for each child.
@@ -451,6 +475,7 @@ int iotcon_representation_foreach_children(iotcon_representation_h parent,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_representation_get_children_count(iotcon_representation_h parent,
@@ -470,6 +495,7 @@ int iotcon_representation_get_children_count(iotcon_representation_h parent,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  */
index a9e0a94..53cece4 100644 (file)
@@ -120,6 +120,18 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_SERVER_REQUEST_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -135,6 +147,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_connectivity_type()
@@ -158,6 +171,7 @@ int iotcon_request_get_host_address(iotcon_request_h request,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
@@ -183,6 +197,7 @@ int iotcon_request_get_connectivity_type(iotcon_request_h request,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
@@ -207,6 +222,7 @@ int iotcon_request_get_representation(iotcon_request_h request,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
@@ -231,6 +247,7 @@ int iotcon_request_get_request_type(iotcon_request_h request, iotcon_request_typ
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
@@ -255,6 +272,7 @@ int iotcon_request_get_options(iotcon_request_h request, iotcon_options_h *optio
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
@@ -278,6 +296,7 @@ int iotcon_request_get_query(iotcon_request_h request, iotcon_query_h *query);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
@@ -301,6 +320,7 @@ int iotcon_request_get_observe_type(iotcon_request_h request,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_request_get_host_address()
index 5f112f5..2251078 100644 (file)
@@ -72,6 +72,18 @@ static void _create_light_resource()
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_RESOURCE_TYPES_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -87,6 +99,7 @@ static void _create_light_resource()
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -127,6 +140,7 @@ void iotcon_resource_types_destroy(iotcon_resource_types_h types);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_types_create()
@@ -146,6 +160,7 @@ int iotcon_resource_types_add(iotcon_resource_types_h types, const char *type);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  *
@@ -187,6 +202,7 @@ typedef bool (*iotcon_resource_types_foreach_cb)(const char *type, void *user_da
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_resource_types_foreach() will be called for each type.
@@ -210,6 +226,7 @@ int iotcon_resource_types_foreach(iotcon_resource_types_h types,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_types_create()
index cdc3187..9dc3efb 100644 (file)
@@ -122,6 +122,18 @@ static void _create_resource()
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_SERVER_RESOURCE_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -178,6 +190,7 @@ typedef void (*iotcon_request_handler_cb)(iotcon_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_IOTIVITY  Iotivity errors
  * @retval #IOTCON_ERROR_DBUS  Dbus errors
@@ -218,6 +231,7 @@ int iotcon_resource_create(const char *uri_path,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_PERMISSION_DENIED Permission denied
@@ -248,6 +262,7 @@ int iotcon_resource_destroy(iotcon_resource_h resource_handle);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -280,6 +295,7 @@ int iotcon_resource_bind_interface(iotcon_resource_h resource, iotcon_interface_
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -311,6 +327,7 @@ int iotcon_resource_bind_type(iotcon_resource_h resource_handle,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_create()
@@ -337,6 +354,7 @@ int iotcon_resource_set_request_handler(iotcon_resource_h resource,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_ALREADY  Already done
  * @retval #IOTCON_ERROR_DBUS  Dbus error
@@ -367,6 +385,7 @@ int iotcon_resource_bind_child_resource(iotcon_resource_h parent,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
@@ -399,6 +418,7 @@ int iotcon_resource_unbind_child_resource(iotcon_resource_h parent,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_REPRESENTATION  Representation error
@@ -426,6 +446,7 @@ int iotcon_resource_notify(iotcon_resource_h resource, iotcon_representation_h r
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_get_nth_child()
@@ -449,6 +470,7 @@ int iotcon_resource_get_number_of_children(iotcon_resource_h resource, int *numb
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_get_number_of_children()
@@ -472,6 +494,7 @@ int iotcon_resource_get_nth_child(iotcon_resource_h parent, int index,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_get_number_of_children()
@@ -494,6 +517,7 @@ int iotcon_resource_get_uri_path(iotcon_resource_h resource, char **uri_path);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_get_number_of_children()
@@ -516,6 +540,7 @@ int iotcon_resource_get_types(iotcon_resource_h resource, iotcon_resource_types_
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_get_number_of_children()
@@ -538,6 +563,7 @@ int iotcon_resource_get_interfaces(iotcon_resource_h resource, int *ifaces);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_resource_get_number_of_children()
index 77f9f0c..b470dff 100644 (file)
@@ -176,6 +176,18 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_RESPONSE_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -192,6 +204,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
@@ -225,6 +238,7 @@ void iotcon_response_destroy(iotcon_response_h resp);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data
  *
@@ -245,6 +259,7 @@ int iotcon_response_get_options(iotcon_response_h resp, iotcon_options_h *option
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data
  *
@@ -263,6 +278,7 @@ int iotcon_response_get_representation(iotcon_response_h resp, iotcon_representa
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @see iotcon_response_get_options()
@@ -283,6 +299,7 @@ int iotcon_response_get_result(iotcon_response_h resp,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
@@ -302,6 +319,7 @@ int iotcon_response_set_result(iotcon_response_h resp, iotcon_response_result_e
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
@@ -321,6 +339,7 @@ int iotcon_response_set_representation(iotcon_response_h resp,
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
@@ -341,6 +360,7 @@ int iotcon_response_set_options(iotcon_response_h resp, iotcon_options_h options
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_DBUS  Dbus error
  * @retval #IOTCON_ERROR_SYSTEM System error
index 8e4adee..da5bc35 100644 (file)
@@ -123,6 +123,18 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
 }
  * @endcode
  *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_STATE_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ *  - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -138,6 +150,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -172,6 +185,7 @@ void iotcon_state_destroy(iotcon_state_h state);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
@@ -192,6 +206,7 @@ int iotcon_state_clone(iotcon_state_h state, iotcon_state_h *state_clone);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -209,6 +224,7 @@ int iotcon_state_add_int(iotcon_state_h state, const char *key, int val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -226,6 +242,7 @@ int iotcon_state_add_bool(iotcon_state_h state, const char *key, bool val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -243,6 +260,7 @@ int iotcon_state_add_double(iotcon_state_h state, const char *key, double val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -261,6 +279,7 @@ int iotcon_state_add_str(iotcon_state_h state, const char *key, char *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -279,6 +298,7 @@ int iotcon_state_add_byte_str(iotcon_state_h state, const char *key, unsigned ch
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -296,6 +316,7 @@ int iotcon_state_add_list(iotcon_state_h state, const char *key, iotcon_list_h l
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -312,6 +333,7 @@ int iotcon_state_add_state(iotcon_state_h dest, const char *key, iotcon_state_h
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
@@ -328,6 +350,7 @@ int iotcon_state_add_null(iotcon_state_h state, const char *key);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -345,6 +368,7 @@ int iotcon_state_get_int(iotcon_state_h state, const char *key, int *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -362,6 +386,7 @@ int iotcon_state_get_bool(iotcon_state_h state, const char *key, bool *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -381,6 +406,7 @@ int iotcon_state_get_double(iotcon_state_h state, const char *key, double *val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -401,6 +427,7 @@ int iotcon_state_get_str(iotcon_state_h state, const char *key, char **val);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -421,6 +448,7 @@ int iotcon_state_get_byte_str(iotcon_state_h state, const char *key, unsigned ch
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -440,6 +468,7 @@ int iotcon_state_get_list(iotcon_state_h state, const char *key, iotcon_list_h *
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  * @retval #IOTCON_ERROR_INVALID_TYPE  Invalid type
@@ -457,6 +486,7 @@ int iotcon_state_get_state(iotcon_state_h src, const char *key, iotcon_state_h *
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_state_is_null(iotcon_state_h state, const char *key, bool *is_null);
@@ -471,6 +501,7 @@ int iotcon_state_is_null(iotcon_state_h state, const char *key, bool *is_null);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  */
@@ -489,6 +520,7 @@ int iotcon_state_remove(iotcon_state_h state, const char *key);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_NO_DATA  No data available
  */
@@ -526,6 +558,7 @@ typedef bool (*iotcon_state_cb)(iotcon_state_h state, const char *key, void *use
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @post iotcon_state_cb() will be called for each child.
@@ -544,6 +577,7 @@ int iotcon_state_foreach(iotcon_state_h state, iotcon_state_cb cb, void *user_da
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  */
 int iotcon_state_get_keys_count(iotcon_state_h state, unsigned int *count);
index 6fbe785..a2499a4 100644 (file)
@@ -33,6 +33,18 @@ extern "C" {
  *
  * @addtogroup CAPI_IOT_CONNECTIVITY_MODULE
  *
+ * @section CAPI_IOT_CONNECTIVITY_MODULE_FEATURE Related Features
+ * This API is related with the following features:\n
+ * - http://tizen.org/feature/iot.oic\n
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ *
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ *
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ *
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tools/native-tools/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
  * @{
  */
 
@@ -84,6 +96,7 @@ void iotcon_disconnect(void);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
  *
  * @pre iotcon_connect() should be called to connect a connection to the iotcon.
@@ -106,6 +119,7 @@ int iotcon_get_timeout(int *timeout_seconds);
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #IOTCON_ERROR_DBUS Dbus error
  *
@@ -148,6 +162,7 @@ typedef void (*iotcon_connection_changed_cb)(bool is_connected, void *user_data)
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  * @retval #IOTCON_ERROR_ALREADY  Already done
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
@@ -173,6 +188,7 @@ int iotcon_add_connection_changed_cb(iotcon_connection_changed_cb cb, void *user
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
+ * @retval #IOTCON_ERROR_NOT_SUPPORTED  Not supported
  * @retval #IOTCON_ERROR_INVALID_PARAMETER  Invalid parameter
  *
  * @pre iotcon_connect() should be called to connect a connection to the iotcon.