source: rtems/cpukit/score/src/objectapimaximumclass.c @ 749d64a

4.104.115
Last change on this file since 749d64a was d6c8b56b, checked in by Joel Sherrill <joel.sherrill@…>, on 07/07/09 at 23:33:17

2009-07-07 Joel Sherrill <joel.sherrill@…>

  • rtems/src/rtemsobjectapimaximumclass.c, score/include/rtems/score/object.h, score/src/objectapimaximumclass.c, score/src/objectgetinfo.c: Change return type of API maximum class methods to unsigned.
  • Property mode set to 100644
File size: 803 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems/system.h>
17#include <rtems/score/object.h>
18
19unsigned int _Objects_API_maximum_class(
20  uint32_t api
21)
22{
23  switch (api) {
24    case OBJECTS_INTERNAL_API:
25      return OBJECTS_INTERNAL_CLASSES_LAST;
26    case OBJECTS_CLASSIC_API:
27      return OBJECTS_RTEMS_CLASSES_LAST;
28    case OBJECTS_POSIX_API:
29      return OBJECTS_POSIX_CLASSES_LAST;
30    case OBJECTS_ITRON_API:
31      return OBJECTS_ITRON_CLASSES_LAST;
32    case OBJECTS_NO_API:
33    default:
34      break;
35  }
36  return 0;
37}
38
Note: See TracBrowser for help on using the repository browser.