source:
rtems/cpukit/rtems/src/rtemsobjectidgetclass.c
@
651e3aa
Last change on this file since 651e3aa was 651e3aa, checked in by Joel Sherrill <joel.sherrill@…>, on 12/09/13 at 16:17:00 | |
---|---|
|
|
File size: 686 bytes |
Rev | Line | |
---|---|---|
[c18e0ba] | 1 | /** |
2 | * @file | |
[6c06288] | 3 | * |
[c18e0ba] | 4 | * @brief Get Class Portion of Object Id |
5 | * @ingroup ClassicClassInfo | |
6 | */ | |
7 | ||
8 | /* | |
[651e3aa] | 9 | * COPYRIGHT (c) 1989-2013. |
[6c06288] | 10 | * On-Line Applications Research Corporation (OAR). |
11 | * | |
12 | * The license and distribution terms for this file may be | |
13 | * found in the file LICENSE in this distribution or at | |
14 | * http://www.rtems.com/license/LICENSE. | |
15 | */ | |
16 | ||
17 | #ifdef HAVE_CONFIG_H | |
18 | #include "config.h" | |
19 | #endif | |
20 | ||
[a2e3f33] | 21 | #include <rtems/score/objectimpl.h> |
[6c06288] | 22 | |
[651e3aa] | 23 | /* |
24 | * This is implemented as a macro. This body is provided to support | |
25 | * bindings from non-C based languages. | |
26 | */ | |
[fdc57ca] | 27 | int rtems_object_id_get_class( |
[a2e3f33] | 28 | Objects_Id id |
29 | ); | |
30 | ||
31 | int rtems_object_id_get_class( | |
32 | Objects_Id id | |
[6c06288] | 33 | ) |
34 | { | |
35 | return _Objects_Get_class( id ); | |
[05c1886] | 36 | } |
Note: See TracBrowser
for help on using the repository browser.