source: rtems/cpukit/rtems/src/rtemsobjectapiminimumclass.c @ b9f91658

4.115
Last change on this file since b9f91658 was b9f91658, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/07/11 at 18:46:05

2011-12-07 Ralf Corsépius <ralf.corsepius@…>

  • rtems/src/rtemsobjectapiminimumclass.c: Include <rtems/rtems/object.h> (Missing prototype). Adjust rtems_object_api_minimum_class to prototype.
  • Property mode set to 100644
File size: 615 bytes
Line 
1/*
2 *  RTEMS Object Helper -- Get Least Valid Class for an 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/types.h>
21#include <rtems/rtems/object.h>
22
23int rtems_object_api_minimum_class(
24  int api
25)
26{
27  if ( _Objects_Is_api_valid( api ) )
28    return 1;
29  return -1;
30}
Note: See TracBrowser for help on using the repository browser.