From 51d0169ad5f838667fdd98d70ff4f2d1483c816d Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Mon, 6 Mar 2023 21:01:24 -0800 Subject: [PATCH] resource-monitor: Change 'example' decorator into 'code/endcode' To fix up the error of auto-generated api documents, 'example' decorator is changed into 'code' and 'endcode'. Change-Id: I8b50d4f6e7ef6567836e73d4bd0587d37329ecb5 Signed-off-by: Dongwoo Lee --- include/resource-monitor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/resource-monitor.h b/include/resource-monitor.h index c861192..611a1b5 100644 --- a/include/resource-monitor.h +++ b/include/resource-monitor.h @@ -181,7 +181,7 @@ typedef enum { * @retval #RESOURCE_MONITOR_ERROR_NO_DATA Empty Data * @retval #RESOURCE_MONITOR_ERROR_OUT_OF_MEMORY Out of Memory * @see resource_monitor_exit() - * @example + * @code * // Create monitor_id and resource_id for CPU device. * int monitor_id = resource_monitor_init(); * int resource_id = resource_monitor_create_resource(monitor_id, RESOURCE_MONITOR_TYPE_CPU); @@ -202,6 +202,7 @@ typedef enum { * int cpu_min_freq; * ret = resource_monitor_get_value_int(monitor_id, resource_id, RESOURCE_MONITOR_CPU_ATTR_CUR_FREQ, &cpu_cur_freq); * ret = resource_monitor_get_value_int(monitor_id, resource_id, RESOURCE_MONITOR_CPU_ATTR_MIN_FREQ, &cpu_min_freq); + * @endcode */ int resource_monitor_init(void); -- 2.7.4