summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-11-30 13:20:29 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-11-30 13:20:29 +0000
commit5ad790ffbb2694dba185083fb338539d317abf01 (patch)
tree25cc6ba87a6e79271dfbe57b0d707fe78ebfd7b0 /cpukit/sapi
parentChanged base implementation of protected heap allocations to use _Heap_Alloca... (diff)
downloadrtems-5ad790ffbb2694dba185083fb338539d317abf01.tar.bz2
Added defines for initialization of empty chains.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/rtems/chain.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h
index 6050da3dfa..72481f7daa 100644
--- a/cpukit/sapi/include/rtems/chain.h
+++ b/cpukit/sapi/include/rtems/chain.h
@@ -43,6 +43,17 @@ typedef Chain_Node rtems_chain_node;
*/
typedef Chain_Control rtems_chain_control;
+/**
+ * @brief Chain initializer for an empty chain with designator @a name.
+ */
+#define RTEMS_CHAIN_INITIALIZER_EMPTY(name) \
+ CHAIN_INITIALIZER_EMPTY(name)
+
+/**
+ * @brief Chain definition for an empty chain with designator @a name.
+ */
+#define RTEMS_CHAIN_DEFINE_EMPTY(name) \
+ CHAIN_DEFINE_EMPTY(name)
#include <rtems/chain.inl>