summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/objectimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-12 08:28:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-13 07:19:21 +0100
commitb8bcebea186e2d02334a014d5e792a0dde8007fc (patch)
tree57c5d9e00fdb03008c96f812c2a76386a569a6eb /cpukit/score/include/rtems/score/objectimpl.h
parentconfigure: Add RTEMS_TOOL_CHAIN_ERROR (diff)
downloadrtems-b8bcebea186e2d02334a014d5e792a0dde8007fc.tar.bz2
score: Add and use _Objects_Name_to_string()
Update #2858.
Diffstat (limited to 'cpukit/score/include/rtems/score/objectimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/objectimpl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/objectimpl.h b/cpukit/score/include/rtems/score/objectimpl.h
index a00aa2276e..1ec688a793 100644
--- a/cpukit/score/include/rtems/score/objectimpl.h
+++ b/cpukit/score/include/rtems/score/objectimpl.h
@@ -655,6 +655,27 @@ char *_Objects_Get_name_as_string(
);
/**
+ * @brief Converts the specified object name to a text representation.
+ *
+ * Non-printable characters according to isprint() are converted to '*'.
+ *
+ * @param[in] name The object name.
+ * @param[in] is_string Indicates if the object name is a string or a four
+ * character array (32-bit unsigned integer).
+ * @param[in] buffer The string buffer for the text representation.
+ * @param[in] buffer_size The buffer size in characters.
+ *
+ * @retval The length of the text representation. May be greater than or equal
+ * to the buffer size if truncation occurred.
+ */
+size_t _Objects_Name_to_string(
+ Objects_Name name,
+ bool is_string,
+ char *buffer,
+ size_t buffer_size
+);
+
+/**
* @brief Set objects name.
*
* This method sets the object name to either a copy of a string