svn commit: samba r6731 - in branches/SAMBA_4_0/source/librpc/ndr: .
metze at samba.org
metze at samba.org
Wed May 11 13:17:38 GMT 2005
Author: metze
Date: 2005-05-11 13:17:38 +0000 (Wed, 11 May 2005)
New Revision: 6731
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6731
Log:
add a useful function for getting a guid with all bits to 0
metze
Modified:
branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c 2005-05-11 13:09:30 UTC (rev 6730)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c 2005-05-11 13:17:38 UTC (rev 6731)
@@ -91,6 +91,16 @@
return guid;
}
+/* generate a random GUID */
+struct GUID GUID_zero(void)
+{
+ struct GUID guid;
+
+ ZERO_STRUCT(guid);
+
+ return guid;
+}
+
BOOL GUID_all_zero(const struct GUID *u)
{
if (u->time_low != 0 ||
More information about the samba-cvs
mailing list