RTEMS CPU Kit with SuperCore  4.11.3
rtl-chain-iterator.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
3  *
4  * The license and distribution terms for this file may be
5  * found in the file LICENSE in this distribution or at
6  * http://www.rtems.org/license/LICENSE.
7  */
16 #if !defined (_RTEMS_RTL_CHAIN_ITERATOR_H_)
17 #define _RTEMS_RTL_CHAIN_ITERATOR_H_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
23 #include <rtems/chain.h>
24 
28 typedef bool (*rtems_chain_iterator) (rtems_chain_node* node, void* data);
29 
42 bool
44  rtems_chain_iterator iterator,
45  void* data);
46 
54 
55 #ifdef __cplusplus
56 }
57 #endif /* __cplusplus */
58 
59 #endif
This is used to manage each element (node) which is placed on a chain.
Definition: chain.h:65
This is used to manage a chain.
Definition: chain.h:83
bool rtems_rtl_chain_iterate(rtems_chain_control *chain, rtems_chain_iterator iterator, void *data)
Iterate a chain of nodes invoking the iterator handler.
Definition: rtl-chain-iterator.c:25
int rtems_rtl_chain_count(rtems_chain_control *chain)
Count the number of nodes on the chain.
Definition: rtl-chain-iterator.c:52
bool(* rtems_chain_iterator)(rtems_chain_node *node, void *data)
Chain iterator handler.
Definition: rtl-chain-iterator.h:28
Chain API.