summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-18 11:22:11 +0100
committerGünther Deschner <gd@samba.org>2009-03-18 11:55:47 +0100
commitf68334129409d1e194877689bb6a691ac4025dc9 (patch)
tree3406fb2fa3e8566d44e018f64cf5f09678c02302 /source3/rpc_server
parent2687d29f7c4dbb2bbb88a85558cae43c2ce8e7f8 (diff)
downloadsamba-f68334129409d1e194877689bb6a691ac4025dc9.tar.gz
samba-f68334129409d1e194877689bb6a691ac4025dc9.tar.bz2
samba-f68334129409d1e194877689bb6a691ac4025dc9.zip
s3-spoolss: add SPOOLSS_BUFFER_ARRAY macro.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index a62b5290f4..c9cb5d11ad 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -34,6 +34,9 @@
#define SPOOLSS_BUFFER_UNION_ARRAY(mem_ctx,fn,ic,info,level,count) \
((info)?ndr_size_##fn##_info(mem_ctx, ic, level, count, info):0)
+#define SPOOLSS_BUFFER_ARRAY(mem_ctx,fn,ic,info,count) \
+ ((info)?ndr_size_##fn##_info(mem_ctx, ic, count, info):0)
+
#define SPOOLSS_BUFFER_OK(val_true,val_false) ((r->in.offered >= *r->out.needed)?val_true:val_false)