util/uuid: add a new uuid copy API.
Change-Id: I03042c4a7030eaac406e3c3afe6fe2f69bd9db36 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/436301 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
924834fdfd
commit
31e8fb4025
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## v19.01: (Upcoming Release)
|
## v19.01: (Upcoming Release)
|
||||||
|
|
||||||
|
### util
|
||||||
|
|
||||||
|
A new uuid API `spdk_uuid_copy` was added to make a copy of the source uuid.
|
||||||
|
|
||||||
### nvme
|
### nvme
|
||||||
|
|
||||||
admin_timeout_ms was added to NVMe controller initialization options, users
|
admin_timeout_ms was added to NVMe controller initialization options, users
|
||||||
|
@ -93,6 +93,14 @@ int spdk_uuid_compare(const struct spdk_uuid *u1, const struct spdk_uuid *u2);
|
|||||||
*/
|
*/
|
||||||
void spdk_uuid_generate(struct spdk_uuid *uuid);
|
void spdk_uuid_generate(struct spdk_uuid *uuid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy a UUID.
|
||||||
|
*
|
||||||
|
* \param src Source UUID to copy from.
|
||||||
|
* \param dst Destination UUID to store.
|
||||||
|
*/
|
||||||
|
void spdk_uuid_copy(struct spdk_uuid *dst, const struct spdk_uuid *src);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -65,3 +65,9 @@ spdk_uuid_generate(struct spdk_uuid *uuid)
|
|||||||
{
|
{
|
||||||
uuid_generate((void *)uuid);
|
uuid_generate((void *)uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
spdk_uuid_copy(struct spdk_uuid *dst, const struct spdk_uuid *src)
|
||||||
|
{
|
||||||
|
uuid_copy((void *)dst, (void *)src);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user