return IOTCON_ERROR_NONE;
}
+API int iotcon_remote_resource_get_options(iotcon_remote_resource_h resource,
+ iotcon_options_h *options)
+{
+ RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
+ RETV_IF(NULL == options, IOTCON_ERROR_INVALID_PARAMETER);
+
+ *options = resource->header_options;
+
+ return IOTCON_ERROR_NONE;
+}
/* if header_options is NULL, then client's header_options is unset */
API int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,
int iotcon_remote_resource_is_observable(iotcon_remote_resource_h resource,
bool *observable);
+
+/**
+ * @brief Gets options of the remote resource
+ *
+ * @since_tizen 3.0
+ *
+ * @remarks @a options must not be released using iotcon_options_destroy().
+ *
+ * @param[in] resource The handle of the remote resource
+ * @param[out] options The handle of the header options
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #IOTCON_ERROR_NONE Successful
+ * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see iotcon_remote_resource_get_uri_path()
+ * @see iotcon_remote_resource_get_host_address()
+ * @see iotcon_remote_resource_get_connectivity_type()
+ * @see iotcon_remote_resource_get_device_id()
+ * @see iotcon_remote_resource_get_types()
+ * @see iotcon_remote_resource_get_interfaces()
+ * @see iotcon_remote_resource_set_options()
+ * @see iotcon_remote_resource_is_observable()
+ */
+int iotcon_remote_resource_get_options(iotcon_remote_resource_h resource,
+ iotcon_options_h *options);
+
/**
* @brief Sets options into the remote resource
*
* @see iotcon_remote_resource_get_device_id()
* @see iotcon_remote_resource_get_types()
* @see iotcon_remote_resource_get_interfaces()
+ * @see iotcon_remote_resource_get_options()
* @see iotcon_remote_resource_is_observable()
*/
int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,