source: rtems/cpukit/sapi/macros/rtems/extension.inl @ 2ba508b

4.104.114.84.95
Last change on this file since 2ba508b was 2ba508b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 4, 2003 at 6:54:35 PM

2003-09-04 Joel Sherrill <joel@…>

  • include/confdefs.h, include/rtems/config.h, include/rtems/extension.h, include/rtems/fatal.h, include/rtems/init.h, include/rtems/io.h, include/rtems/mptables.h, include/rtems/sptables.h, include/rtems/sptables.h.in, inline/rtems/extension.inl, macros/rtems/extension.inl, src/debug.c, src/exinit.c, src/extension.c, src/extensioncreate.c, src/extensiondelete.c, src/extensionident.c, src/fatal.c, src/io.c, src/itronapi.c, src/posixapi.c, src/rtemsapi.c: URL for license changed.
  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*  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.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
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 */
Note: See TracBrowser for help on using the repository browser.