diff options
| author | Roman Kagan | 2017-11-27 13:43:55 +0100 |
|---|---|---|
| committer | Fam Zheng | 2017-12-20 15:01:24 +0100 |
| commit | bfab1aede07f864b8fbd749c3a0545b949b4cc84 (patch) | |
| tree | 307e5f871a0ed1e8d0203459c2b8c38537c790fe /include | |
| parent | Revert "docker: Enable features explicitly in test-full" (diff) | |
| download | qemu-bfab1aede07f864b8fbd749c3a0545b949b4cc84.tar.gz qemu-bfab1aede07f864b8fbd749c3a0545b949b4cc84.tar.xz qemu-bfab1aede07f864b8fbd749c3a0545b949b4cc84.zip | |
util: add is_equal to UUID API
It's going to be useful, in particular, in VMBus code massively using
uuids aka GUIDs.
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20171127124355.26015-1-rkagan@virtuozzo.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/uuid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/uuid.h b/include/qemu/uuid.h index afe4840296..09489ce5c5 100644 --- a/include/qemu/uuid.h +++ b/include/qemu/uuid.h @@ -48,6 +48,8 @@ void qemu_uuid_generate(QemuUUID *out); int qemu_uuid_is_null(const QemuUUID *uu); +int qemu_uuid_is_equal(const QemuUUID *lhv, const QemuUUID *rhv); + void qemu_uuid_unparse(const QemuUUID *uuid, char *out); char *qemu_uuid_unparse_strdup(const QemuUUID *uuid); |
