TizenRT Public API
v2.0 M2
|
Structure for Representation. More...
#include <st_things_types.h>
Data Fields | |
void * | payload |
bool(* | get_str_value )(struct _st_things_representation *rep, const char *key, char **value) |
API for getting the value of string type property with a key. More... | |
bool(* | get_bool_value )(struct _st_things_representation *rep, const char *key, bool *value) |
API for getting the value of boolean type property with a key. More... | |
bool(* | get_int_value )(struct _st_things_representation *rep, const char *key, int64_t *value) |
API for getting the value of integer type property with a key. More... | |
bool(* | get_double_value )(struct _st_things_representation *rep, const char *key, double *value) |
API for getting the value of double type property with a key. More... | |
bool(* | get_byte_value )(struct _st_things_representation *rep, const char *key, uint8_t **value, size_t *size) |
API for getting the value of byte array type property with a key. More... | |
bool(* | get_object_value )(struct _st_things_representation *rep, const char *key, struct _st_things_representation **value) |
API for getting the value of object type property with a key. More... | |
bool(* | set_str_value )(struct _st_things_representation *rep, const char *key, const char *value) |
API for setting the value of string type property with a key. More... | |
bool(* | set_bool_value )(struct _st_things_representation *rep, const char *key, bool value) |
API for setting the value of boolean type property with a key. More... | |
bool(* | set_int_value )(struct _st_things_representation *rep, const char *key, int64_t value) |
API for setting the value of integer type property with a key. More... | |
bool(* | set_double_value )(struct _st_things_representation *rep, const char *key, double value) |
API for setting the value of double type property with a key. More... | |
bool(* | set_byte_value )(struct _st_things_representation *rep, const char *key, const uint8_t *value, size_t size) |
API for setting the value of byte array type property with a key. More... | |
bool(* | set_object_value )(struct _st_things_representation *rep, const char *key, const struct _st_things_representation *value) |
API for setting the value of object type property with a key. More... | |
bool(* | get_str_array_value )(struct _st_things_representation *rep, const char *key, char ***array, size_t *length) |
API for getting the value of string array type property with a key. More... | |
bool(* | get_int_array_value )(struct _st_things_representation *rep, const char *key, int64_t **array, size_t *length) |
API for getting the value of integer array type property with a key. More... | |
bool(* | get_double_array_value )(struct _st_things_representation *rep, const char *key, double **array, size_t *length) |
API for getting the value of double array type property with a key. More... | |
bool(* | get_object_array_value )(struct _st_things_representation *rep, const char *key, struct _st_things_representation ***array, size_t *length) |
API for getting the value of object array type property with a key. More... | |
bool(* | set_str_array_value )(struct _st_things_representation *rep, const char *key, const char **array, size_t length) |
API for setting the value of string array type property with a key. More... | |
bool(* | set_int_array_value )(struct _st_things_representation *rep, const char *key, const int64_t *array, size_t length) |
API for setting the value of integer array type property with a key. More... | |
bool(* | set_double_array_value )(struct _st_things_representation *rep, const char *key, const double *array, size_t length) |
API for setting the value of double array type property with a key. More... | |
bool(* | set_object_array_value )(struct _st_things_representation *rep, const char *key, const struct _st_things_representation **array, size_t length) |
API for setting the value of object array type property with a key. More... | |
bool(* get_bool_value) (struct _st_things_representation *rep, const char *key, bool *value) |
API for getting the value of boolean type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[out] | value | Bool value |
true
if value exist, otherwise false
Definition at line 96 of file st_things_types.h.
bool(* get_byte_value) (struct _st_things_representation *rep, const char *key, uint8_t **value, size_t *size) |
API for getting the value of byte array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[out] | value | Byte value |
[out] | size | Size of Byte value |
true
if value exist, otherwise false
Definition at line 134 of file st_things_types.h.
bool(* get_double_array_value) (struct _st_things_representation *rep, const char *key, double **array, size_t *length) |
API for getting the value of double array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the array type of value. |
[out] | array | Reference of the double array where the value will be copied. |
[out] | length | Total number of elements in the array. |
true
if value exist, otherwise false
Definition at line 266 of file st_things_types.h.
bool(* get_double_value) (struct _st_things_representation *rep, const char *key, double *value) |
API for getting the value of double type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[out] | value | Double value |
true
if value exist, otherwise false
Definition at line 120 of file st_things_types.h.
bool(* get_int_array_value) (struct _st_things_representation *rep, const char *key, int64_t **array, size_t *length) |
API for getting the value of integer array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the array type of value. |
[out] | array | Reference of the integer array where the value will be copied. |
[out] | length | Total number of elements in the array. |
true
if value exist, otherwise false
Definition at line 252 of file st_things_types.h.
bool(* get_int_value) (struct _st_things_representation *rep, const char *key, int64_t *value) |
API for getting the value of integer type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[out] | value | Integer value |
true
if value exist, otherwise false
Definition at line 108 of file st_things_types.h.
bool(* get_object_array_value) (struct _st_things_representation *rep, const char *key, struct _st_things_representation ***array, size_t *length) |
API for getting the value of object array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the array type of value. |
[out] | array | Reference of the object array where the value will be copied. |
[out] | length | Total number of elements in the array. |
true
if value exist, otherwise false
Definition at line 281 of file st_things_types.h.
bool(* get_object_value) (struct _st_things_representation *rep, const char *key, struct _st_things_representation **value) |
API for getting the value of object type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[out] | value | Object value |
true
if value exist, otherwise false
Definition at line 148 of file st_things_types.h.
bool(* get_str_array_value) (struct _st_things_representation *rep, const char *key, char ***array, size_t *length) |
API for getting the value of string array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the array type of value. |
[out] | array | Reference of the string array to where the value will be copied. |
[out] | length | Total number of elements in the array. |
true
if value exist, otherwise false
Definition at line 238 of file st_things_types.h.
bool(* get_str_value) (struct _st_things_representation *rep, const char *key, char **value) |
API for getting the value of string type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[out] | value | String value |
true
if value exist, otherwise false
Definition at line 84 of file st_things_types.h.
void* payload |
Payload of representation
Definition at line 71 of file st_things_types.h.
bool(* set_bool_value) (struct _st_things_representation *rep, const char *key, bool value) |
API for setting the value of boolean type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the value. |
[in] | value | Bool value. |
true
if setting value is successful, otherwise false
Definition at line 173 of file st_things_types.h.
bool(* set_byte_value) (struct _st_things_representation *rep, const char *key, const uint8_t *value, size_t size) |
API for setting the value of byte array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the value. |
[in] | value | Byte value. |
[in] | size | Size of Byte value. |
true
if setting value is successful, otherwise false
Definition at line 211 of file st_things_types.h.
bool(* set_double_array_value) (struct _st_things_representation *rep, const char *key, const double *array, size_t length) |
API for setting the value of double array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[in] | array | Double array type value. |
[in] | length | Total number of elements in the array. |
true
if setting value is successful, otherwise false
Definition at line 323 of file st_things_types.h.
bool(* set_double_value) (struct _st_things_representation *rep, const char *key, double value) |
API for setting the value of double type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the value. |
[in] | value | Double value. |
true
if setting value is successful, otherwise false
Definition at line 197 of file st_things_types.h.
bool(* set_int_array_value) (struct _st_things_representation *rep, const char *key, const int64_t *array, size_t length) |
API for setting the value of integer array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[in] | array | Integer array type value. |
[in] | length | Total number of elements in the array. |
true
if setting value is successful, otherwise false
Definition at line 309 of file st_things_types.h.
bool(* set_int_value) (struct _st_things_representation *rep, const char *key, int64_t value) |
API for setting the value of integer type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the value. |
[in] | value | Integer value. |
true
if setting value is successful, otherwise false
Definition at line 185 of file st_things_types.h.
bool(* set_object_array_value) (struct _st_things_representation *rep, const char *key, const struct _st_things_representation **array, size_t length) |
API for setting the value of object array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[in] | array | Object array type value. |
[in] | length | Total number of elements in the array. |
true
if setting value is successful, otherwise false
Definition at line 337 of file st_things_types.h.
bool(* set_object_value) (struct _st_things_representation *rep, const char *key, const struct _st_things_representation *value) |
API for setting the value of object type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the value. |
[in] | value | Object value. |
true
if value exist, otherwise false
Definition at line 224 of file st_things_types.h.
bool(* set_str_array_value) (struct _st_things_representation *rep, const char *key, const char **array, size_t length) |
API for setting the value of string array type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which represents the value. |
[in] | array | String array type value. |
[in] | length | Total number of elements in the array. |
true
if setting value is successful, otherwise false
Definition at line 295 of file st_things_types.h.
bool(* set_str_value) (struct _st_things_representation *rep, const char *key, const char *value) |
API for setting the value of string type property with a key.
#include <st_things/st_things_types.h>
[in] | rep | Instance of Representation. |
[in] | key | Property Name which will represent the value. |
[in] | value | String value. |
true
if setting value is successful, otherwise false
Definition at line 161 of file st_things_types.h.