OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [exec/] [sapi/] [macros/] [rtems/] [extension.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
/*  extension.inl
2
 *
3
 *  This file contains the macro implementation of the inlined routines
4
 *  from the Extension Manager.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13 208 chris
 *  $Id: extension.inl,v 1.2 2001-09-27 11:59:20 chris Exp $
14 158 chris
 */
15
 
16
#ifndef __EXTENSION_inl
17
#define __EXTENSION_inl
18
 
19
/*PAGE
20
 *
21
 *  _Extension_Allocate
22
 *
23
 */
24
 
25
#define _Extension_Allocate() \
26
  (Extension_Control *) _Objects_Allocate( &_Extension_Information )
27
 
28
/*PAGE
29
 *
30
 *  _Extension_Free
31
 *
32
 */
33
 
34
#define _Extension_Free( _the_extension ) \
35
  _Objects_Free( &_Extension_Information, &(_the_extension)->Object )
36
 
37
/*PAGE
38
 *
39
 *  _Extension_Get
40
 *
41
 */
42
 
43
#define _Extension_Get( _id, _location ) \
44
  (Extension_Control *) \
45
    _Objects_Get( &_Extension_Information, (_id), (_location) )
46
 
47
/*PAGE
48
 *
49
 *  _Extension_Is_null
50
 *
51
 */
52
 
53
#define _Extension_Is_null( _the_extension ) \
54
  ( (_the_extension) == NULL )
55
 
56
#endif
57
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.