source: rtems/c/src/exec/score/include/rtems/score/apiext.h @ 6ca1184

4.104.114.84.95
Last change on this file since 6ca1184 was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on 09/26/95 at 19:27:15

posix support initially added

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*  apiext.h
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#ifndef __API_EXTENSIONS_h
18#define __API_EXTENSIONS_h
19
20#include <rtems/score/chain.h>
21
22/*
23 *  The control structure which defines the points at which an API
24 *  can add an extension to the system initialization thread.
25 */
26 
27typedef void (*API_extensions_Predriver_hook)(void);
28typedef void (*API_extensions_Postdriver_hook)(void);
29 
30typedef struct {
31  Chain_Node                     Node;
32  API_extensions_Predriver_hook  predriver_hook;
33  API_extensions_Postdriver_hook postdriver_hook;
34}  API_extensions_Control;
35
36/*
37 *  This is the list of API extensions to the system initialization.
38 */
39 
40EXTERN Chain_Control _API_extensions_List;
41
42/*
43 *  _API_extensions_Initialization
44 *
45 *  DESCRIPTION:
46 *
47 *  This routine initializes the API extension handler.
48 *
49 */
50 
51void _API_extensions_Initialization( void );
52 
53/*
54 *  _API_extensions_Add
55 *
56 *  DESCRIPTION:
57 *
58 *  XXX
59 */
60 
61void _API_extensions_Add(
62  API_extensions_Control *the_extension
63);
64
65/*
66 *  _API_extensions_Run_predriver
67 *
68 *  DESCRIPTION:
69 *
70 *  XXX
71 */
72 
73void _API_extensions_Run_predriver( void );
74
75/*
76 *  _API_extensions_Run_postdriver
77 *
78 *  DESCRIPTION:
79 *
80 *  XXX
81 */
82
83void _API_extensions_Run_postdriver( void );
84
85#endif
86/* end of include file */
Note: See TracBrowser for help on using the repository browser.