/**
* @file resource-monitor.h
- * @brief Provide resource C API for Resource Monitor
+ * @brief Provide resource C API for Resource Monitor which monitors physical
+ * and logical resource. Each resource provides various attribute for resource
+ * monitoring because each resource has the different characteristics.
*/
/**
*/
/**
- * @brief Enumeration for resource monitor error value.
+ * @brief Enumeration for resource monitor error value to catch the accurate
+ * error reason.
* @since_tizen 7.0
*/
typedef enum {
} resource_monitor_error_e;
/**
- * @brief Enumeration for resource type.
+ * @brief Enumeration for resource type which indicate physical and logical resource.
* @since_tizen 7.0
*/
typedef enum {
} resource_monitor_type_e;
/**
- * @brief Enumeration for resource attribute ID.
+ * @brief Enumeration for resource attribute ID which indicates the attributes
+ * of each physical and logical resource.
* @since_tizen 7.0
*/
typedef enum {
} resource_monitor_attr_id_e;
/**
- * @brief Enumeration for resource control ID.
+ * @brief Enumeration for resource control ID. The device board have the
+ * multiple resources with same resource type. The resource control ID
+ * indicates the identification of each resource among same resource type.
* @since_tizen 7.0
*/
typedef enum {
*/
/**
- * @brief Initializes the resource monitor.
+ * @brief Initializes the resource monitor which monitors the physical and logical resource.
+ * @details A unique ID is required to use the resource monitor. A unique ID is
+ * required to use all functions in the resource monitor.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
int resource_monitor_init(void);
/**
- * @brief Exits the resource monitor.
+ * @brief Exits the resource monitor to finish the monitoring of physical and logical resource.
+ * @details The resource monitor is terminated using the unique ID returned from
+ * the resource_monitor_init() function. The unique ID is no longer valid.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Gets the count of supported resources according to resource type.
+ * @details Returns the number of resources when one hardware board contains
+ * multiple resources of the same type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Creates resource for given resource_type which indicates the one of
+ * various resource type.
+ * @details The various kinds of resources can be monitored using unique IDs
+ * generated using the resource_monitor_init function. Create the resource id
+ * required to monitor the resource.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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 which indicates the resource
+ * instance.
+ * @details Deletes the resource_id when monitoring of a specific resource
+ * is no longer performed using the resource_monitor_create_resource function.
+ * Resource_id is no longer valid.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Sets the resource control with value which is different according to resource control id.
+ * @details There may be multiple resources of the same type. A specific resource
+ * must be set to point to a specific resource by setting ctrl_id prior to the monitoring request.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Sets the resource attributes of interest for monitoring.
+ * @details The data that can be monitored for each individual resource is different.
+ * Each monitorable data is represented by a resource_monitor_attr_id_e.
+ * You must set the interest for the resource attribute you want to monitor before the monitoring request.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Unsets the resource attributes of interest for monitoring.
+ * @details The data that can be monitored for each individual resource is different.
+ * Each monitorable data is represented by a resource_monitor_attr_id_e.
+ * The interest must be removed for the resource attribute you want to remove from the monitoring target.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Checks whether a resource attribute is supported or not.
+ * @details Each monitorable data is represented by a resource_monitor_attr_id_e.
+ * You can check if monitoring of a specific resource attribute is supported.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Updates the value of attributes of interest for all created resource.
+ * @details Requests monitoring of all resource types generated using unique IDs
+ * generated using the resource_monitor_init function.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
/**
* @brief Updates the value of attributes of interest for a resource.
+ * @details Requests monitoring of specific resource instances generated using
+ * unique IDs generated using the resource_monitor_init function.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
int resource_monitor_update_resource(int monitor_id, int resource_id);
/**
- * @brief Gets the int value of resource attribute.
+ * @brief Gets the int value of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an integer 32-bit data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the int64 value of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an integer 64-bit data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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 uint32 value of resource attribute.
+ * @brief Gets the uint32 value of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an unsigned integer 32-bit data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the uint64 value of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an unsigned integer 64-bit data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the double value of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an double data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the string value of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an double data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the int array of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an int-32bit array data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the int64 array of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an int-64bit array data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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 uint32 array of resource attribute.
+ * @brief Gets the uint32 array of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an unsigned int-32bit array data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the uint64 array of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an unsigned int-64bit array data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the double array of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an double array data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor
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.
+ * @brief Gets the string array of resource attribute which indicates one characteristics of resource.
+ * @details Obtain a resource attribute value having an string array data type.
* @since_tizen 7.0
* @privlevel public
* @privilege %http://tizen.org/privilege/systemmonitor