5
Last change
on this file since 8a8b95aa was
4c20da4b,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/04/19 at 07:18:11
|
doxygen: Rename Score* groups in RTEMSScore*
Update #3706
|
-
Property mode set to
100644
|
File size:
984 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Removes Object from Namespace |
---|
5 | * |
---|
6 | * @ingroup RTEMSScore |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2008. |
---|
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 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/score/objectimpl.h> |
---|
23 | #include <rtems/score/wkspace.h> |
---|
24 | |
---|
25 | void _Objects_Namespace_remove_u32( |
---|
26 | const Objects_Information *information, |
---|
27 | Objects_Control *the_object |
---|
28 | ) |
---|
29 | { |
---|
30 | _Assert( !_Objects_Has_string_name( information ) ); |
---|
31 | the_object->name.name_u32 = 0; |
---|
32 | } |
---|
33 | |
---|
34 | void _Objects_Namespace_remove_string( |
---|
35 | const Objects_Information *information, |
---|
36 | Objects_Control *the_object |
---|
37 | ) |
---|
38 | { |
---|
39 | char *name; |
---|
40 | |
---|
41 | _Assert( _Objects_Has_string_name( information ) ); |
---|
42 | name = RTEMS_DECONST( char *, the_object->name.name_p ); |
---|
43 | the_object->name.name_p = NULL; |
---|
44 | _Workspace_Free( name ); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.