summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/chain.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2008-07-03 01:37:38 +0000
committerChris Johns <chrisj@rtems.org>2008-07-03 01:37:38 +0000
commit72d2ec4da4ea788335adf921faebf0ac96d67c93 (patch)
treef50017188d1482928932df90c96985a0748616cd /cpukit/sapi/include/rtems/chain.h
parent2008-07-03 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-72d2ec4da4ea788335adf921faebf0ac96d67c93.tar.bz2
2008-07-03 Chris Johns <chrisj@rtems.org>
* cpukit/libcsupport/include/chain.h: Removed. Use the SAPI interface that is supported. * cpukit/libcsupport/Makefile.am, cpukit/libcsupport/preinstall.am: Remove chain.h header references. * cpukit/sapi/include/rtems/chain.h, cpukit/sapi/inline/rtems/chain.inl: New. A supported chains interface. * cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to include the new chains interface. * cpukit/libfs/src/imfs/imfs.h, cpukit/libfs/src/imfs/imfs_creat.c, cpukit/libfs/src/imfs/imfs_debug.c, cpukit/libfs/src/imfs/imfs_directory.c, cpukit/libfs/src/imfs/imfs_fsunmount.c, cpukit/libfs/src/imfs/imfs_getchild.c, cpukit/libfs/src/imfs/imfs_load_tar.c, cpukit/libfs/src/imfs/imfs_rmnod.c, cpukit/libfs/src/imfs/memfile.c, cpukit/libfs/src/nfsclient/src/nfs.c, cpukit/libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/malloc_deferred.c, cpukit/libcsupport/src/mount.c, cpukit/libcsupport/src/privateenv.c, cpukit/libcsupport/src/unmount.c: Change to the new chains interface. * cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
Diffstat (limited to '')
-rw-r--r--cpukit/sapi/include/rtems/chain.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h
new file mode 100644
index 0000000000..77ff4fceac
--- /dev/null
+++ b/cpukit/sapi/include/rtems/chain.h
@@ -0,0 +1,54 @@
+/**
+ * @file rtems/chain.h
+ *
+ * This include file contains all the constants and structures associated
+ * with the Chain API in RTEMS. The chain is a double linked list that
+ * is part of the Super Core. This is the published interface to that
+ * code.
+ *
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2008.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef _RTEMS_CHAIN_H
+#define _RTEMS_CHAIN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <rtems/system.h>
+#include <rtems/score/chain.h>
+
+/**
+ * @typedef rtems_chain_node
+ *
+ * A node that can be manipulated in the chain.
+ */
+typedef Chain_Node rtems_chain_node;
+
+/**
+ * @typedef rtems_chain_control
+ *
+ * The chain's control anchors the chain.
+ */
+typedef Chain_Control rtems_chain_control;
+
+
+#include <rtems/chain.inl>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */