From fd8e8d5e58a2df09be591852c475e18a11c51ae1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 9 Feb 2009 15:16:25 +0100 Subject: s3-spoolss: remove old spoolss_ReplyOpenPrinter. Guenther --- source3/rpc_parse/parse_spoolss.c | 73 --------------------------------------- 1 file changed, 73 deletions(-) (limited to 'source3/rpc_parse/parse_spoolss.c') diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index af2378b7c9..f11672a575 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -5022,79 +5022,6 @@ void free_job_info_2(JOB_INFO_2 *job) free_devmode(job->devmode); } -/******************************************************************* - * init a structure. - ********************************************************************/ - -bool make_spoolss_q_replyopenprinter(SPOOL_Q_REPLYOPENPRINTER *q_u, - const fstring string, uint32 printer, uint32 type) -{ - if (q_u == NULL) - return False; - - init_unistr2(&q_u->string, string, UNI_STR_TERMINATE); - - q_u->printer=printer; - q_u->type=type; - - q_u->unknown0=0x0; - q_u->unknown1=0x0; - - return True; -} - -/******************************************************************* - Parse a SPOOL_Q_REPLYOPENPRINTER structure. -********************************************************************/ - -bool spoolss_io_q_replyopenprinter(const char *desc, SPOOL_Q_REPLYOPENPRINTER *q_u, prs_struct *ps, int depth) -{ - prs_debug(ps, depth, desc, "spoolss_io_q_replyopenprinter"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!smb_io_unistr2("", &q_u->string, True, ps, depth)) - return False; - - if(!prs_align(ps)) - return False; - - if(!prs_uint32("printer", ps, depth, &q_u->printer)) - return False; - if(!prs_uint32("type", ps, depth, &q_u->type)) - return False; - - if(!prs_uint32("unknown0", ps, depth, &q_u->unknown0)) - return False; - if(!prs_uint32("unknown1", ps, depth, &q_u->unknown1)) - return False; - - return True; -} - -/******************************************************************* - Parse a SPOOL_R_REPLYOPENPRINTER structure. -********************************************************************/ - -bool spoolss_io_r_replyopenprinter(const char *desc, SPOOL_R_REPLYOPENPRINTER *r_u, prs_struct *ps, int depth) -{ - prs_debug(ps, depth, desc, "spoolss_io_r_replyopenprinter"); - depth++; - - if (!prs_align(ps)) - return False; - - if(!smb_io_pol_hnd("printer handle",&r_u->handle,ps,depth)) - return False; - - if (!prs_werror("status", ps, depth, &r_u->status)) - return False; - - return True; -} - #if 0 /* JERRY - not currently used but could be :-) */ /******************************************************************* -- cgit