summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/object.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-11-23 14:53:04 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-11-23 14:53:04 +0000
commitfdc57ca4b6794dc17c7b7d94ae557da21e314d6a (patch)
tree05f3b9f188571998fbf80c23f773c5728a10e724 /cpukit/rtems/include/rtems/rtems/object.h
parent2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-fdc57ca4b6794dc17c7b7d94ae557da21e314d6a.tar.bz2
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.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/object.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/object.h35
1 files changed, 26 insertions, 9 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/object.h b/cpukit/rtems/include/rtems/rtems/object.h
index d419a3b095..5a6e97189a 100644
--- a/cpukit/rtems/include/rtems/rtems/object.h
+++ b/cpukit/rtems/include/rtems/rtems/object.h
@@ -249,15 +249,32 @@ rtems_status_code rtems_object_set_name(
* specified @a api. Each API supports a different number
* 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
* class number for the specified @a api.
*/
-uint32_t rtems_object_id_api_minimum_class(
- uint32_t api
+int rtems_object_api_minimum_class(
+ 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
*
@@ -271,7 +288,7 @@ uint32_t rtems_object_id_api_minimum_class(
* class number for the specified @a api.
*/
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"
*/
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"
*/
const char *rtems_object_get_api_class_name(
- uint32_t the_api,
- uint32_t the_class
+ int the_api,
+ int the_class
);
/**
@@ -324,8 +341,8 @@ const char *rtems_object_get_api_class_name(
*
*/
rtems_status_code rtems_object_get_class_information(
- uint32_t the_api,
- uint32_t the_class,
+ int the_api,
+ int the_class,
rtems_object_api_class_information *info
);