summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-09 01:11:18 +0100
committerGünther Deschner <gd@samba.org>2009-02-09 12:34:01 +0100
commitce5b25aaa4b40c771352d997bf73b311b50bf058 (patch)
tree0f3cbd840145d591db06e588f88c0e44e9ed55ad /source3/rpc_server/srv_spoolss.c
parent8f130d54799097f731fe39211dae2d2eb0f6df98 (diff)
downloadsamba-ce5b25aaa4b40c771352d997bf73b311b50bf058.tar.gz
samba-ce5b25aaa4b40c771352d997bf73b311b50bf058.tar.bz2
samba-ce5b25aaa4b40c771352d997bf73b311b50bf058.zip
s3-spoolss: use pidl for _spoolss_DeletePrinterDataEx.
Guenther
Diffstat (limited to 'source3/rpc_server/srv_spoolss.c')
-rw-r--r--source3/rpc_server/srv_spoolss.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c
index 8bfe645f1c..67ef90cfb5 100644
--- a/source3/rpc_server/srv_spoolss.c
+++ b/source3/rpc_server/srv_spoolss.c
@@ -1220,27 +1220,7 @@ static bool api_spoolss_getprintprocessordirectory(pipes_struct *p)
static bool api_spoolss_deleteprinterdataex(pipes_struct *p)
{
- SPOOL_Q_DELETEPRINTERDATAEX q_u;
- SPOOL_R_DELETEPRINTERDATAEX r_u;
- prs_struct *data = &p->in_data.data;
- prs_struct *rdata = &p->out_data.rdata;
-
- ZERO_STRUCT(q_u);
- ZERO_STRUCT(r_u);
-
- if(!spoolss_io_q_deleteprinterdataex("", &q_u, data, 0)) {
- DEBUG(0,("spoolss_io_q_deleteprinterdataex: unable to unmarshall SPOOL_Q_DELETEPRINTERDATAEX.\n"));
- return False;
- }
-
- r_u.status = _spoolss_deleteprinterdataex(p, &q_u, &r_u);
-
- if(!spoolss_io_r_deleteprinterdataex("", &r_u, rdata, 0)) {
- DEBUG(0,("spoolss_io_r_deleteprinterdataex: unable to marshall SPOOL_R_DELETEPRINTERDATAEX.\n"));
- return False;
- }
-
- return True;
+ return proxy_spoolss_call(p, NDR_SPOOLSS_DELETEPRINTERDATAEX);
}
/****************************************************************************