RTEMS  5.0.0
extensionimpl.h
Go to the documentation of this file.
1 
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.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_EXTENSIONIMPL_H
19 #define _RTEMS_EXTENSIONIMPL_H
20 
21 #include <rtems/extensiondata.h>
22 #include <rtems/score/objectimpl.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
36 RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
37 {
39 }
40 
41 RTEMS_INLINE_ROUTINE void _Extension_Free (
42  Extension_Control *the_extension
43 )
44 {
45  _Objects_Free( &_Extension_Information, &the_extension->Object );
46 }
47 
49 {
50  return (Extension_Control *)
52 }
53 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
61 /* end of include file */
void _Objects_Free(Objects_Information *information, Objects_Control *the_object)
Frees an object.
Definition: objectfree.c:25
Objects_Control * _Objects_Allocate(Objects_Information *information)
Allocates an object.
Definition: objectallocate.c:89
Classic User Extensions Data Structures.
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
Objects_Control * _Objects_Get_no_protection(Objects_Id id, const Objects_Information *information)
Maps object ids to object control blocks.
Definition: objectgetnoprotection.c:23
Definition: extensiondata.h:35
Inlined Routines in the Object Handler.
uint32_t Objects_Id
Definition: object.h:75
Objects_Information _Extension_Information
The Classic Extensions objects information.