diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-23 17:22:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-03 07:12:12 +0100 |
commit | 13bab346c528d1c4d459a8eabbc47656993601f1 (patch) | |
tree | d61046cf9df1f7789f84f816480fe05a5e78499a /cpukit/include/rtems/score/objectimpl.h | |
parent | rtems: Generate <rtems/rtems/object.h> (diff) | |
download | rtems-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.h | 14 |
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 |