diff options
author | Günther Deschner <gd@samba.org> | 2009-03-10 23:55:18 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-13 09:25:19 +0100 |
commit | 84b38c859899d1bffcabdd7cb846c6fe59ad5d3f (patch) | |
tree | a2fa89afed6b8830dd18ff2d850c18d118245e5e /source3/rpc_server | |
parent | e5136e984922570ce9992c642c340dd3e937fc4e (diff) | |
download | samba-84b38c859899d1bffcabdd7cb846c6fe59ad5d3f.tar.gz samba-84b38c859899d1bffcabdd7cb846c6fe59ad5d3f.tar.bz2 samba-84b38c859899d1bffcabdd7cb846c6fe59ad5d3f.zip |
s3-spoolss: add macros from s4 spoolss server.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 727f3c9c7f..b10eb71cc2 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -27,6 +27,16 @@ #include "includes.h" +/* macros stolen from s4 spoolss server */ +#define SPOOLSS_BUFFER_UNION(fn,ic,info,level) \ + ((info)?ndr_size_##fn(info, level, ic, 0):0) + +#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_OK(val_true,val_false) ((r->in.offered >= *r->out.needed)?val_true:val_false) + + extern userdom_struct current_user_info; #undef DBGC_CLASS |