Tizen IoT Extension SDK 1.0  1.0.1
st_thing_resource_api/inc/smartthings_payload.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

Go to the source code of this file.

Typedefs

typedef struct
smartthings_payload_s * 
smartthings_payload_h
 The SmartThings payload handle. 1.

Functions

int smartthings_payload_create (smartthings_payload_h *payload)
 Creates a SmartThings payload handle. 1.
int smartthings_payload_destroy (smartthings_payload_h payload)
 Destroys a SmartThings payload handle and releases all its resources. 1.
int smartthings_payload_set_int (smartthings_payload_h payload, const char *attr_name, int value)
 Sets an integer value for the attribute name. 1.
int smartthings_payload_set_bool (smartthings_payload_h payload, const char *attr_name, bool value)
 Sets a boolean value for the attribute name. 1.
int smartthings_payload_set_double (smartthings_payload_h payload, const char *attr_name, double value)
 Sets a double value for the attribute name. 1.
int smartthings_payload_set_string (smartthings_payload_h payload, const char *attr_name, const char *value)
 Sets a string value for the attribute name. 1.
int smartthings_payload_set_byte_string (smartthings_payload_h payload, const char *attr_name, const char *value, unsigned int length)
 Sets a byte string value and length for the attribute name. 1.
int smartthings_payload_set_object (smartthings_payload_h payload, const char *attr_name, smartthings_payload_h value)
 Sets an object value for the attribute name. 1.
int smartthings_payload_set_int_array (smartthings_payload_h payload, const char *attr_name, const int *array, unsigned int length)
 Sets an integer array for the attribute name. 1.
int smartthings_payload_set_bool_array (smartthings_payload_h payload, const char *attr_name, const bool *array, unsigned int length)
 Sets a boolean array for the attribute name. 1.
int smartthings_payload_set_double_array (smartthings_payload_h payload, const char *attr_name, const double *array, unsigned int length)
 Sets a double array for the attribute name. 1.
int smartthings_payload_set_string_array (smartthings_payload_h payload, const char *attr_name, const char **array, unsigned int length)
 Sets a string array for the attribute name. 1.
int smartthings_payload_set_object_array (smartthings_payload_h payload, const char *attr_name, smartthings_payload_h *array, unsigned int length)
 Sets an object array for the attribute name. 1.
int smartthings_payload_add_collection_object (smartthings_payload_h payload, const char *resource_uri, smartthings_payload_h value)
 Adds a payload for child resource of collection resource. 1.
int smartthings_payload_get_int (smartthings_payload_h payload, const char *attr_name, int *value)
 Gets an integer value for the attribute name. 1.
int smartthings_payload_get_bool (smartthings_payload_h payload, const char *attr_name, bool *value)
 Gets a boolean value for the attribute name. 1.
int smartthings_payload_get_double (smartthings_payload_h payload, const char *attr_name, double *value)
 Gets a double value for the attribute name. 1.
int smartthings_payload_get_string (smartthings_payload_h payload, const char *attr_name, char **value)
 Gets a string value for the attribute name. 1.
int smartthings_payload_get_byte_string (smartthings_payload_h payload, const char *attr_name, char **value, unsigned int *length)
 Gets a byte string value and length for the attribute name. 1.
int smartthings_payload_get_object (smartthings_payload_h payload, const char *attr_name, smartthings_payload_h *value)
 Gets an object value for the attribute name. 1.
int smartthings_payload_get_int_array (smartthings_payload_h payload, const char *attr_name, int **array, unsigned int *length)
 Gets an integer array for the attribute name. 1.
int smartthings_payload_get_bool_array (smartthings_payload_h payload, const char *attr_name, bool **array, unsigned int *length)
 Gets a boolean array for the attribute name. 1.
int smartthings_payload_get_double_array (smartthings_payload_h payload, const char *attr_name, double **array, unsigned int *length)
 Gets a double array for the attribute name. 1.
int smartthings_payload_get_string_array (smartthings_payload_h payload, const char *attr_name, char ***array, unsigned int *length)
 Gets a string array for the attribute name. 1.
int smartthings_payload_get_object_array (smartthings_payload_h payload, const char *attr_name, smartthings_payload_h **array, unsigned int *length)
 Gets an object array for the attribute name. 1.
int smartthings_payload_get_collection_object (smartthings_payload_h payload, const char *resource_uri, smartthings_payload_h *value)
 Gets a payload for child resource of collection resource. 1.
int smartthings_payload_release_int_array (int *array)
 Releases an integer array of the SmartThings payload. 1.
int smartthings_payload_release_bool_array (bool *array)
 Releases a boolean array of the SmartThings payload. 1.
int smartthings_payload_release_double_array (double *array)
 Releases a double array of the SmartThings payload. 1.
int smartthings_payload_release_string_array (char **array, unsigned int length)
 Releases a string array of the SmartThings payload. 1.
int smartthings_payload_release_object_array (smartthings_payload_h *array, unsigned int length)
 Releases an object array of the SmartThings payload. 1.
int smartthings_payload_release_object (smartthings_payload_h payload)
 Releases a SmartThings payload. 1.

Detailed Description

 All Files Functions Typedefs Enumerations Enumerator