summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-14 07:21:57 +0000
committerTim Potter <tpot@samba.org>2002-05-14 07:21:57 +0000
commitaf451af22f745d56bb92f0dbdd270f7fd024ef0d (patch)
tree895863623219babc8ba74f41d8cd6827ee94ebb5 /source3/rpc_parse
parent8ca814e5299afccd1e2c5aea222c23d84905fc02 (diff)
downloadsamba-af451af22f745d56bb92f0dbdd270f7fd024ef0d.tar.gz
samba-af451af22f745d56bb92f0dbdd270f7fd024ef0d.tar.bz2
samba-af451af22f745d56bb92f0dbdd270f7fd024ef0d.zip
Added deleteprinterdata client rpc.
(This used to be commit 217ae50acd8cf088e268e7d2a6a7c192aca9e2f1)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_spoolss.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index 10522248f4..47ddbb7aa1 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -1112,7 +1112,6 @@ BOOL make_spoolss_q_getprinterdata(SPOOL_Q_GETPRINTERDATA *q_u,
q_u->handle = *handle;
init_unistr2(&q_u->valuename, valuename, strlen(valuename) + 1);
q_u->size = size;
-
return True;
}
@@ -7229,3 +7228,16 @@ BOOL make_spoolss_q_writeprinter(SPOOL_Q_WRITEPRINTER *q_u,
q_u->buffer = data;
return True;
}
+
+/*******************************************************************
+ * init a structure.
+ ********************************************************************/
+
+BOOL make_spoolss_q_deleteprinterdata(SPOOL_Q_DELETEPRINTERDATA *q_u,
+ POLICY_HND *handle, char *valuename)
+{
+ memcpy(&q_u->handle, handle, sizeof(POLICY_HND));
+ init_unistr2(&q_u->valuename, valuename, strlen(valuename) + 1);
+
+ return True;
+}