From 72d2ec4da4ea788335adf921faebf0ac96d67c93 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 3 Jul 2008 01:37:38 +0000 Subject: 2008-07-03 Chris Johns * 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. --- cpukit/sapi/include/rtems/chain.h | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 cpukit/sapi/include/rtems/chain.h (limited to 'cpukit/sapi/include/rtems/chain.h') 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 +#include + +/** + * @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 + +#ifdef __cplusplus +} +#endif + +#endif +/* end of include file */ -- cgit v1.2.3