source: rtems/cpukit/score/src/apiext.c @ 8bdcfc4

4.104.114.84.95
Last change on this file since 8bdcfc4 was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 26, 1995 at 7:27:15 PM

posix support initially added

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  apiext.c
2 *
3 *  XXX
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16
17#include <rtems/system.h>
18#include <rtems/score/apiext.h>
19
20/*PAGE
21 *
22 *  _API_extensions_Initialization
23 */
24 
25void _API_extensions_Initialization( void )
26{
27 _Chain_Initialize_empty( &_API_extensions_List );
28}
29 
30/*PAGE
31 *
32 *  _API_extensions_Add
33 */
34 
35void _API_extensions_Add(
36  API_extensions_Control *the_extension
37)
38{
39  _Chain_Append( &_API_extensions_List, &the_extension->Node );
40}
41
42/*PAGE
43 *
44 *  _API_extensions_Run_predriver
45 */
46
47void _API_extensions_Run_predriver( void )
48{
49  Chain_Node             *the_node;
50  API_extensions_Control *the_extension;
51 
52  for ( the_node = _API_extensions_List.first ;
53        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
54        the_node = the_node->next ) {
55 
56    the_extension = (API_extensions_Control *) the_node;
57 
58    if ( the_extension->predriver_hook )
59      (*the_extension->predriver_hook)();
60  }
61}
62
63/*PAGE
64 *
65 *  _API_extensions_Run_postdriver
66 */
67
68void _API_extensions_Run_postdriver( void )
69{
70  Chain_Node             *the_node;
71  API_extensions_Control *the_extension;
72 
73  for ( the_node = _API_extensions_List.first ;
74        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
75        the_node = the_node->next ) {
76 
77    the_extension = (API_extensions_Control *) the_node;
78 
79    if ( the_extension->postdriver_hook )
80      (*the_extension->postdriver_hook)();
81  }
82}
83
84/* end of file */
Note: See TracBrowser for help on using the repository browser.