source: rtems/cpukit/rtems/src/rtemsobjectidgetclass.c @ fdc57ca

4.104.115
Last change on this file since fdc57ca was fdc57ca, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/09 at 14:53:04

2009-11-23 Joel Sherrill <joel.sherrill@…>

PR 1460/cpukit

  • rtems/include/rtems/rtems/object.h, rtems/src/rtemsobjectapimaximumclass.c, rtems/src/rtemsobjectgetapiclassname.c, rtems/src/rtemsobjectgetapiname.c, rtems/src/rtemsobjectgetclassinfo.c, rtems/src/rtemsobjectidapimaximum.c, rtems/src/rtemsobjectidapiminimum.c, rtems/src/rtemsobjectidgetapi.c, rtems/src/rtemsobjectidgetclass.c, rtems/src/rtemsobjectidgetindex.c, rtems/src/rtemsobjectidgetnode.c: Change return type on methods accessing portions of RTEMS Ids to int. This allows -1 to be return on error.
  • Property mode set to 100644
File size: 575 bytes
Line 
1/*
2 *  RTEMS Object Helper -- Extract Class From Id
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
22#undef rtems_object_id_get_class
23int rtems_object_id_get_class(
24  rtems_id id
25)
26{
27  return _Objects_Get_class( id );
28}
Note: See TracBrowser for help on using the repository browser.