/**
* @brief Get [int/int64/uint/uint64/double/string] value of resource attribute
+ * @details resource_monitor_get_value_string returns the value stored on allocated memory.
+ * After using the value, must need to free the allocated memory of value.
* @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Resource attribute id
int resource_monitor_get_value_uint(int id, int resource_id, u_int64_t attr, u_int32_t *value);
int resource_monitor_get_value_uint64(int id, int resource_id, u_int64_t attr, u_int64_t *value);
int resource_monitor_get_value_double(int id, int resource_id, u_int64_t attr, double *value);
-int resource_monitor_get_value_string(int id, int resource_id, u_int64_t attr, char *value);
+int resource_monitor_get_value_string(int id, int resource_id, u_int64_t attr, char **value);
/**
* @brief Get [int/int64/uint/uint64/double/string] array of resource attribute
+ * @details All get_array return the value stored on allocated memory.
+ * After using the value, must need to free the allocated memory of value.
* @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Resource attribute id
return pass_resource_monitor_get_value_double(id, resource_id, attr, value);
}
-int resource_monitor_get_value_string(int id, int resource_id, u_int64_t attr, char *value)
+int resource_monitor_get_value_string(int id, int resource_id, u_int64_t attr, char **value)
{
return pass_resource_monitor_get_value_string(id, resource_id, attr, value);
}