From 8b55ae178586d25854a929ace05f203d547242ad Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 7 Feb 2011 23:21:41 +0100 Subject: ndr: move null_ndr_syntax_id to the common libndr location. Guenther --- librpc/ndr/libndr.h | 1 + librpc/ndr/ndr.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'librpc') diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index ff20755700..302a5ec773 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -328,6 +328,7 @@ typedef void (*ndr_print_function_t)(struct ndr_print *, const char *, int, cons extern const struct ndr_syntax_id ndr_transfer_syntax; extern const struct ndr_syntax_id ndr64_transfer_syntax; +extern const struct ndr_syntax_id null_ndr_syntax_id; struct ndr_interface_call { const char *name; diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index 63b2cc323c..068e07f84a 100644 --- a/librpc/ndr/ndr.c +++ b/librpc/ndr/ndr.c @@ -46,6 +46,11 @@ const struct ndr_syntax_id ndr64_transfer_syntax = { 1 }; +const struct ndr_syntax_id null_ndr_syntax_id = { + { 0, 0, 0, { 0, 0 }, { 0, 0, 0, 0, 0, 0 } }, + 0 +}; + /* work out the number of bytes needed to align on a n byte boundary */ -- cgit