X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fruntime_info.h;h=cdff291a3f0825bd73cb0053b531c706c2d5fd3e;hb=786a920fb44bc70113cec0f0e1d7cc937b1a8ff1;hp=d49b6e4ce6fb4908f90804cadbf4717e5b314324;hpb=1cfa2cb18b23ef6080e42597260e4c17f61ace4d;p=platform%2Fcore%2Fapi%2Fruntime-info.git diff --git a/include/runtime_info.h b/include/runtime_info.h index d49b6e4..cdff291 100644 --- a/include/runtime_info.h +++ b/include/runtime_info.h @@ -26,292 +26,317 @@ extern "C" /** - * @addtogroup CAPI_SYSTEM_RUNTIME_INFO_MODULE + * @addtogroup CAPI_SYSTEM_RUNTIME_INFO_MODULE * @{ */ /** - * @brief Enumeration for error codes for runtime information. - * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif + * @brief Enumeration for error codes for runtime information. + * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif */ typedef enum { - RUNTIME_INFO_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ + RUNTIME_INFO_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ RUNTIME_INFO_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ - RUNTIME_INFO_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ - RUNTIME_INFO_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< An input/output error occurred when read value from system */ - RUNTIME_INFO_ERROR_REMOTE_IO = TIZEN_ERROR_REMOTE_IO, /**< Remote I/O error occured */ + RUNTIME_INFO_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ + RUNTIME_INFO_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< An input/output error occurred when read value from system */ + RUNTIME_INFO_ERROR_REMOTE_IO = TIZEN_ERROR_REMOTE_IO, /**< Remote I/O error occurred */ RUNTIME_INFO_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< No permission to use the api */ - RUNTIME_INFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported parameter */ - RUNTIME_INFO_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA /**< No data available (Since 3.0) */ + RUNTIME_INFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported parameter */ + RUNTIME_INFO_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA /**< No data available (Since 3.0) */ } runtime_info_error_e; /** - * @brief Enumeration for keys for runtime information. - * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif + * @brief Enumeration for keys for runtime information. + * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif */ typedef enum { - RUNTIME_INFO_KEY_BLUETOOTH_ENABLED = 2, /** @@ -513,20 +568,24 @@ int runtime_info_get_all_apps_memory_usage(app_usage_h *usage); /** - * @brief Gets CPU rate of all apps. + * @brief Gets CPU rate of all apps. * @since_tizen 4.0 * + * @privlevel public * @privilege %http://tizen.org/privilege/systemmonitor - * @remarks You must release @a rate using runtime_info_app_usage_destroy(). - * - * @param[out] rate An array of each app's CPU usage rate (%), the values are rounded down. - * - * @retval #RUNTIME_INFO_ERROR_NONE Successful - * @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #RUNTIME_INFO_ERROR_OUT_OF_MEMORY Not able to allocate memory (for output param/other operations) - * @retval #RUNTIME_INFO_ERROR_REMOTE_IO Call to resource daemon failed (dbus errors/resource daemon errors) - * @retval #RUNTIME_INFO_ERROR_IO_ERROR An I/O error during dbus message operations - * @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED Process not authorized to request app usage info + * @remarks You must release @a rate using runtime_info_app_usage_destroy(). + * + * @param[out] rate An array of each app's CPU usage rate (%), the values are rounded down. + * + * @return @c 0 on success, + * otherwise a negative error value + * @retval #RUNTIME_INFO_ERROR_NONE Successful + * @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #RUNTIME_INFO_ERROR_OUT_OF_MEMORY Not able to allocate memory (for output param/other operations) + * @retval #RUNTIME_INFO_ERROR_REMOTE_IO Call to resource daemon failed (dbus errors/resource daemon errors) + * @retval #RUNTIME_INFO_ERROR_IO_ERROR An I/O error during dbus message operations + * @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED Process not authorized to request app usage info + * @retval #RUNTIME_INFO_ERROR_NO_DATA No app running * * @code * #include