source: rtems/cpukit/sapi/macros/rtems/extension.inl @ b96254f

4.104.114.84.95
Last change on this file since b96254f was b96254f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 07:42:11

Add doxygen preamble.

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