summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/libndr.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-11 04:38:51 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-11 04:38:51 +0000
commitdeeb8d98a10a0fb1dbeca13653a802cef43d9e07 (patch)
tree52e058702da89b0b408d73688fd1f7f8f60da008 /source4/librpc/ndr/libndr.h
parent161321f68db0e83e71099364a654c796e49b8152 (diff)
downloadsamba-deeb8d98a10a0fb1dbeca13653a802cef43d9e07.tar.gz
samba-deeb8d98a10a0fb1dbeca13653a802cef43d9e07.tar.bz2
samba-deeb8d98a10a0fb1dbeca13653a802cef43d9e07.zip
start using automatic union printing
(This used to be commit e81040a902f67fd10ca1f9c9ca1c22bc95e36005)
Diffstat (limited to 'source4/librpc/ndr/libndr.h')
-rw-r--r--source4/librpc/ndr/libndr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h
index 24ae09f538..f695dcff59 100644
--- a/source4/librpc/ndr/libndr.h
+++ b/source4/librpc/ndr/libndr.h
@@ -72,6 +72,7 @@ struct ndr_print {
/* useful macro for debugging */
#define NDR_PRINT_DEBUG(type, p) ndr_print_debug((ndr_print_fn_t)ndr_print_ ##type, #p, p)
+#define NDR_PRINT_UNION_DEBUG(type, level, p) ndr_print_union_debug((ndr_print_union_fn_t)ndr_print_ ##type, #p, level, p)
@@ -112,6 +113,7 @@ typedef NTSTATUS (*ndr_pull_fn_t)(struct ndr_pull *, void *);
typedef NTSTATUS (*ndr_push_flags_fn_t)(struct ndr_push *, int ndr_flags, void *);
typedef NTSTATUS (*ndr_pull_flags_fn_t)(struct ndr_pull *, int ndr_flags, void *);
typedef void (*ndr_print_fn_t)(struct ndr_print *, const char *, void *);
+typedef void (*ndr_print_union_fn_t)(struct ndr_print *, const char *, uint16, void *);
/* now pull in the individual parsers */
#include "librpc/ndr/ndr_sec.h"