4.115
Last change
on this file since e88c7b7 was
e88c7b7,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/18/10 at 04:05:05
|
2010-06-18 Ralf Corsépius <ralf.corsepius@…>
- rtems/src/rtemsobjectgetapiname.c: Remove ITRON.
|
-
Property mode set to
100644
|
File size:
895 bytes
|
Line | |
---|
1 | /* |
---|
2 | * RTEMS Object Helper -- Obtain Name of API |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2008. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifdef HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <rtems/system.h> |
---|
19 | #include <rtems/score/object.h> |
---|
20 | #include <rtems/rtems/object.h> |
---|
21 | |
---|
22 | #include <rtems/assoc.h> |
---|
23 | |
---|
24 | rtems_assoc_t rtems_objects_api_assoc[] = { |
---|
25 | { "Internal", OBJECTS_INTERNAL_API, 0}, |
---|
26 | { "Classic", OBJECTS_CLASSIC_API, 0}, |
---|
27 | { "POSIX", OBJECTS_POSIX_API, 0}, |
---|
28 | { 0, 0, 0 } |
---|
29 | }; |
---|
30 | |
---|
31 | const char *rtems_object_get_api_name( |
---|
32 | int api |
---|
33 | ) |
---|
34 | { |
---|
35 | const rtems_assoc_t *api_assoc; |
---|
36 | |
---|
37 | api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); |
---|
38 | if ( api_assoc ) |
---|
39 | return api_assoc->name; |
---|
40 | return "BAD CLASS"; |
---|
41 | } |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.