4.115
Last change
on this file since 23de794d was
a2e3f33,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/24/13 at 11:50:54
|
score: Create object implementation header
Move implementation specific parts of object.h and object.inl into new
header file objectimpl.h. The object.h contains now only the
application visible API.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ClassicUserExtensions |
---|
5 | * |
---|
6 | * @brief User Extensions Implementation. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2007. |
---|
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 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/extensionimpl.h> |
---|
23 | #include <rtems/score/thread.h> |
---|
24 | #include <rtems/score/userextimpl.h> |
---|
25 | |
---|
26 | rtems_status_code rtems_extension_delete( |
---|
27 | rtems_id id |
---|
28 | ) |
---|
29 | { |
---|
30 | Extension_Control *the_extension; |
---|
31 | Objects_Locations location; |
---|
32 | |
---|
33 | the_extension = _Extension_Get( id, &location ); |
---|
34 | switch ( location ) { |
---|
35 | case OBJECTS_LOCAL: |
---|
36 | _User_extensions_Remove_set( &the_extension->Extension ); |
---|
37 | _Objects_Close( &_Extension_Information, &the_extension->Object ); |
---|
38 | _Extension_Free( the_extension ); |
---|
39 | _Objects_Put( &the_extension->Object ); |
---|
40 | return RTEMS_SUCCESSFUL; |
---|
41 | |
---|
42 | #if defined(RTEMS_MULTIPROCESSING) |
---|
43 | case OBJECTS_REMOTE: /* should never return this */ |
---|
44 | #endif |
---|
45 | case OBJECTS_ERROR: |
---|
46 | break; |
---|
47 | } |
---|
48 | |
---|
49 | return RTEMS_INVALID_ID; |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.