summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-14 06:37:54 +0000
committerTim Potter <tpot@samba.org>2002-05-14 06:37:54 +0000
commit3d95426f2c88b4bc3914d8bf894c990039db7ea5 (patch)
tree71813ae49641714d885d5dc4ee5fa7b20f7a4034 /source3/rpc_parse
parent2e6939cf0b16055bae6eba6b3d3404164833c459 (diff)
downloadsamba-3d95426f2c88b4bc3914d8bf894c990039db7ea5.tar.gz
samba-3d95426f2c88b4bc3914d8bf894c990039db7ea5.tar.bz2
samba-3d95426f2c88b4bc3914d8bf894c990039db7ea5.zip
Added writeprinter rpc command.
(This used to be commit a1934a7a8eda592e283a01014280ddb373564927)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_spoolss.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index a0cf85c550..10522248f4 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -7215,3 +7215,17 @@ BOOL make_spoolss_q_enddocprinter(SPOOL_Q_ENDDOCPRINTER *q_u,
return True;
}
+
+/*******************************************************************
+ * init a structure.
+ ********************************************************************/
+
+BOOL make_spoolss_q_writeprinter(SPOOL_Q_WRITEPRINTER *q_u,
+ POLICY_HND *handle, uint32 data_size,
+ char *data)
+{
+ memcpy(&q_u->handle, handle, sizeof(POLICY_HND));
+ q_u->buffer_size = q_u->buffer_size2 = data_size;
+ q_u->buffer = data;
+ return True;
+}