From a2e3f33f39e6898c2e2886216fe671b29a93d643 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 24 Jul 2013 13:50:54 +0200 Subject: 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. --- cpukit/rtems/src/rtemsobjectgetapiclassname.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'cpukit/rtems/src/rtemsobjectgetapiclassname.c') diff --git a/cpukit/rtems/src/rtemsobjectgetapiclassname.c b/cpukit/rtems/src/rtemsobjectgetapiclassname.c index 93495829f8..4cd07f8a9b 100644 --- a/cpukit/rtems/src/rtemsobjectgetapiclassname.c +++ b/cpukit/rtems/src/rtemsobjectgetapiclassname.c @@ -18,18 +18,18 @@ #include "config.h" #endif -#include -#include #include +#include #include -rtems_assoc_t rtems_object_api_internal_assoc[] = { +static const rtems_assoc_t rtems_object_api_internal_assoc[] = { { "Thread", OBJECTS_INTERNAL_THREADS, 0}, { "Mutex", OBJECTS_INTERNAL_MUTEXES, 0}, + { NULL, 0, 0} }; -rtems_assoc_t rtems_object_api_classic_assoc[] = { +static const rtems_assoc_t rtems_object_api_classic_assoc[] = { { "Task", OBJECTS_RTEMS_TASKS, 0}, { "Timer", OBJECTS_RTEMS_TIMERS, 0}, { "Semaphore", OBJECTS_RTEMS_SEMAPHORES, 0}, @@ -40,10 +40,11 @@ rtems_assoc_t rtems_object_api_classic_assoc[] = { { "Period", OBJECTS_RTEMS_PERIODS, 0}, { "Extension", OBJECTS_RTEMS_EXTENSIONS, 0}, { "Barrier", OBJECTS_RTEMS_BARRIERS, 0}, + { NULL, 0, 0} }; #ifdef RTEMS_POSIX_API -rtems_assoc_t rtems_object_api_posix_assoc[] = { +static const rtems_assoc_t rtems_object_api_posix_assoc[] = { { "Thread", OBJECTS_POSIX_THREADS, 0}, { "Key", OBJECTS_POSIX_KEYS, 0}, { "Interrupt", OBJECTS_POSIX_INTERRUPTS, 0}, @@ -56,6 +57,7 @@ rtems_assoc_t rtems_object_api_posix_assoc[] = { { "Barrier", OBJECTS_POSIX_BARRIERS, 0}, { "Spinlock", OBJECTS_POSIX_SPINLOCKS, 0}, { "RWLock", OBJECTS_POSIX_RWLOCKS, 0}, + { NULL, 0, 0} }; #endif -- cgit v1.2.3