Files
rtems/cpukit/score/src/objectapimaximumclass.c
2014-03-21 08:10:47 +11:00

41 lines
783 B
C

/**
* @file
*
* @brief Object API Maximum Class
* @ingroup ScoreObject
*/
/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <rtems/score/objectimpl.h>
unsigned int _Objects_API_maximum_class(
uint32_t api
)
{
switch (api) {
case OBJECTS_INTERNAL_API:
return OBJECTS_INTERNAL_CLASSES_LAST;
case OBJECTS_CLASSIC_API:
return OBJECTS_RTEMS_CLASSES_LAST;
case OBJECTS_POSIX_API:
return OBJECTS_POSIX_CLASSES_LAST;
case OBJECTS_NO_API:
default:
break;
}
return 0;
}