mm/heap: Changee mmchunk_handler_t to mm_node_handler_t
to unify the term usage(chunk v.s. node and mm v.s. mm_) Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
9aa835815f
commit
70ecb4ef26
|
@ -231,7 +231,7 @@ struct mm_heap_s
|
|||
|
||||
/* This describes the callback for mm_foreach */
|
||||
|
||||
typedef CODE void (*mmchunk_handler_t)(FAR struct mm_allocnode_s *node,
|
||||
typedef CODE void (*mm_node_handler_t)(FAR struct mm_allocnode_s *node,
|
||||
FAR void *arg);
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -259,7 +259,7 @@ int mm_size2ndx(size_t size);
|
|||
|
||||
/* Functions contained in mm_foreach.c **************************************/
|
||||
|
||||
void mm_foreach(FAR struct mm_heap_s *heap, mmchunk_handler_t handler,
|
||||
void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler,
|
||||
FAR void *arg);
|
||||
|
||||
#endif /* __MM_MM_HEAP_MM_H */
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void mm_foreach(FAR struct mm_heap_s *heap, mmchunk_handler_t handler,
|
||||
void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler,
|
||||
FAR void *arg)
|
||||
{
|
||||
FAR struct mm_allocnode_s *node;
|
||||
|
|
Loading…
Reference in New Issue