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 | |
---|
27 | typedef void (*API_extensions_Predriver_hook)(void); |
---|
28 | typedef void (*API_extensions_Postdriver_hook)(void); |
---|
29 | |
---|
30 | typedef 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 | |
---|
40 | EXTERN 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 | |
---|
51 | void _API_extensions_Initialization( void ); |
---|
52 | |
---|
53 | /* |
---|
54 | * _API_extensions_Add |
---|
55 | * |
---|
56 | * DESCRIPTION: |
---|
57 | * |
---|
58 | * XXX |
---|
59 | */ |
---|
60 | |
---|
61 | void _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 | |
---|
73 | void _API_extensions_Run_predriver( void ); |
---|
74 | |
---|
75 | /* |
---|
76 | * _API_extensions_Run_postdriver |
---|
77 | * |
---|
78 | * DESCRIPTION: |
---|
79 | * |
---|
80 | * XXX |
---|
81 | */ |
---|
82 | |
---|
83 | void _API_extensions_Run_postdriver( void ); |
---|
84 | |
---|
85 | #endif |
---|
86 | /* end of include file */ |
---|