#include <errno.h>
#include <glib.h>
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
#include "ic-common.h"
#include "ic-log.h"
#include "ic-utils.h"
#include <glib.h>
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
#define IC_EQUAL 0
#define IC_STR_EQUAL 0
#include <octypes.h>
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icd.h"
#include "icd-ioty-type.h"
#include <octypes.h>
-#include "iotcon-constant.h"
-
OCConnectivityType icd_ioty_conn_type_to_oic_conn_type(int conn_type);
int icd_ioty_transport_flag_to_conn_type(OCTransportAdapter adapter,
#ifndef __IOT_CONNECTIVITY_MANAGER_LIBRARY_DEVICE_H__
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_DEVICE_H__
+#include "iotcon-types.h"
+
struct icl_device_info {
char *device_name;
char *spec_ver;
#include <stdlib.h>
#include <errno.h>
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
-#include "iotcon-representation.h"
+#include "iotcon-types.h"
#include "icl.h"
#include "icl-state.h"
#include "icl-representation.h"
#include <glib.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "icl-value.h"
struct icl_list_s {
#include <errno.h>
#include <glib.h>
-#include "iotcon.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-dbus.h"
#include <errno.h>
#include <glib.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "icl.h"
#include "icl-observation.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_OBSERVATION_H__
#include <glib.h>
+#include "iotcon-types.h"
struct icl_observers {
GList *observers_list;
#include <stdlib.h>
#include <errno.h>
#include <glib.h>
-#include <tizen_type.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-options.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_OPTIONS_H__
#include <glib.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
struct icl_options {
int ref_count;
#include <errno.h>
#include <glib.h>
-#include "iotcon.h"
+#include "iotcon-types.h"
#include "iotcon-internal.h"
#include "ic-utils.h"
#include "icl.h"
#include <string.h>
#include <errno.h>
#include <glib.h>
-#include <tizen_type.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-resource-types.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_QUERY_H__
#include <glib.h>
+#include "iotcon-types.h"
/**
* @brief The maximum length which can be held in a query.
#include <string.h>
#include <errno.h>
#include <glib.h>
-#include <tizen_type.h>
-#include "iotcon.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-options.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_CLIENT_H__
#include <stdint.h>
-#include <glib.h>
#include <gio/gio.h>
-#include "iotcon.h"
+
+#include "iotcon-types.h"
+#include "iotcon-remote-resource.h"
+
#include "icl-options.h"
#define ICL_REMOTE_RESOURCE_DEFAULT_TIME_INTERVAL 10 /* 10 sec */
#include <errno.h>
#include <limits.h>
#include <glib.h>
-#include <tizen_type.h>
-#include "iotcon-struct.h"
-#include "iotcon-representation.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-resource.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_REPRESENTATION_H__
#include <glib.h>
-#include <tizen_type.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "icl-value.h"
+struct icl_state_s {
+ int ref_count;
+ GHashTable *hash_table;
+};
+
struct icl_representation_s {
char *uri_path;
int ref_count;
struct icl_state_s *state;
};
-struct icl_state_s {
- int ref_count;
- GHashTable *hash_table;
-};
-
void icl_representation_inc_ref_count(iotcon_representation_h val);
void icl_state_clone_foreach(char *key, iotcon_value_h src_val, iotcon_state_h dest_state);
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
#include "icl.h"
#include "icl-request.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_REQUEST_H__
#include <stdint.h>
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
struct icl_observe_info {
iotcon_observe_type_e action;
#include <errno.h>
#include <glib.h>
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-resource-types.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_RESOURCE_TYPES_H__
#include <glib.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "icl-query.h"
/**
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_RESOURCE_H__
#include <stdint.h>
-#include "iotcon.h"
+
+#include "iotcon-types.h"
+
#include "icl-dbus.h"
/**
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_RESPONSE_H__
#include <stdint.h>
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
+#include "iotcon-types.h"
typedef enum {
ICL_VISIBILITY_NONE = 0,
#include <stdlib.h>
#include <glib.h>
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
-#include "iotcon-representation.h"
+#include "iotcon-types.h"
#include "ic-utils.h"
#include "icl.h"
#include "icl-list.h"
#ifndef __IOT_CONNECTIVITY_MANAGER_LIBRARY_STATE_H__
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_STATE_H__
-#include "iotcon-struct.h"
-#include "iotcon-constant.h"
#include "icl-value.h"
+#include "icl-representation.h"
void icl_state_inc_ref_count(iotcon_state_h val);
int icl_state_dec_ref_count(iotcon_state_h val);
#include <stdlib.h>
#include <errno.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
#include "iotcon-representation.h"
#include "ic-utils.h"
#include "icl.h"
#define __IOT_CONNECTIVITY_MANAGER_LIBRARY_VALUE_H__
#include <glib.h>
-#include <tizen_type.h>
-#include "iotcon-struct.h"
+#include "iotcon-types.h"
struct icl_value_s {
int type;
#ifndef __IOT_CONNECTIVITY_MANAGER_CLIENT_H__
#define __IOT_CONNECTIVITY_MANAGER_CLIENT_H__
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
#include <iotcon-remote-resource.h>
/**
#ifndef __IOT_CONNECTIVITY_MANAGER_CONSTANT_H__
#define __IOT_CONNECTIVITY_MANAGER_CONSTANT_H__
-#include <tizen_type.h>
+#include <iotcon-types.h>
/**
* @file iotcon-constant.h
*/
/**
- * @ingroup CAPI_IOT_CONNECTIVITY_MODULE
- * @defgroup CAPI_IOT_CONNECTIVITY_COMMON_MODULE Common
- *
- * @brief Iotcon Common API provides the set of definitions to use server and client API.
- *
- * @section CAPI_IOT_CONNECTIVITY_COMMON_MODULE_HEADER Header
- * \#include <iotcon.h>
- *
- * @section CAPI_IOT_CONNECTIVITY_COMMON_MODULE_OVERVIEW Overview
- * This API set consists of data structures for
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_RESOURCE_TYPES_MODULE,
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_QUERY_MODULE,
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_OPTIONS_MODULE,
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_MODULE,
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_STATE_MODULE,
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_STATE_LIST_MODULE,
- * @ref CAPI_IOT_CONNECTIVITY_COMMON_RESPONSE_MODULE.
+ * @addtogroup CAPI_IOT_CONNECTIVITY_COMMON_MODULE
*
* @{
*/
/**
- * @brief The handle of resource.
- * @details @a iotcon_resource_h is an opaque data structure to represent registered
- * resource by server. A resource has host_address, uri_path, resource types, interfaces
- * and internal handle. If observable attribute of resource is true, client can observe
- * this resource. When client request by CRUD functions, handler will be invoked
- * if registered. It could contain other resource as children.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_resource* iotcon_resource_h;
-
-/**
- * @brief The handle of lite resource.
- * @details @a iotcon_lite_resource_h is an opaque data structure to represent registered
- * resource by server. A resource has host_address, uri_path, resource types, and internal
- * handle. If observable attribute of resource is true, client can observe
- * this resource.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_lite_resource* iotcon_lite_resource_h;
-
-/**
-* @brief The handle of response
-* @details @a iotcon_response_h is an opaque data structure to respond to client.
-* @a iotcon_response_h is a data type of server's response which consists of result,
-* header options, query, representation.
-*
-*
-* @since_tizen 3.0
-*/
-typedef struct icl_resource_response* iotcon_response_h;
-
-/**
- * @brief The handle of observers.
- * @details The list of observer ids.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_observers* iotcon_observers_h;
-
-/**
-* @brief The handle of request
-* @details @a iotcon_request_h is an opaque data structure to request to a particular resource.
-* @a iotcon_request_h is a data type of client's request which consists of header options,
-* query, representation.
-*
-* @since_tizen 3.0
-*/
-typedef struct icl_resource_request* iotcon_request_h;
-
-/**
- * @brief The handle of remote resource
- * @details When Client success to find out resource from remote server,
- * server's resource information is reorganized as @a iotcon_remote_resource_h by Iotcon.
- * Client can request CRUD to server by using this.
- * @a iotcon_remote_resource_h is an opaque data structure to have host_address, uri_path,
- * resource types, interfaces, options and device id.
- * If observable attribute is true, remote resource is observable.
- * When you observe remote resource, observe_handle will be set.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_remote_resource* iotcon_remote_resource_h;
-
-/**
- * @brief The handle of presence.
- * @details @a iotcon_presence_h is a handle of presence subscription.
- * It is used to cancel presence.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_presence* iotcon_presence_h;
-
-/**
- * @brief The handle of presence response.
- * @details @a iotcon_presence_response_h is a handle of presence response subscription.\n
- * It is used to get the information of presence response from server.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_presence_response* iotcon_presence_response_h;
-
-/**
- * @brief The handle of device information.
- * @details @a iotcon_device_info_h is a handle of device information.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_device_info* iotcon_device_info_h;
-
-/**
- * @brief The handle of platform information.
- * @details @a iotcon_platform_info_h is a handle of platform information.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_platform_info* iotcon_platform_info_h;
-
-/**
- * @brief The handle of tizen device information.
- * @details @a iotcon_tizen_info_h is a handle of tizen device information.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_tizen_info* iotcon_tizen_info_h;
-
-/**
- * @brief The handle of resource types
- * @details @a iotcon_resource_types_h is an opaque data structure to have list
- * of resource types. A resource type is datatype of string.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_resource_types* iotcon_resource_types_h;
-
-/**
- * @brief The handle of options
- * @details @a iotcon_options_h is an opaque data structure to have attribute value map
- * which consists of a key and a value.
- * Datatype of key is integer and value is string.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_options* iotcon_options_h;
-
-/**
- * @brief The handle of query
- * @details @a iotcon_query_h is an opaque data structure to have attribute value map
- * which consists of key and value.
- * Data ype of both key and value are string.
- * @a iotcon_query_h also have length.
- * The length is total length of all keys and values of map.
- * The length should be less than or equal to 64.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_query* iotcon_query_h;
-
-/**
- * @brief The handle of representation.
- * @details @a iotcon_representation_h is an opaque data structure to have uri_path,
- * list of resource types and interfaces.
- * It could contain other representation as children.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_representation_s* iotcon_representation_h;
-
-/**
- * @brief The handle of list which is consist of iotcon_value_h type values.
- * @details @a iotcon_list_h is an opaque data structure.
- *
- * @since_tizen 3.0
- */
-typedef struct icl_list_s* iotcon_list_h;
-
-/**
- * @brief The handle of state.
- * @details @a iotcon_state_h is an opaque data structure to have attribute value map.
- * Attribute value map consists of a key and a value.
- * Datatype of the key is string and the value should be one of them #IOTCON_TYPE_INT,
- * #IOTCON_TYPE_BOOL, #IOTCON_TYPE_DOUBLE, #IOTCON_TYPE_STR, #IOTCON_TYPE_NULL,
- * #IOTCON_TYPE_LIST and #IOTCON_TYPE_STATE
- *
- * @since_tizen 3.0
- */
-typedef struct icl_state_s* iotcon_state_h;
-
-/**
* @brief The IP Address for multicast.
*
* @since_tizen 3.0
#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_LIST_H__
#define __IOT_CONNECTIVITY_MANAGER_STRUCT_LIST_H__
-#include <tizen_type.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-list.h
#ifndef __IOT_CONNECTIVITY_MANAGER_SERVER_LITE_RESOURCE_H__
#define __IOT_CONNECTIVITY_MANAGER_SERVER_LITE_RESOURCE_H__
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-lite-resource.h
#ifndef __IOT_CONNECTIVITY_MANAGER_SERVER_OBSERVERS_H__
#define __IOT_CONNECTIVITY_MANAGER_SERVER_OBSERVERS_H__
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-observers.h
#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_OPTIONS_H__
#define __IOT_CONNECTIVITY_MANAGER_STRUCT_OPTIONS_H__
-#include <stdbool.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-options.h
#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_QUERY_H__
#define __IOT_CONNECTIVITY_MANAGER_STRUCT_QUERY_H__
-#include <stdbool.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-query.h
#ifndef __IOT_CONNECTIVITY_MANAGER_CLIENT_REMOTE_RESOURCE_H__
#define __IOT_CONNECTIVITY_MANAGER_CLIENT_REMOTE_RESOURCE_H__
-#include <tizen_type.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-remote-resource.h
#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_REPRESENTATION_H__
#define __IOT_CONNECTIVITY_MANAGER_STRUCT_REPRESENTATION_H__
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-representation.h
#ifndef __IOT_CONNECTIVITY_MANAGER_SERVER_REQUEST_H__
#define __IOT_CONNECTIVITY_MANAGER_SERVER_REQUEST_H__
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-request.h
#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_RESOURCE_TYPES_H__
#define __IOT_CONNECTIVITY_MANAGER_STRUCT_RESOURCE_TYPES_H__
-#include <stdbool.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-resource-types.h
#ifndef __IOT_CONNECTIVITY_MANAGER_SERVER_RESOURCE_H__
#define __IOT_CONNECTIVITY_MANAGER_SERVER_RESOURCE_H__
-#include <tizen_type.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-resource.h
#ifndef __IOT_CONNECTIVITY_MANAGER_COMMON_RESPONSE_H__
#define __IOT_CONNECTIVITY_MANAGER_COMMON_RESPONSE_H__
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-response.h
#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_STATE_H__
#define __IOT_CONNECTIVITY_MANAGER_STRUCT_STATE_H__
-#include <tizen_type.h>
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
/**
* @file iotcon-state.h
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef __IOT_CONNECTIVITY_MANAGER_STRUCT_H__
-#define __IOT_CONNECTIVITY_MANAGER_STRUCT_H__
-
-#include <iotcon-resource-types.h>
-#include <iotcon-options.h>
-#include <iotcon-query.h>
-#include <iotcon-list.h>
-#include <iotcon-state.h>
-#include <iotcon-representation.h>
-
-/**
- * @file iotcon-struct.h
- */
-
-#endif /* __IOT_CONNECTIVITY_MANAGER_STRUCT_H__ */
--- /dev/null
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef __IOT_CONNECTIVITY_MANAGER_TYPES_H__
+#define __IOT_CONNECTIVITY_MANAGER_TYPES_H__
+
+#include <tizen_type.h>
+
+#include <iotcon-constant.h>
+
+/**
+ * @file iotcon-types.h
+ */
+
+
+/**
+ * @ingroup CAPI_IOT_CONNECTIVITY_MODULE
+ * @defgroup CAPI_IOT_CONNECTIVITY_COMMON_MODULE Common
+ *
+ * @brief Iotcon Common API provides the set of definitions to use server and client API.
+ *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_MODULE_HEADER Header
+ * \#include <iotcon.h>
+ *
+ * @section CAPI_IOT_CONNECTIVITY_COMMON_MODULE_OVERVIEW Overview
+ * This API set consists of data structures for
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_RESOURCE_TYPES_MODULE,
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_QUERY_MODULE,
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_OPTIONS_MODULE,
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_MODULE,
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_STATE_MODULE,
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_REPRESENTATION_STATE_LIST_MODULE,
+ * @ref CAPI_IOT_CONNECTIVITY_COMMON_RESPONSE_MODULE.
+ *
+ * @{
+ */
+
+/**
+ * @brief The handle of resource.
+ * @details @a iotcon_resource_h is an opaque data structure to represent registered
+ * resource by server. A resource has host_address, uri_path, resource types, interfaces
+ * and internal handle. If observable attribute of resource is true, client can observe
+ * this resource. When client request by CRUD functions, handler will be invoked
+ * if registered. It could contain other resource as children.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_resource* iotcon_resource_h;
+
+/**
+ * @brief The handle of lite resource.
+ * @details @a iotcon_lite_resource_h is an opaque data structure to represent registered
+ * resource by server. A resource has host_address, uri_path, resource types, and internal
+ * handle. If observable attribute of resource is true, client can observe
+ * this resource.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_lite_resource* iotcon_lite_resource_h;
+
+/**
+* @brief The handle of response
+* @details @a iotcon_response_h is an opaque data structure to respond to client.
+* @a iotcon_response_h is a data type of server's response which consists of result,
+* header options, query, representation.
+*
+*
+* @since_tizen 3.0
+*/
+typedef struct icl_resource_response* iotcon_response_h;
+
+/**
+ * @brief The handle of observers.
+ * @details The list of observer ids.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_observers* iotcon_observers_h;
+
+/**
+* @brief The handle of request
+* @details @a iotcon_request_h is an opaque data structure to request to a particular resource.
+* @a iotcon_request_h is a data type of client's request which consists of header options,
+* query, representation.
+*
+* @since_tizen 3.0
+*/
+typedef struct icl_resource_request* iotcon_request_h;
+
+/**
+ * @brief The handle of remote resource
+ * @details When Client success to find out resource from remote server,
+ * server's resource information is reorganized as @a iotcon_remote_resource_h by Iotcon.
+ * Client can request CRUD to server by using this.
+ * @a iotcon_remote_resource_h is an opaque data structure to have host_address, uri_path,
+ * resource types, interfaces, options and device id.
+ * If observable attribute is true, remote resource is observable.
+ * When you observe remote resource, observe_handle will be set.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_remote_resource* iotcon_remote_resource_h;
+
+/**
+ * @brief The handle of presence.
+ * @details @a iotcon_presence_h is a handle of presence subscription.
+ * It is used to cancel presence.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_presence* iotcon_presence_h;
+
+/**
+ * @brief The handle of presence response.
+ * @details @a iotcon_presence_response_h is a handle of presence response subscription.\n
+ * It is used to get the information of presence response from server.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_presence_response* iotcon_presence_response_h;
+
+/**
+ * @brief The handle of device information.
+ * @details @a iotcon_device_info_h is a handle of device information.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_device_info* iotcon_device_info_h;
+
+/**
+ * @brief The handle of platform information.
+ * @details @a iotcon_platform_info_h is a handle of platform information.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_platform_info* iotcon_platform_info_h;
+
+/**
+ * @brief The handle of tizen device information.
+ * @details @a iotcon_tizen_info_h is a handle of tizen device information.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_tizen_info* iotcon_tizen_info_h;
+
+/**
+ * @brief The handle of resource types
+ * @details @a iotcon_resource_types_h is an opaque data structure to have list
+ * of resource types. A resource type is datatype of string.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_resource_types* iotcon_resource_types_h;
+
+/**
+ * @brief The handle of options
+ * @details @a iotcon_options_h is an opaque data structure to have attribute value map
+ * which consists of a key and a value.
+ * Datatype of key is integer and value is string.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_options* iotcon_options_h;
+
+/**
+ * @brief The handle of query
+ * @details @a iotcon_query_h is an opaque data structure to have attribute value map
+ * which consists of key and value.
+ * Data ype of both key and value are string.
+ * @a iotcon_query_h also have length.
+ * The length is total length of all keys and values of map.
+ * The length should be less than or equal to 64.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_query* iotcon_query_h;
+
+/**
+ * @brief The handle of representation.
+ * @details @a iotcon_representation_h is an opaque data structure to have uri_path,
+ * list of resource types and interfaces.
+ * It could contain other representation as children.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_representation_s* iotcon_representation_h;
+
+/**
+ * @brief The handle of list which is consist of iotcon_value_h type values.
+ * @details @a iotcon_list_h is an opaque data structure.
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_list_s* iotcon_list_h;
+
+/**
+ * @brief The handle of state.
+ * @details @a iotcon_state_h is an opaque data structure to have attribute value map.
+ * Attribute value map consists of a key and a value.
+ * Datatype of the key is string and the value should be one of them #IOTCON_TYPE_INT,
+ * #IOTCON_TYPE_BOOL, #IOTCON_TYPE_DOUBLE, #IOTCON_TYPE_STR, #IOTCON_TYPE_NULL,
+ * #IOTCON_TYPE_LIST and #IOTCON_TYPE_STATE
+ *
+ * @since_tizen 3.0
+ */
+typedef struct icl_state_s* iotcon_state_h;
+
+/**
+ * @}
+ */
+
+#include <iotcon-list.h>
+#include <iotcon-query.h>
+#include <iotcon-state.h>
+#include <iotcon-options.h>
+#include <iotcon-representation.h>
+#include <iotcon-resource-types.h>
+
+#endif /* __IOT_CONNECTIVITY_MANAGER_TYPES_H__ */
extern "C" {
#endif
-#include <tizen_type.h>
-
-#include <iotcon-constant.h>
+#include <iotcon-types.h>
#include <iotcon-errors.h>
-#include <iotcon-struct.h>
#include <iotcon-server.h>
#include <iotcon-client.h>
#include <stdlib.h>
#include <glib.h>
-#include <tizen_type.h>
#include <iotcon.h>
#include <iotcon-internal.h>
#include <stdlib.h>
#include <glib.h>
-#include <tizen_type.h>
#include <iotcon.h>
#include <iotcon-internal.h>
#include <stdlib.h>
#include <glib.h>
-#include <tizen_type.h>
+
#include <iotcon.h>
#include "test.h"