forked from Imagelibrary/rtems
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
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.
This commit is contained in:
@@ -1,3 +1,18 @@
|
|||||||
|
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* mghttpd/mongoose.c: crypto_sw table is not used when SSL is disabled.
|
* mghttpd/mongoose.c: crypto_sw table is not used when SSL is disabled.
|
||||||
|
|||||||
@@ -249,15 +249,32 @@ rtems_status_code rtems_object_set_name(
|
|||||||
* specified @a api. Each API supports a different number
|
* specified @a api. Each API supports a different number
|
||||||
* of object classes.
|
* of object classes.
|
||||||
*
|
*
|
||||||
* @param[in] api is the API to obtain the maximum class of
|
* @param[in] api is the API to obtain the minimum class of
|
||||||
*
|
*
|
||||||
* @return This method returns the least valid value for
|
* @return This method returns the least valid value for
|
||||||
* class number for the specified @a api.
|
* class number for the specified @a api.
|
||||||
*/
|
*/
|
||||||
uint32_t rtems_object_id_api_minimum_class(
|
int rtems_object_api_minimum_class(
|
||||||
uint32_t api
|
int api
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get Highest Valid Class Value
|
||||||
|
*
|
||||||
|
* This method returns the highest valid value Class for the
|
||||||
|
* specified @a api. Each API supports a different number
|
||||||
|
* of object classes.
|
||||||
|
*
|
||||||
|
* @param[in] api is the API to obtain the maximum class of
|
||||||
|
*
|
||||||
|
* @return This method returns the greatet valid value for
|
||||||
|
* class number for the specified @a api.
|
||||||
|
*/
|
||||||
|
int rtems_object_api_maximum_class(
|
||||||
|
int api
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get Highest Valid Class Value
|
* @brief Get Highest Valid Class Value
|
||||||
*
|
*
|
||||||
@@ -271,7 +288,7 @@ uint32_t rtems_object_id_api_minimum_class(
|
|||||||
* class number for the specified @a api.
|
* class number for the specified @a api.
|
||||||
*/
|
*/
|
||||||
int rtems_object_id_api_maximum_class(
|
int rtems_object_id_api_maximum_class(
|
||||||
uint32_t api
|
int api
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -287,7 +304,7 @@ int rtems_object_id_api_maximum_class(
|
|||||||
* the string "BAD API"
|
* the string "BAD API"
|
||||||
*/
|
*/
|
||||||
const char *rtems_object_get_api_name(
|
const char *rtems_object_get_api_name(
|
||||||
uint32_t api
|
int api
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -304,8 +321,8 @@ const char *rtems_object_get_api_name(
|
|||||||
* the string "BAD CLASS"
|
* the string "BAD CLASS"
|
||||||
*/
|
*/
|
||||||
const char *rtems_object_get_api_class_name(
|
const char *rtems_object_get_api_class_name(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class
|
int the_class
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -324,8 +341,8 @@ const char *rtems_object_get_api_class_name(
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
rtems_status_code rtems_object_get_class_information(
|
rtems_status_code rtems_object_get_class_information(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class,
|
int the_class,
|
||||||
rtems_object_api_class_information *info
|
rtems_object_api_class_information *info
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
#include <rtems/score/object.h>
|
#include <rtems/score/object.h>
|
||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
unsigned int rtems_object_api_maximum_class(
|
int rtems_object_api_maximum_class(
|
||||||
uint32_t api
|
int api
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return _Objects_API_maximum_class(api);
|
return _Objects_API_maximum_class(api);
|
||||||
|
|||||||
@@ -70,8 +70,8 @@ rtems_assoc_t rtems_object_api_itron_assoc[] = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *rtems_object_get_api_class_name(
|
const char *rtems_object_get_api_class_name(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class
|
int the_class
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const rtems_assoc_t *api_assoc;
|
const rtems_assoc_t *api_assoc;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ rtems_assoc_t rtems_objects_api_assoc[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const char *rtems_object_get_api_name(
|
const char *rtems_object_get_api_name(
|
||||||
uint32_t api
|
int api
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const rtems_assoc_t *api_assoc;
|
const rtems_assoc_t *api_assoc;
|
||||||
|
|||||||
@@ -21,14 +21,14 @@
|
|||||||
#include <rtems/rtems/object.h>
|
#include <rtems/rtems/object.h>
|
||||||
|
|
||||||
rtems_status_code rtems_object_get_class_information(
|
rtems_status_code rtems_object_get_class_information(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class,
|
int the_class,
|
||||||
rtems_object_api_class_information *info
|
rtems_object_api_class_information *info
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Objects_Information *obj_info;
|
Objects_Information *obj_info;
|
||||||
uint32_t unallocated;
|
int unallocated;
|
||||||
uint32_t i;
|
int i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Validate parameters and look up information structure.
|
* Validate parameters and look up information structure.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
#undef rtems_object_id_api_maximum
|
#undef rtems_object_id_api_maximum
|
||||||
uint32_t rtems_object_id_api_maximum(void)
|
int rtems_object_id_api_maximum(void)
|
||||||
{
|
{
|
||||||
return OBJECTS_ITRON_API;
|
return OBJECTS_ITRON_API;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
#undef rtems_object_id_api_minimum
|
#undef rtems_object_id_api_minimum
|
||||||
uint32_t rtems_object_id_api_minimum(void)
|
int rtems_object_id_api_minimum(void)
|
||||||
{
|
{
|
||||||
return OBJECTS_INTERNAL_API;
|
return OBJECTS_INTERNAL_API;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
#undef rtems_object_id_get_api
|
#undef rtems_object_id_get_api
|
||||||
uint32_t rtems_object_id_get_api(
|
int rtems_object_id_get_api(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
#undef rtems_object_id_get_class
|
#undef rtems_object_id_get_class
|
||||||
uint32_t rtems_object_id_get_class(
|
int rtems_object_id_get_class(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
#undef rtems_object_id_get_index
|
#undef rtems_object_id_get_index
|
||||||
uint32_t rtems_object_id_get_index(
|
int rtems_object_id_get_index(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
#undef rtems_object_id_get_node
|
#undef rtems_object_id_get_node
|
||||||
uint32_t rtems_object_id_get_node(
|
int rtems_object_id_get_node(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user