summaryrefslogtreecommitdiffstats
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-10-29 11:57:10 +0100
committerJeremy Allison <jra@samba.org>2014-11-14 23:27:05 +0100
commitbade65dac3fed5fcb0f7f1cedec516b1e7ccab45 (patch)
tree00681e4441428b44f063abaffa2091bce60a9046 /librpc
parent530e3db70b5cf1f6e9dd4b70091a094505fa15f0 (diff)
downloadsamba-bade65dac3fed5fcb0f7f1cedec516b1e7ccab45.tar.gz
samba-bade65dac3fed5fcb0f7f1cedec516b1e7ccab45.tar.xz
samba-bade65dac3fed5fcb0f7f1cedec516b1e7ccab45.zip
librpc/ndr: add NDR_SCALAR_PTR_PROTO() helper macro
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/libndr.h5
1 files changed, 5 insertions, 0 deletions
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); \