From b79d5013ff4e53e913975db4794b3ea061cbffd9 Mon Sep 17 00:00:00 2001 From: supperthomas <78900636@qq.com> Date: Thu, 27 Jun 2024 21:37:57 +0800 Subject: [PATCH] [doc][doxygen] Fix hook struct error. Signed-off-by: supperthomas <78900636@qq.com> --- include/rtthread.h | 6 ++++++ src/kservice.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/rtthread.h b/include/rtthread.h index 43caf895ac..517d3dac42 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -314,12 +314,18 @@ void *rt_page_alloc(rt_size_t npages); void rt_page_free(void *addr, rt_size_t npages); #endif /* defined(RT_USING_SLAB) && defined(RT_USING_SLAB_AS_HEAP) */ +/** + * @ingroup Hook + * @{ + */ + #ifdef RT_USING_HOOK void rt_malloc_sethook(void (*hook)(void **ptr, rt_size_t size)); void rt_realloc_set_entry_hook(void (*hook)(void **ptr, rt_size_t size)); void rt_realloc_set_exit_hook(void (*hook)(void **ptr, rt_size_t size)); void rt_free_sethook(void (*hook)(void **ptr)); #endif /* RT_USING_HOOK */ +/**@}*/ #endif /* RT_USING_HEAP */ diff --git a/src/kservice.c b/src/kservice.c index e61bae296a..915850e89d 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -594,7 +594,7 @@ static void (*rt_realloc_exit_hook)(void **ptr, rt_size_t size); static void (*rt_free_hook)(void **ptr); /** - * @addtogroup Hook + * @ingroup Hook * @{ */