summaryrefslogblamecommitdiffstats
path: root/cpukit/score/src/objectapimaximumclass.c
blob: dc6b6c4681e8b194201a87e542ba25de07384b1c (plain) (tree)
1
2
3
4
5
6
7






                                   





                                                           
                                         





                    
                                   
 
                                        









                                           



                        
           

 
/**
 *  @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;
}