aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/uuid.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-05-31 16:47:07 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-05-31 16:47:07 +0000
commit83133286576de53ef069c3eff0d320b0b9812096 (patch)
treef2ed935e414910060c8e4270bf8b9d20636b68f1 /sys/sys/uuid.h
parent17a1391990632cd26c0bb13095f1012d83dba5e4 (diff)
downloadsrc-83133286576de53ef069c3eff0d320b0b9812096.tar.gz
src-83133286576de53ef069c3eff0d320b0b9812096.zip
Introduce {be,le}_uuid_{enc,dec}() functions for explicitly encoding
and decoding UUID's in big endian and little endian binary format.
Notes
Notes: svn path=/head/; revision=115459
Diffstat (limited to 'sys/sys/uuid.h')
-rw-r--r--sys/sys/uuid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/uuid.h b/sys/sys/uuid.h
index f3d9927db3ce..b18d5b094c4e 100644
--- a/sys/sys/uuid.h
+++ b/sys/sys/uuid.h
@@ -59,6 +59,10 @@ struct sbuf;
int snprintf_uuid(char *, size_t, struct uuid *);
int printf_uuid(struct uuid *);
int sbuf_printf_uuid(struct sbuf *, struct uuid *);
+void be_uuid_dec(void const *buf, struct uuid *uuid);
+void be_uuid_enc(void *buf, struct uuid const *uuid);
+void le_uuid_dec(void const *buf, struct uuid *uuid);
+void le_uuid_enc(void *buf, struct uuid const *uuid);
#else /* _KERNEL */