summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-07 15:29:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-07 15:29:14 +0000
commit1ccbd63a6ac437f3d7abf16324c8bb2070d71fbd (patch)
treecd71f7ee2818f4df40f9768065ca7093b2f382c0 /cpukit/score/inline
parent2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-1ccbd63a6ac437f3d7abf16324c8bb2070d71fbd.tar.bz2
2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/object.inl: Add _Objects_Is_api_valid.
Diffstat (limited to 'cpukit/score/inline')
-rw-r--r--cpukit/score/inline/rtems/score/object.inl17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl
index 891f968d86..32105ddba2 100644
--- a/cpukit/score/inline/rtems/score/object.inl
+++ b/cpukit/score/inline/rtems/score/object.inl
@@ -101,6 +101,23 @@ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index(
}
/**
+ * This function returns TRUE if the api is valid.
+ *
+ * @param[in] the_api is the api portion of an object ID.
+ *
+ * @return This method returns TRUE if the specified api value is valid
+ * and FALSE otherwise.
+ */
+RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid(
+ uint32_t the_api
+)
+{
+ if ( !the_api || the_api > OBJECTS_APIS_LAST )
+ return FALSE;
+ return TRUE;
+}
+
+/**
* This function returns TRUE if the class is valid.
*
* @param[in] the_class is the class portion of an object ID.