summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/objectimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-23 17:22:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-12-03 07:12:12 +0100
commit13bab346c528d1c4d459a8eabbc47656993601f1 (patch)
treed61046cf9df1f7789f84f816480fe05a5e78499a /cpukit/include/rtems/score/objectimpl.h
parentrtems: Generate <rtems/rtems/object.h> (diff)
downloadrtems-13bab346c528d1c4d459a8eabbc47656993601f1.tar.bz2
score: Return a status in _Objects_Set_name()
Diffstat (limited to 'cpukit/include/rtems/score/objectimpl.h')
-rw-r--r--cpukit/include/rtems/score/objectimpl.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/include/rtems/score/objectimpl.h b/cpukit/include/rtems/score/objectimpl.h
index fb14d38452..1a0029b3b0 100644
--- a/cpukit/include/rtems/score/objectimpl.h
+++ b/cpukit/include/rtems/score/objectimpl.h
@@ -23,6 +23,7 @@
#include <rtems/score/apimutex.h>
#include <rtems/score/assert.h>
#include <rtems/score/isrlock.h>
+#include <rtems/score/status.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/threaddispatch.h>
@@ -461,14 +462,15 @@ size_t _Objects_Name_to_string(
* or up to the first four characters of the string based upon
* whether this object class uses strings for names.
*
- * @param information points to the object information structure
- * @param[out] the_object is the object to operate upon
- * @param name is a pointer to the name to use
+ * @param information points to the object information.
+ * @param[out] the_object is the object to operate upon.
+ * @param name is a pointer to the name to use.
*
- * @retval true The operation succeeded.
- * @retval false The operation failed.
+ * @retval STATUS_SUCCESSFUL The operation succeeded.
+ *
+ * @retval STATUS_NO_MEMORY There was no memory available to duplicate the name.
*/
-bool _Objects_Set_name(
+Status_Control _Objects_Set_name(
const Objects_Information *information,
Objects_Control *the_object,
const char *name