source: rtems/cpukit/score/src/apiext.c @ bd91f446

5
Last change on this file since bd91f446 was bd91f446, checked in by Sebastian Huber <sebastian.huber@…>, on 12/08/15 at 07:34:08

score: Delete unused API extensions

Update #2408.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @brief Holding for API Extension Functions
5 *
6 * @ingroup ScoreAPIExtension
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/score/apiext.h>
23
24static CHAIN_DEFINE_EMPTY( _API_extensions_List );
25
26void _API_extensions_Add(
27  API_extensions_Control *the_extension
28)
29{
30  _Chain_Append( &_API_extensions_List, &the_extension->Node );
31}
32
33void _API_extensions_Run_postdriver( void )
34{
35  Chain_Node             *the_node;
36  API_extensions_Control *the_extension;
37
38  for ( the_node = _Chain_First( &_API_extensions_List );
39        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
40        the_node = the_node->next ) {
41
42    the_extension = (API_extensions_Control *) the_node;
43
44    /*
45     *  Currently all APIs configure this hook so it is always non-NULL.
46     */
47    (*the_extension->postdriver_hook)();
48  }
49}
Note: See TracBrowser for help on using the repository browser.