Changeset fdc57ca in rtems


Ignore:
Timestamp:
Nov 23, 2009, 2:53:04 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
e25611d
Parents:
3f255ce1
Message:

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.
Location:
cpukit
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r3f255ce1 rfdc57ca  
     12009-11-23      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1460/cpukit
     4        * rtems/include/rtems/rtems/object.h,
     5        rtems/src/rtemsobjectapimaximumclass.c,
     6        rtems/src/rtemsobjectgetapiclassname.c,
     7        rtems/src/rtemsobjectgetapiname.c,
     8        rtems/src/rtemsobjectgetclassinfo.c,
     9        rtems/src/rtemsobjectidapimaximum.c,
     10        rtems/src/rtemsobjectidapiminimum.c, rtems/src/rtemsobjectidgetapi.c,
     11        rtems/src/rtemsobjectidgetclass.c, rtems/src/rtemsobjectidgetindex.c,
     12        rtems/src/rtemsobjectidgetnode.c: Change return type on methods
     13        accessing portions of RTEMS Ids to int. This allows -1 to be return
     14        on error.
     15
    1162009-11-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    217
  • cpukit/rtems/include/rtems/rtems/object.h

    r3f255ce1 rfdc57ca  
    250250 *  of object classes.
    251251 *
    252  *  @param[in] api is the API to obtain the maximum class of
     252 *  @param[in] api is the API to obtain the minimum class of
    253253 *
    254254 *  @return This method returns the least valid value for
    255255 *          class number for the specified @a api.
    256256 */
    257 uint32_t rtems_object_id_api_minimum_class(
    258   uint32_t api
    259 );
     257int rtems_object_api_minimum_class(
     258  int api
     259);
     260
     261/**
     262 *  @brief Get Highest Valid Class Value
     263 *
     264 *  This method returns the highest valid value Class for the
     265 *  specified @a api.  Each API supports a different number
     266 *  of object classes.
     267 *
     268 *  @param[in] api is the API to obtain the maximum class of
     269 *
     270 *  @return This method returns the greatet valid value for
     271 *          class number for the specified @a api.
     272 */
     273int rtems_object_api_maximum_class(
     274  int api
     275);
     276
    260277
    261278/**
     
    272289 */
    273290int rtems_object_id_api_maximum_class(
    274   uint32_t api
     291  int api
    275292);
    276293
     
    288305 */
    289306const char *rtems_object_get_api_name(
    290   uint32_t api
     307  int api
    291308);
    292309
     
    305322 */
    306323const char *rtems_object_get_api_class_name(
    307   uint32_t the_api,
    308   uint32_t the_class
     324  int the_api,
     325  int the_class
    309326);
    310327
     
    325342 */
    326343rtems_status_code rtems_object_get_class_information(
    327   uint32_t                            the_api,
    328   uint32_t                            the_class,
     344  int                                 the_api,
     345  int                                 the_class,
    329346  rtems_object_api_class_information *info
    330347);
  • cpukit/rtems/src/rtemsobjectapimaximumclass.c

    r3f255ce1 rfdc57ca  
    2020#include <rtems/rtems/types.h>
    2121
    22 unsigned int rtems_object_api_maximum_class(
    23   uint32_t api
     22int rtems_object_api_maximum_class(
     23  int api
    2424)
    2525{
  • cpukit/rtems/src/rtemsobjectgetapiclassname.c

    r3f255ce1 rfdc57ca  
    7171
    7272const char *rtems_object_get_api_class_name(
    73   uint32_t the_api,
    74   uint32_t the_class
     73  int the_api,
     74  int the_class
    7575)
    7676{
  • cpukit/rtems/src/rtemsobjectgetapiname.c

    r3f255ce1 rfdc57ca  
    3131
    3232const char *rtems_object_get_api_name(
    33   uint32_t api
     33  int api
    3434)
    3535{
  • cpukit/rtems/src/rtemsobjectgetclassinfo.c

    r3f255ce1 rfdc57ca  
    2222
    2323rtems_status_code rtems_object_get_class_information(
    24   uint32_t                            the_api,
    25   uint32_t                            the_class,
     24  int                                 the_api,
     25  int                                 the_class,
    2626  rtems_object_api_class_information *info
    2727)
    2828{
    2929  Objects_Information *obj_info;
    30   uint32_t             unallocated;
    31   uint32_t             i;
     30  int                  unallocated;
     31  int                  i;
    3232
    3333  /*
  • cpukit/rtems/src/rtemsobjectidapimaximum.c

    r3f255ce1 rfdc57ca  
    2121
    2222#undef rtems_object_id_api_maximum
    23 uint32_t rtems_object_id_api_maximum(void)
     23int rtems_object_id_api_maximum(void)
    2424{
    2525  return OBJECTS_ITRON_API;
  • cpukit/rtems/src/rtemsobjectidapiminimum.c

    r3f255ce1 rfdc57ca  
    2121
    2222#undef rtems_object_id_api_minimum
    23 uint32_t rtems_object_id_api_minimum(void)
     23int rtems_object_id_api_minimum(void)
    2424{
    2525  return OBJECTS_INTERNAL_API;
  • cpukit/rtems/src/rtemsobjectidgetapi.c

    r3f255ce1 rfdc57ca  
    2121
    2222#undef rtems_object_id_get_api
    23 uint32_t rtems_object_id_get_api(
     23int rtems_object_id_get_api(
    2424  rtems_id id
    2525)
  • cpukit/rtems/src/rtemsobjectidgetclass.c

    r3f255ce1 rfdc57ca  
    2121
    2222#undef rtems_object_id_get_class
    23 uint32_t rtems_object_id_get_class(
     23int rtems_object_id_get_class(
    2424  rtems_id id
    2525)
  • cpukit/rtems/src/rtemsobjectidgetindex.c

    r3f255ce1 rfdc57ca  
    2121
    2222#undef rtems_object_id_get_index
    23 uint32_t rtems_object_id_get_index(
     23int rtems_object_id_get_index(
    2424  rtems_id id
    2525)
  • cpukit/rtems/src/rtemsobjectidgetnode.c

    r3f255ce1 rfdc57ca  
    2121
    2222#undef rtems_object_id_get_node
    23 uint32_t rtems_object_id_get_node(
     23int rtems_object_id_get_node(
    2424  rtems_id id
    2525)
Note: See TracChangeset for help on using the changeset viewer.