resource-monitor: Change 'example' decorator into 'code/endcode' 97/289397/1 accepted/tizen_7.0_unified accepted/tizen/7.0/unified/20230502.174344
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 7 Mar 2023 05:01:24 +0000 (21:01 -0800)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 7 Mar 2023 05:16:09 +0000 (21:16 -0800)
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 <dwoo08.lee@samsung.com>
include/resource-monitor.h

index c861192..611a1b5 100644 (file)
@@ -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);