mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
6f6bfb31ac
Add a set of functions to the opr library to handle creating and manipulating UUIDs. The opr_uuid_t type is held as a 16 octet character string, which comprises the UUID encoded into network byte order. This is the primary form for manipulating UUIDs with this library, as it avoids any nbo/hbo problems. For applications which require raw access to the UUID components, the opr_uuid_unpacked structure is provided, and opr_uuid_pack/opr_uuid_unpack can be used to convert to and from this format. Finally, functions to print the UUID as a string, and parse a UUID from a string, are provided. When printing, we use the standard UUID format of 000000-0000-0000-0000-00000000. However, the afsUUID library used to print UUIDs as 000000-0000-0000-00-00-00000000, so we also accept this format. Change-Id: I78ef79b7ab8ae15fb955c6495118722875c94f8d Reviewed-on: http://gerrit.openafs.org/7977 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
31 lines
751 B
Makefile
31 lines
751 B
Makefile
srcdir=@srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
include @TOP_OBJDIR@/src/config/Makefile.lwp
|
|
|
|
MODULE_CFLAGS = -I$(srcdir)/../..
|
|
|
|
LIBS=../tap/libtap.a $(abs_top_builddir)/lib/libopr.a
|
|
|
|
tests = jhash-t queues-t rbtree-t time-t uuid-t
|
|
|
|
all check test tests: $(tests)
|
|
|
|
queues-t: queues-t.o
|
|
$(AFS_LDRULE) queues-t.o ../tap/libtap.a $(XLIBS)
|
|
|
|
rbtree-t: rbtree-t.o $(LIBS)
|
|
$(AFS_LDRULE) rbtree-t.o ../tap/libtap.a $(LIBS) $(XLIBS)
|
|
|
|
jhash-t: jhash-t.o
|
|
$(AFS_LDRULE) jhash-t.o ../tap/libtap.a $(XLIBS)
|
|
|
|
time-t: time-t.o
|
|
$(AFS_LDRULE) time-t.o ../tap/libtap.a $(XLIBS)
|
|
|
|
uuid-t: uuid-t.o
|
|
$(AFS_LDRULE) uuid-t.o ../tap/libtap.a $(LIBS) $(LIB_hcrypto) $(XLIBS)
|
|
|
|
clean distclean:
|
|
$(RM) -f $(tests) *.o core
|