RTEMS  5.1
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
Definition: chain.h:68
Definition: chain.h:86
bool rtems_rtl_chain_iterate(rtems_chain_control *chain, rtems_chain_iterator iterator, void *data)
Definition: rtl-chain-iterator.c:25
Chain API.
int rtems_rtl_chain_count(rtems_chain_control *chain)
Definition: rtl-chain-iterator.c:52
bool(* rtems_chain_iterator)(rtems_chain_node *node, void *data)
Definition: rtl-chain-iterator.h:28