From bade65dac3fed5fcb0f7f1cedec516b1e7ccab45 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 29 Oct 2014 11:57:10 +0100 Subject: librpc/ndr: add NDR_SCALAR_PTR_PROTO() helper macro Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- librpc/ndr/libndr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'librpc') diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h index 76b58bb47d..ee3fac6fd1 100644 --- a/librpc/ndr/libndr.h +++ b/librpc/ndr/libndr.h @@ -556,6 +556,11 @@ enum ndr_err_code ndr_push_ ## name(struct ndr_push *ndr, int ndr_flags, type v) enum ndr_err_code ndr_pull_ ## name(struct ndr_pull *ndr, int ndr_flags, type *v); \ void ndr_print_ ## name(struct ndr_print *ndr, const char *var_name, type v); +#define NDR_SCALAR_PTR_PROTO(name, type) \ +enum ndr_err_code ndr_push_ ## name(struct ndr_push *ndr, int ndr_flags, const type *v); \ +enum ndr_err_code ndr_pull_ ## name(struct ndr_pull *ndr, int ndr_flags, type **v); \ +void ndr_print_ ## name(struct ndr_print *ndr, const char *var_name, const type *v); + #define NDR_BUFFER_PROTO(name, type) \ enum ndr_err_code ndr_push_ ## name(struct ndr_push *ndr, int ndr_flags, const type *v); \ enum ndr_err_code ndr_pull_ ## name(struct ndr_pull *ndr, int ndr_flags, type *v); \ -- cgit