source: rtems/cpukit/sapi/inline/rtems/extension.inl @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicUserExtensions
5 *
6 * @brief User Extensions API.
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#ifndef __EXTENSION_MANAGER_inl
19#define __EXTENSION_MANAGER_inl
20
21RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
22{
23  return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
24}
25
26RTEMS_INLINE_ROUTINE void _Extension_Free (
27  Extension_Control *the_extension
28)
29{
30  _Objects_Free( &_Extension_Information, &the_extension->Object );
31}
32
33RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get (
34  Objects_Id         id,
35  Objects_Locations *location
36)
37{
38  return (Extension_Control *)
39    _Objects_Get( &_Extension_Information, id, location );
40}
41
42RTEMS_INLINE_ROUTINE bool _Extension_Is_null (
43  Extension_Control *the_extension
44)
45{
46  return ( the_extension == NULL );
47}
48
49#endif
50/* end of include file */
Note: See TracBrowser for help on using the repository browser.