RESOURCE_MONITOR_MEMORY_ATTR_TOTAL = MEMORY_ATTR_TOTAL, /**< Memory total size (data type: DATA_TYPE_UINT64, unit: kB) */
RESOURCE_MONITOR_MEMORY_ATTR_AVAILABLE = MEMORY_ATTR_AVAILABLE, /**< Memory available size (data type: DATA_TYPE_UINT64, unit: kB) */
RESOURCE_MONITOR_MEMORY_ATTR_FREE = MEMORY_ATTR_FREE, /**< Memory free size (data type: DATA_TYPE_UINT64, unit: kB) */
- RESOURCE_MONITOR_MEMORY_ATTR_BUFFER = MEMORY_ATTR_BUFFER, /**< Memorry buffer size (data type: DATA_TYPE_UINT64, unit: kB) */
+ RESOURCE_MONITOR_MEMORY_ATTR_BUFFER = MEMORY_ATTR_BUFFER, /**< Memory buffer size (data type: DATA_TYPE_UINT64, unit: kB) */
RESOURCE_MONITOR_MEMORY_ATTR_CACHED = MEMORY_ATTR_CACHED, /**< Memory cached size (data type: DATA_TYPE_UINT64, unit: kB) */
RESOURCE_MONITOR_MEMORY_ATTR_CMA_TOTAL = MEMORY_ATTR_CMA_TOTAL, /**< CMA memory total size (data type: DATA_TYPE_UINT64, unit: kB) */
RESOURCE_MONITOR_MEMORY_ATTR_CMA_FREE = MEMORY_ATTR_CMA_FREE, /**< CMA memory free size (data type: DATA_TYPE_UINT64, unit: kB) */
RESOURCE_MONITOR_BATTERY_ATTR_CAPACITY = BATTERY_ATTR_CAPACITY, /**< Battery capacity (data type: DATA_TYPE_INT, unit: %) */
RESOURCE_MONITOR_BATTERY_ATTR_STATUS = BATTERY_ATTR_STATUS, /**< Battery status (data type: DATA_TYPE_STRING) */
RESOURCE_MONITOR_BATTERY_ATTR_TEMPERATURE = BATTERY_ATTR_TEMPERATURE, /**< Battery temperature (data type: DATA_TYPE_INT) */
- RESOURCE_MONITOR_BATTERY_ATTR_VOLTAGE_NOW = BATTERY_ATTR_VOLTAGE_NOW, /**< Battery voltage figure (data type: DATA_TYPE_INT, unit: uV) */
- RESOURCE_MONITOR_BATTERY_ATTR_CURRENT_NOW = BATTERY_ATTR_CURRENT_NOW, /**< Battery current figure (data type: DATA_TYPE_INT, unit: uA) */
+ RESOURCE_MONITOR_BATTERY_ATTR_VOLTAGE_NOW = BATTERY_ATTR_VOLTAGE_NOW, /**< Battery voltage value (data type: DATA_TYPE_INT, unit: uV) */
+ RESOURCE_MONITOR_BATTERY_ATTR_CURRENT_NOW = BATTERY_ATTR_CURRENT_NOW, /**< Battery current value (data type: DATA_TYPE_INT, unit: uA) */
RESOURCE_MONITOR_BATTERY_ATTR_PRESENT = BATTERY_ATTR_PRESENT, /**< Battery connected status (data type: DATA_TYPE_INT) */
RESOURCE_MONITOR_BATTERY_ATTR_ONLINE = BATTERY_ATTR_ONLINE, /**< Battery Charger connector status (data type: DATA_TYPE_INT) */
RESOURCE_MONITOR_SYSTEM_ATTR_PER_CPU_UTIL = SYSTEM_ATTR_PER_CPU_UTIL, /**< Per-CPU utilization (data type: DATA_TYPE_ARRAY_DOUBLE, unit: %) */
RESOURCE_MONITOR_SYSTEM_ATTR_PER_CPU_USER_UTIL = SYSTEM_ATTR_PER_CPU_USER_UTIL, /**< Per-CPU utilization on user (data type: DATA_TYPE_ARRAY_DOUBLE, unit: %) */
RESOURCE_MONITOR_SYSTEM_ATTR_PER_CPU_SYS_UTIL = SYSTEM_ATTR_PER_CPU_SYS_UTIL, /**< Per-CPU utilization on system (data type: DATA_TYPE_ARRAY_DOUBLE, unit: %) */
- RESOURCE_MONITOR_SYSTEM_ATTR_POSSIBLE_CPU = SYSTEM_ATTR_POSSIBLE_CPU, /**< Number of possible cpu (data type: DATA_TYPE_INT, unit: ea) */
- RESOURCE_MONITOR_SYSTEM_ATTR_ONLINE_CPU = SYSTEM_ATTR_ONLINE_CPU, /**< Number of online cpu (data type: DATA_TYPE_INT, unit: ea) */
+ RESOURCE_MONITOR_SYSTEM_ATTR_POSSIBLE_CPU = SYSTEM_ATTR_POSSIBLE_CPU, /**< Number of possible CPU (data type: DATA_TYPE_INT, unit: ea) */
+ RESOURCE_MONITOR_SYSTEM_ATTR_ONLINE_CPU = SYSTEM_ATTR_ONLINE_CPU, /**< Number of online CPU (data type: DATA_TYPE_INT, unit: ea) */
/* Disk Resource Attribute ID */
RESOURCE_MONITOR_DISK_ATTR_NAME = DISK_ATTR_NAME, /**< Disk device name (data type: DATA_TYPE_STRING) */
/**
* @brief Initializes the resource monitor.
* @since_tizen 7.0
- * @remarks The @c return value should be released using resourc_monitor_exit().
- * @return @c positive integer as resource monitor id on success, otherwise a negative error value
+ * @remarks The @c return value should be released using resource_monitor_exit().
+ * @return @c positive integer as resource monitor ID on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NOT_SUPPORTED Not Supported
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
/**
* @brief Exits the resource monitor.
* @since_tizen 7.0
- * @param[in] id Id of resource monitor which be returnted by resource_monitor_init()
+ * @param[in] monitor_id ID of resource monitor which be returned by resource_monitor_init()
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_exit(int id);
+int resource_monitor_exit(int monitor_id);
/**
* @brief Gets the count of supported resources according to resource type.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
+ * @param[in] monitor_id Resource monitorID
* @param[in] resource_type Resource type
- * @param[out] resource_count Resource count retrived from resource monitor
+ * @param[out] resource_count Resource count retrieved from resource monitor
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_get_resource_count(int id, resource_monitor_type_e resource_type, int *resource_count);
+int resource_monitor_get_resource_count(int monitor_id, resource_monitor_type_e resource_type, int *resource_count);
/**
* @brief Creates resource for given resource_type.
* @since_tizen 7.0
- * @remarks The @c return value should be released using resourc_delete_resource().
- * @param[in] id Resource monitor id which be returnted by resource_monitor_init()
+ * @remarks The @c return value should be released using resource_delete_resource().
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
* @param[in] resource_type Resource type
- * @return @c positive integer as resource id on success, otherwise a negative error value
+ * @return @c positive integer as resource ID on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NOT_SUPPORTED Not 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
*/
-int resource_monitor_create_resource(int id, resource_monitor_type_e resource_type);
+int resource_monitor_create_resource(int monitor_id, resource_monitor_type_e resource_type);
/**
- * @brief Deletes resource of given resource id.
+ * @brief Deletes resource of given resource ID.
* @since_tizen 7.0
- * @param[in] id Resource monitor id which be returnted by resource_monitor_init()
- * @param[in] resource_id Resource id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_delete_resource(int id, int resource_id);
+int resource_monitor_delete_resource(int monitor_id, int resource_id);
/**
- * @brief Sets the resource control with value which is diffierential according to resource control id.
+ * @brief Sets the resource control with value which is different according to resource control id.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] ctrl_id Resource control id
- * @param[in] value Value for resource control id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] ctrl_id Resource control ID
+ * @param[in] value Value for resource control ID
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_set_resource_ctrl(int id, int resource_id, resource_monitor_ctrl_id_e ctrl_id, int value);
+int resource_monitor_set_resource_ctrl(int monitor_id, int resource_id, resource_monitor_ctrl_id_e ctrl_id, int value);
/**
- * @brief Sets the interested attributes for monitoring.
+ * @brief Sets the interested resource attributes for monitoring.
* @since_tizen 7.0
- * @remarks Should be released using resource_monitor_unset_resource_attr().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
* @param[in] attr_mask Attribute mask including the various attributes
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_set_resource_attr(int id, int resource_id, resource_monitor_attr_id_e attr_mask);
+int resource_monitor_set_resource_attr(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_mask);
/**
- * @brief Unsets the interested attributes for monitoring.
+ * @brief Unsets the interested resource attributes for monitoring.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
* @param[in] attr_mask Attribute mask including the various attributes
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_unset_resource_attr(int id, int resource_id, resource_monitor_attr_id_e attr_mask);
+int resource_monitor_unset_resource_attr(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_mask);
/**
- * @brief Checks whether a resouce attribute is supported or not.
+ * @brief Checks whether a resource attribute is supported or not.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
- * @param[out] supported Resource attributes is either supported or not (@c true == supporeted, @c false = not supported)
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
+ * @param[out] supported Resource attributes is either supported or not (@c true == supported, @c false = not supported)
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_is_resource_attr_supported(int id, int resource_id, resource_monitor_attr_id_e attr_id, bool *supported);
+int resource_monitor_is_resource_attr_supported(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, bool *supported);
/**
* @brief Updates the value of interested attributes for all created resource.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_update(int id);
+int resource_monitor_update(int monitor_id);
/**
* @brief Updates the value of interested attributes for a resource.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @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
*/
-int resource_monitor_update_resource(int id, int resource_id);
+int resource_monitor_update_resource(int monitor_id, int resource_id);
/**
* @brief Gets the int value of resource attribute.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] value Value retrieved from resource attribute
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_value_int(int id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t *value);
+int resource_monitor_get_value_int(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t *value);
/**
* @brief Gets the int64 value of resource attribute.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] value Value retrieved from resource attribute
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_value_int64(int id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t *value);
+int resource_monitor_get_value_int64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t *value);
/**
- * @brief Gets the uint value of resource attribute.
+ * @brief Gets the uint32 value of resource attribute.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] value Value retrieved from resource attribute
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_value_uint(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t *value);
+int resource_monitor_get_value_uint32(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t *value);
/**
* @brief Gets the uint64 value of resource attribute.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] value Value retrieved from resource attribute
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_value_uint64(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t *value);
+int resource_monitor_get_value_uint64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t *value);
/**
* @brief Gets the double value of resource attribute.
* @since_tizen 7.0
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] value Value retrieved from resource attribute
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_value_double(int id, int resource_id, resource_monitor_attr_id_e attr_id, double *value);
+int resource_monitor_get_value_double(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, double *value);
/**
* @brief Gets the string value of resource attribute.
* @since_tizen 7.0
* @remarks The @a value should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] value Value retrieved from resource attribute
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NONE Successful
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_value_string(int id, int resource_id, resource_monitor_attr_id_e attr_id, char **value);
+int resource_monitor_get_value_string(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, char **value);
/**
* @brief Gets the int array of resource attribute.
* @since_tizen 7.0
* @remarks The @a array should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] array Array retrieved from resource attribute
* @param[out] length Length of array
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_array_int(int id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t **array, int *length);
+int resource_monitor_get_array_int(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t **array, int *length);
/**
* @brief Gets the int64 array of resource attribute.
* @since_tizen 7.0
* @remarks The @a array should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] array Array retrieved from resource attribute
* @param[out] length Length of array
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_array_int64(int id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t **array, int *length);
+int resource_monitor_get_array_int64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t **array, int *length);
/**
- * @brief Gets the uint array of resource attribute.
+ * @brief Gets the uint32 array of resource attribute.
* @since_tizen 7.0
* @remarks The @a array should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] array Array retrieved from resource attribute
* @param[out] length Length of array
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_array_uint(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t **array, int *length);
+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);
/**
* @brief Gets the uint64 array of resource attribute.
* @since_tizen 7.0
* @remarks The @a array should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] array Array retrieved from resource attribute
* @param[out] length Length of array
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_array_uint64(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t **array, int *length);
+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);
/**
* @brief Gets the double array of resource attribute.
* @since_tizen 7.0
* @remarks The @a array should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] array Array retrieved from resource attribute
* @param[out] length Length of array
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_array_double(int id, int resource_id, resource_monitor_attr_id_e attr_id, double **array, int *length);
+int resource_monitor_get_array_double(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, double **array, int *length);
/**
* @brief Gets the string array of resource attribute.
* @since_tizen 7.0
- * @remarks The @a array should be released using free().
- * @param[in] id Resource monitor id
- * @param[in] resource_id Resource id
- * @param[in] attr_id Resource attribute id
+ * @remarks The @a array and each data in the array should be released using free().
+ * @param[in] monitor_id Resource monitor ID which be returned by resource_monitor_init()
+ * @param[in] resource_id Resource ID which be returned by resource_monitor_create_resource()
+ * @param[in] attr_id Resource attribute ID
* @param[out] array Array retrieved from resource attribute
* @param[out] length Length of array
* @return @c 0 on success, otherwise a negative error value
* @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data
* @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory
*/
-int resource_monitor_get_array_string(int id, int resource_id, resource_monitor_attr_id_e attr_id, char ***array, int *length);
+int resource_monitor_get_array_string(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, char ***array, int *length);
/**
* @}
return pass_resource_monitor_init();
}
-int resource_monitor_exit(int id)
+int resource_monitor_exit(int monitor_id)
{
- return pass_resource_monitor_exit(id);
+ return pass_resource_monitor_exit(monitor_id);
}
-int resource_monitor_get_resource_count(int id, resource_monitor_type_e resource_type, int *resource_count)
+int resource_monitor_get_resource_count(int monitor_id, resource_monitor_type_e resource_type, int *resource_count)
{
- return pass_resource_monitor_get_resource_count(id, resource_type, resource_count);
+ return pass_resource_monitor_get_resource_count(monitor_id, resource_type, resource_count);
}
-int resource_monitor_create_resource(int id, resource_monitor_type_e resource_type)
+int resource_monitor_create_resource(int monitor_id, resource_monitor_type_e resource_type)
{
- return pass_resource_monitor_create_resource(id, resource_type);
+ return pass_resource_monitor_create_resource(monitor_id, resource_type);
}
-int resource_monitor_delete_resource(int id, int resource_id)
+int resource_monitor_delete_resource(int monitor_id, int resource_id)
{
- return pass_resource_monitor_delete_resource(id, resource_id);
+ return pass_resource_monitor_delete_resource(monitor_id, resource_id);
}
-int resource_monitor_set_resource_ctrl(int id, int resource_id, resource_monitor_ctrl_id_e ctrl_id, int value)
+int resource_monitor_set_resource_ctrl(int monitor_id, int resource_id, resource_monitor_ctrl_id_e ctrl_id, int value)
{
- return pass_resource_monitor_set_resource_ctrl(id, resource_id, (u_int64_t)ctrl_id, value);
+ return pass_resource_monitor_set_resource_ctrl(monitor_id, resource_id, (u_int64_t)ctrl_id, value);
}
-int resource_monitor_set_resource_attr(int id, int resource_id, resource_monitor_attr_id_e attr_mask)
+int resource_monitor_set_resource_attr(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_mask)
{
- return pass_resource_monitor_set_resource_attr(id, resource_id, (u_int64_t)attr_mask);
+ return pass_resource_monitor_set_resource_attr(monitor_id, resource_id, (u_int64_t)attr_mask);
}
-int resource_monitor_unset_resource_attr(int id, int resource_id, resource_monitor_attr_id_e attr_mask)
+int resource_monitor_unset_resource_attr(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_mask)
{
- return pass_resource_monitor_unset_resource_attr(id, resource_id, (u_int64_t)attr_mask);
+ return pass_resource_monitor_unset_resource_attr(monitor_id, resource_id, (u_int64_t)attr_mask);
}
-int resource_monitor_is_resource_attr_supported(int id, int resource_id, resource_monitor_attr_id_e attr_id, bool *supported)
+int resource_monitor_is_resource_attr_supported(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, bool *supported)
{
- return pass_resource_monitor_is_resource_attr_supported(id, resource_id, (u_int64_t)attr_id, supported);
+ return pass_resource_monitor_is_resource_attr_supported(monitor_id, resource_id, (u_int64_t)attr_id, supported);
}
-int resource_monitor_update(int id)
+int resource_monitor_update(int monitor_id)
{
- return pass_resource_monitor_update(id);
+ return pass_resource_monitor_update(monitor_id);
}
-int resource_monitor_update_resource(int id, int resource_id)
+int resource_monitor_update_resource(int monitor_id, int resource_id)
{
- return resource_monitor_update_resource(id, resource_id);
+ return resource_monitor_update_resource(monitor_id, resource_id);
}
-int resource_monitor_get_value_int(int id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t *value)
+int resource_monitor_get_value_int(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t *value)
{
- return pass_resource_monitor_get_value_int(id, resource_id, (u_int64_t)attr_id, value);
+ return pass_resource_monitor_get_value_int(monitor_id, resource_id, (u_int64_t)attr_id, value);
}
-int resource_monitor_get_value_int64(int id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t *value)
+int resource_monitor_get_value_int64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t *value)
{
- return pass_resource_monitor_get_value_int64(id, resource_id, (u_int64_t)attr_id, value);
+ return pass_resource_monitor_get_value_int64(monitor_id, resource_id, (u_int64_t)attr_id, value);
}
-int resource_monitor_get_value_uint(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t *value)
+int resource_monitor_get_value_uint32(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t *value)
{
- return pass_resource_monitor_get_value_uint(id, resource_id, (u_int64_t)attr_id, value);
+ return pass_resource_monitor_get_value_uint(monitor_id, resource_id, (u_int64_t)attr_id, value);
}
-int resource_monitor_get_value_uint64(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t *value)
+int resource_monitor_get_value_uint64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t *value)
{
- return pass_resource_monitor_get_value_uint64(id, resource_id, (u_int64_t)attr_id, value);
+ return pass_resource_monitor_get_value_uint64(monitor_id, resource_id, (u_int64_t)attr_id, value);
}
-int resource_monitor_get_value_double(int id, int resource_id, resource_monitor_attr_id_e attr_id, double *value)
+int resource_monitor_get_value_double(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, double *value)
{
- return pass_resource_monitor_get_value_double(id, resource_id, (u_int64_t)attr_id, value);
+ return pass_resource_monitor_get_value_double(monitor_id, resource_id, (u_int64_t)attr_id, value);
}
-int resource_monitor_get_value_string(int id, int resource_id, resource_monitor_attr_id_e attr_id, char **value)
+int resource_monitor_get_value_string(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, char **value)
{
- return pass_resource_monitor_get_value_string(id, resource_id, (u_int64_t)attr_id, value);
+ return pass_resource_monitor_get_value_string(monitor_id, resource_id, (u_int64_t)attr_id, value);
}
-int resource_monitor_get_array_int(int id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t **array, int *length)
+int resource_monitor_get_array_int(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int32_t **array, int *length)
{
- return pass_resource_monitor_get_array_int(id, resource_id, (u_int64_t)attr_id, array, length);
+ return pass_resource_monitor_get_array_int(monitor_id, resource_id, (u_int64_t)attr_id, array, length);
}
-int resource_monitor_get_array_int64(int id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t **array, int *length)
+int resource_monitor_get_array_int64(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, int64_t **array, int *length)
{
- return pass_resource_monitor_get_array_int64(id, resource_id, (u_int64_t)attr_id, array, length);
+ return pass_resource_monitor_get_array_int64(monitor_id, resource_id, (u_int64_t)attr_id, array, length);
}
-int resource_monitor_get_array_uint(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int32_t **array, int *length)
+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)
{
- return pass_resource_monitor_get_array_uint(id, resource_id, (u_int64_t)attr_id, array, length);
+ return pass_resource_monitor_get_array_uint(monitor_id, resource_id, (u_int64_t)attr_id, array, length);
}
-int resource_monitor_get_array_uint64(int id, int resource_id, resource_monitor_attr_id_e attr_id, u_int64_t **array, int *length)
+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)
{
- return pass_resource_monitor_get_array_uint64(id, resource_id, (u_int64_t)attr_id, array, length);
+ return pass_resource_monitor_get_array_uint64(monitor_id, resource_id, (u_int64_t)attr_id, array, length);
}
-int resource_monitor_get_array_double(int id, int resource_id, resource_monitor_attr_id_e attr_id, double **array, int *length)
+int resource_monitor_get_array_double(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, double **array, int *length)
{
- return pass_resource_monitor_get_array_double(id, resource_id, (u_int64_t)attr_id, array, length);
+ return pass_resource_monitor_get_array_double(monitor_id, resource_id, (u_int64_t)attr_id, array, length);
}
-int resource_monitor_get_array_string(int id, int resource_id, resource_monitor_attr_id_e attr_id, char ***array, int *length)
+int resource_monitor_get_array_string(int monitor_id, int resource_id, resource_monitor_attr_id_e attr_id, char ***array, int *length)
{
- return pass_resource_monitor_get_array_string(id, resource_id, (u_int64_t)attr_id, array, length);
+ return pass_resource_monitor_get_array_string(monitor_id, resource_id, (u_int64_t)attr_id, array, length);
}