Tizen Native API
|
IoTCon Common API provides the set of definitions to use server and client API.
#include <iotcon.h>
This API set consists of data structures for Resource Types, Query, Options, Representation, State, List, Response.
Typedefs | |
typedef struct icl_resource * | iotcon_resource_h |
The resource handle. | |
typedef struct icl_lite_resource * | iotcon_lite_resource_h |
The lite resource handle. | |
typedef struct icl_resource_response * | iotcon_response_h |
The response handle. | |
typedef struct icl_observers * | iotcon_observers_h |
The observers handle. | |
typedef struct icl_resource_request * | iotcon_request_h |
The request handle. | |
typedef struct icl_remote_resource * | iotcon_remote_resource_h |
The remote resource handle. | |
typedef struct icl_presence * | iotcon_presence_h |
The presence handle. | |
typedef struct icl_presence_response * | iotcon_presence_response_h |
The presence response handle. | |
typedef struct icl_device_info * | iotcon_device_info_h |
The device information handle. | |
typedef struct icl_platform_info * | iotcon_platform_info_h |
The platform information handle. | |
typedef struct icl_resource_ifaces * | iotcon_resource_interfaces_h |
The resource interface handle. | |
typedef struct icl_resource_types * | iotcon_resource_types_h |
The resource types handle. | |
typedef struct icl_options * | iotcon_options_h |
The options handle. | |
typedef struct icl_query * | iotcon_query_h |
The query handle. | |
typedef struct icl_representation_s * | iotcon_representation_h |
The representation handle. | |
typedef struct icl_list_s * | iotcon_list_h |
The iotcon_value_h type values list handle. | |
typedef struct icl_attributes_s * | iotcon_attributes_h |
The attributes handle. | |
Defines | |
#define | IOTCON_MULTICAST_ADDRESS NULL |
Definition for the IP Address for multicast. | |
#define | IOTCON_FUNC_STOP false |
Definition for using this value as the return value to stop foreach function. | |
#define | IOTCON_FUNC_CONTINUE true |
Definition for using this value as the return value to continue foreach function. | |
#define | IOTCON_INTERFACE_DEFAULT "oic.if.baseline" |
Definition for the default Interface. | |
#define | IOTCON_INTERFACE_LINK "oic.if.ll" |
Definition for using List Links Interface which is used to list the references to other resources contained in a resource. | |
#define | IOTCON_INTERFACE_BATCH "oic.if.b" |
Definition for the Batch Interface which is used to manipulate (GET, PUT, POST, DELETE) on other resource contained in a resource. | |
#define | IOTCON_INTERFACE_GROUP "oic.mi.grp" |
Definition for the Group Interface which is used to manipulate (GET, PUT, POST) a group of remote resources. | |
#define | IOTCON_INTERFACE_READONLY "oic.if.r" |
Definition for the Read-Only Interface which is used to limit the methods that can be applied to a resource to GET only. |
#define IOTCON_FUNC_CONTINUE true |
Definition for using this value as the return value to continue foreach function.
#define IOTCON_FUNC_STOP false |
Definition for using this value as the return value to stop foreach function.
#define IOTCON_INTERFACE_BATCH "oic.if.b" |
Definition for the Batch Interface which is used to manipulate (GET, PUT, POST, DELETE) on other resource contained in a resource.
#define IOTCON_INTERFACE_DEFAULT "oic.if.baseline" |
Definition for the default Interface.
#define IOTCON_INTERFACE_GROUP "oic.mi.grp" |
Definition for the Group Interface which is used to manipulate (GET, PUT, POST) a group of remote resources.
#define IOTCON_INTERFACE_LINK "oic.if.ll" |
Definition for using List Links Interface which is used to list the references to other resources contained in a resource.
#define IOTCON_INTERFACE_READONLY "oic.if.r" |
Definition for the Read-Only Interface which is used to limit the methods that can be applied to a resource to GET only.
#define IOTCON_MULTICAST_ADDRESS NULL |
Definition for the IP Address for multicast.
typedef struct icl_attributes_s* iotcon_attributes_h |
The attributes handle.
iotcon_attributes_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_ATTRIBUTES.
typedef struct icl_device_info* iotcon_device_info_h |
The device information handle.
iotcon_device_info_h is a handle of device information.
typedef struct icl_list_s* iotcon_list_h |
The iotcon_value_h type values list handle.
iotcon_list_h is an opaque data structure.
typedef struct icl_lite_resource* iotcon_lite_resource_h |
The lite resource handle.
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.
typedef struct icl_observers* iotcon_observers_h |
The observers handle.
The list of observer IDs.
typedef struct icl_options* iotcon_options_h |
The options handle.
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 an integer and value is string.
typedef struct icl_platform_info* iotcon_platform_info_h |
The platform information handle.
iotcon_platform_info_h is a handle of platform information.
typedef struct icl_presence* iotcon_presence_h |
The presence handle.
iotcon_presence_h is a handle of presence subscription. It is used to cancel presence.
typedef struct icl_presence_response* iotcon_presence_response_h |
The presence response handle.
iotcon_presence_response_h is a handle of presence response subscription.
It is used to get the information of presence response from server.
typedef struct icl_query* iotcon_query_h |
The query handle.
iotcon_query_h is an opaque data structure to have attribute value map which consists of key and value. Datatype of both key and value are string. 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.
typedef struct icl_remote_resource* iotcon_remote_resource_h |
The remote resource handle.
When Client is successful to find out resource from remote server, server's resource information is reorganized as iotcon_remote_resource_h by IoTCon. Client can request CRUD to server by using this. 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.
typedef struct icl_representation_s* iotcon_representation_h |
The representation handle.
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.
typedef struct icl_resource_request* iotcon_request_h |
The request handle.
iotcon_request_h is an opaque data structure to request to a particular resource. iotcon_request_h is a data type of client's request which consists of header options, query, representation.
typedef struct icl_resource* iotcon_resource_h |
The resource handle.
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 requests by CRUD functions, handler will be invoked if registered. It could contain other resource as children.
typedef struct icl_resource_ifaces* iotcon_resource_interfaces_h |
The resource interface handle.
iotcon_resource_interfaces_h is an opaque data structure to have list of resource interfaces. A resource interface is datatype of string.
typedef struct icl_resource_types* iotcon_resource_types_h |
The resource types handle.
iotcon_resource_types_h is an opaque data structure to have list of resource types. A resource type is datatype of string.
typedef struct icl_resource_response* iotcon_response_h |
The response handle.
iotcon_response_h is an opaque data structure to respond to client. iotcon_response_h is a data type of server's response which consists of result, header options, query, representation.
Enumeration for connectivities which can be held in a resource.
enum iotcon_device_info_e |
Enumeration for properties of device information.
Enumeration for properties of platform information.
Enumeration for operation of presence response.
enum iotcon_qos_e |
Enumeration for type of request.
Enumeration for policy which can be held in a resource.
Enumeration for result of response.
enum iotcon_type_e |
Enumeration for types of representation that is possible to have.