diff options
author | Günther Deschner <gd@samba.org> | 2009-03-07 00:04:05 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-07 00:55:38 +0100 |
commit | 2561b2d2e275bf1ca1aa7cab8b3942cff7d8b5f7 (patch) | |
tree | 3279fae2155a89a000374cf6695b32abe9758f57 /source3/rpc_server/srv_spoolss.c | |
parent | a3e5cf3ba66e2ea23bc8919593a03402d7f432bd (diff) | |
download | samba-2561b2d2e275bf1ca1aa7cab8b3942cff7d8b5f7.tar.gz samba-2561b2d2e275bf1ca1aa7cab8b3942cff7d8b5f7.tar.bz2 samba-2561b2d2e275bf1ca1aa7cab8b3942cff7d8b5f7.zip |
s3-spoolss: use pidl for _spoolss_EnumMonitors.
Guenther
Diffstat (limited to 'source3/rpc_server/srv_spoolss.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/rpc_server/srv_spoolss.c b/source3/rpc_server/srv_spoolss.c index c65b65119e..616eb1dbf0 100644 --- a/source3/rpc_server/srv_spoolss.c +++ b/source3/rpc_server/srv_spoolss.c @@ -581,27 +581,7 @@ static bool api_spoolss_enumprintprocdatatypes(pipes_struct *p) static bool api_spoolss_enumprintmonitors(pipes_struct *p) { - SPOOL_Q_ENUMPRINTMONITORS q_u; - SPOOL_R_ENUMPRINTMONITORS 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_enumprintmonitors("", &q_u, data, 0)) { - DEBUG(0,("spoolss_io_q_enumprintmonitors: unable to unmarshall SPOOL_Q_ENUMPRINTMONITORS.\n")); - return False; - } - - r_u.status = _spoolss_enumprintmonitors(p, &q_u, &r_u); - - if (!spoolss_io_r_enumprintmonitors("", &r_u, rdata, 0)) { - DEBUG(0,("spoolss_io_r_enumprintmonitors: unable to marshall SPOOL_R_ENUMPRINTMONITORS.\n")); - return False; - } - - return True; + return proxy_spoolss_call(p, NDR_SPOOLSS_ENUMMONITORS); } /**************************************************************************** |