* @retval #RESOURCE_MONITOR_ERROR_NOT_SUPPORTED Not Supported
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_exit()
*/
int resource_monitor_init(void);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
*/
int resource_monitor_exit(int monitor_id);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
*/
int resource_monitor_get_resource_count(int monitor_id, resource_monitor_type_e resource_type, int *resource_count);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_delete_resource()
*/
int resource_monitor_create_resource(int monitor_id, resource_monitor_type_e resource_type);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
*/
int resource_monitor_delete_resource(int monitor_id, int resource_id);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
*/
int resource_monitor_set_resource_ctrl(int monitor_id, int resource_id, resource_monitor_ctrl_id_e ctrl_id, int value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_unset_resource_attr()
*/
int resource_monitor_set_resource_attr(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_mask);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
*/
int resource_monitor_unset_resource_attr(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_mask);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
*/
int resource_monitor_is_resource_attr_supported(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, bool *supported);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
*/
int resource_monitor_update(int monitor_id);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
*/
int resource_monitor_update_resource(int monitor_id, int resource_id);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_value_int(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t *value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_value_int64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t *value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_value_uint32(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t *value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_value_uint64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t *value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_value_double(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, double *value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_value_string(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, char **value);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_array_int(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t **array, int *length);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_array_int64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t **array, int *length);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_array_uint32(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t **array, int *length);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_array_uint64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t **array, int *length);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_array_double(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, double **array, int *length);
* @retval #RESOURCE_MONITOR_ERROR_INVALID_PARAMETER Invalid Parameter
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @see resource_monitor_init()
+ * @see resource_monitor_create_resource()
+ * @see resource_monitor_set_resource_attr()
+ * @see resource_monitor_set_resource_ctrl()
+ * @see resource_monitor_update()
+ * @see resource_monitor_update_resource()
*/
int resource_monitor_get_array_string(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, char ***array, int *length);