From afb63790f26d8e2d78958bf78a1606faaf0bc72a Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 14 Jan 2019 15:00:06 +0100 Subject: [PATCH] Add ocf_uuid_to_str() function Signed-off-by: Robert Baldyga --- inc/ocf_data_obj.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/ocf_data_obj.h b/inc/ocf_data_obj.h index d87e9f1..1ebccee 100644 --- a/inc/ocf_data_obj.h +++ b/inc/ocf_data_obj.h @@ -157,6 +157,16 @@ static inline int ocf_uuid_set_str(ocf_uuid_t uuid, char *str) return 0; } +/** + * @brief Obtain string from UUID + * @param[in] uuid pointer to UUID + * @return String contained within UUID + */ +static inline const char *ocf_uuid_to_str(const struct ocf_data_obj_uuid *uuid) +{ + return uuid->data; +} + /** * @brief Initialize data object *