Add ocf_uuid_to_str() function
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
749f6906bb
commit
afb63790f2
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user