diff options
author | Günther Deschner <gd@samba.org> | 2009-02-17 04:29:27 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-17 10:52:32 +0100 |
commit | df17774412b8a31880ec26f4a23c45ad1213ffdf (patch) | |
tree | 2ecebb5d92aa41f73e33493f5f5694fa5ea0a631 | |
parent | ce71a7c9a753b8f2ec45ba35a5c46c78cacf6739 (diff) | |
download | samba-df17774412b8a31880ec26f4a23c45ad1213ffdf.tar.gz samba-df17774412b8a31880ec26f4a23c45ad1213ffdf.tar.bz2 samba-df17774412b8a31880ec26f4a23c45ad1213ffdf.zip |
s3-spoolss: remove old spoolss_ResetPrinter.
Guenther
-rw-r--r-- | source3/include/proto.h | 3 | ||||
-rw-r--r-- | source3/include/rpc_spoolss.h | 17 | ||||
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 42 |
3 files changed, 0 insertions, 62 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 3baa8c0fc4..8542fbb779 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6006,8 +6006,6 @@ bool make_spoolss_q_setprinterdata(SPOOL_Q_SETPRINTERDATA *q_u, const POLICY_HND char* value, uint32 data_type, char* data, uint32 data_size); bool spoolss_io_q_setprinterdata(const char *desc, SPOOL_Q_SETPRINTERDATA *q_u, prs_struct *ps, int depth); bool spoolss_io_r_setprinterdata(const char *desc, SPOOL_R_SETPRINTERDATA *r_u, prs_struct *ps, int depth); -bool spoolss_io_q_resetprinter(const char *desc, SPOOL_Q_RESETPRINTER *q_u, prs_struct *ps, int depth); -bool spoolss_io_r_resetprinter(const char *desc, SPOOL_R_RESETPRINTER *r_u, prs_struct *ps, int depth); bool spoolss_io_r_getjob(const char *desc, SPOOL_R_GETJOB *r_u, prs_struct *ps, int depth); bool spoolss_io_q_getjob(const char *desc, SPOOL_Q_GETJOB *q_u, prs_struct *ps, int depth); void free_devmode(DEVICEMODE *devmode); @@ -6257,7 +6255,6 @@ WERROR _spoolss_addprinterdriverex(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVEREX * WERROR _spoolss_getprinterdriverdirectory(pipes_struct *p, SPOOL_Q_GETPRINTERDRIVERDIR *q_u, SPOOL_R_GETPRINTERDRIVERDIR *r_u); WERROR _spoolss_enumprinterdata(pipes_struct *p, SPOOL_Q_ENUMPRINTERDATA *q_u, SPOOL_R_ENUMPRINTERDATA *r_u); WERROR _spoolss_setprinterdata( pipes_struct *p, SPOOL_Q_SETPRINTERDATA *q_u, SPOOL_R_SETPRINTERDATA *r_u); -WERROR _spoolss_resetprinter(pipes_struct *p, SPOOL_Q_RESETPRINTER *q_u, SPOOL_R_RESETPRINTER *r_u); WERROR _spoolss_enumprintprocessors(pipes_struct *p, SPOOL_Q_ENUMPRINTPROCESSORS *q_u, SPOOL_R_ENUMPRINTPROCESSORS *r_u); WERROR _spoolss_enumprintprocdatatypes(pipes_struct *p, SPOOL_Q_ENUMPRINTPROCDATATYPES *q_u, SPOOL_R_ENUMPRINTPROCDATATYPES *r_u); WERROR _spoolss_enumprintmonitors(pipes_struct *p, SPOOL_Q_ENUMPRINTMONITORS *q_u, SPOOL_R_ENUMPRINTMONITORS *r_u); diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h index 1b8d56d14a..ba66e4213e 100644 --- a/source3/include/rpc_spoolss.h +++ b/source3/include/rpc_spoolss.h @@ -1355,23 +1355,6 @@ typedef struct spool_r_setprinterdata } SPOOL_R_SETPRINTERDATA; -typedef struct spool_q_resetprinter -{ - POLICY_HND handle; - uint32 datatype_ptr; - UNISTR2 datatype; - DEVMODE_CTR devmode_ctr; - -} SPOOL_Q_RESETPRINTER; - -typedef struct spool_r_resetprinter -{ - WERROR status; -} -SPOOL_R_RESETPRINTER; - - - typedef struct _form { uint32 flags; diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 3475203ac4..08613bb57f 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -4832,48 +4832,6 @@ bool spoolss_io_r_setprinterdata(const char *desc, SPOOL_R_SETPRINTERDATA *r_u, } /******************************************************************* -********************************************************************/ -bool spoolss_io_q_resetprinter(const char *desc, SPOOL_Q_RESETPRINTER *q_u, prs_struct *ps, int depth) -{ - prs_debug(ps, depth, desc, "spoolss_io_q_resetprinter"); - depth++; - - if (!prs_align(ps)) - return False; - if (!smb_io_pol_hnd("printer handle", &q_u->handle, ps, depth)) - return False; - - if (!prs_uint32("datatype_ptr", ps, depth, &q_u->datatype_ptr)) - return False; - - if (q_u->datatype_ptr) { - if (!smb_io_unistr2("datatype", &q_u->datatype, q_u->datatype_ptr?True:False, ps, depth)) - return False; - } - - if (!spoolss_io_devmode_cont(desc, &q_u->devmode_ctr, ps, depth)) - return False; - - return True; -} - - -/******************************************************************* -********************************************************************/ -bool spoolss_io_r_resetprinter(const char *desc, SPOOL_R_RESETPRINTER *r_u, prs_struct *ps, int depth) -{ - prs_debug(ps, depth, desc, "spoolss_io_r_resetprinter"); - depth++; - - if(!prs_align(ps)) - return False; - if(!prs_werror("status", ps, depth, &r_u->status)) - return False; - - return True; -} - -/******************************************************************* Parse a SPOOL_R_GETJOB structure. ********************************************************************/ |