svn commit: samba r4519 - in branches/SAMBA_4_0/source/librpc/ndr: .

tridge at samba.org tridge at samba.org
Tue Jan 4 23:26:12 GMT 2005


Author: tridge
Date: 2005-01-04 23:26:12 +0000 (Tue, 04 Jan 2005)
New Revision: 4519

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4519

Log:
added the enum print function in ndr_basic.c


Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c	2005-01-04 23:25:25 UTC (rev 4518)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c	2005-01-04 23:26:12 UTC (rev 4519)
@@ -999,6 +999,12 @@
 	ndr->print(ndr, "%s: struct %s", name, type);
 }
 
+void ndr_print_enum(struct ndr_print *ndr, const char *name, const char *type, 
+		    const char *val, uint32_t value)
+{
+	ndr->print(ndr, "%-25s: %s (%u)", name, val?val:"UNKNOWN", value);
+}
+
 void ndr_print_uint8(struct ndr_print *ndr, const char *name, uint8_t v)
 {
 	ndr->print(ndr, "%-25s: 0x%02x (%u)", name, v, v);



More information about the samba-cvs mailing list