From c71fa39c29ee64b80adf92090a61c81f323742b9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 19 Feb 2009 10:44:42 +0100 Subject: s3-spoolss: remove old spoolss_GetPrintProcessorDirectory. Guenther --- source3/rpc_parse/parse_spoolss.c | 137 -------------------------------------- 1 file changed, 137 deletions(-) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 19738cfd2a..b798eef455 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -2472,21 +2472,6 @@ uint32 spoolss_size_port_info_1(PORT_INFO_1 *info) return the size required by a struct in the stream ********************************************************************/ -uint32 spoolss_size_printprocessordirectory_info_1(PRINTPROCESSOR_DIRECTORY_1 *info) -{ - int size=0; - - size=str_len_uni(&info->name); /* the string length */ - size=size+1; /* add the leading zero */ - size=size*2; /* convert in char */ - - return size; -} - -/******************************************************************* -return the size required by a struct in the stream -********************************************************************/ - uint32 spoolss_size_port_info_2(PORT_INFO_2 *info) { int size=0; @@ -5239,128 +5224,6 @@ bool spoolss_io_r_enumprinterdataex(const char *desc, SPOOL_R_ENUMPRINTERDATAEX return True; } -/******************************************************************* - * write a structure. - ********************************************************************/ - -/* - uint32 GetPrintProcessorDirectory( - [in] unistr2 *name, - [in] unistr2 *environment, - [in] uint32 level, - [in,out] RPC_BUFFER buffer, - [in] uint32 offered, - [out] uint32 needed, - [out] uint32 returned - ); - -*/ - -bool make_spoolss_q_getprintprocessordirectory(SPOOL_Q_GETPRINTPROCESSORDIRECTORY *q_u, const char *name, char *environment, int level, RPC_BUFFER *buffer, uint32 offered) -{ - DEBUG(5,("make_spoolss_q_getprintprocessordirectory\n")); - - init_unistr2(&q_u->name, name, UNI_STR_TERMINATE); - init_unistr2(&q_u->environment, environment, UNI_STR_TERMINATE); - - q_u->level = level; - - q_u->buffer = buffer; - q_u->offered = offered; - - return True; -} - -bool spoolss_io_q_getprintprocessordirectory(const char *desc, SPOOL_Q_GETPRINTPROCESSORDIRECTORY *q_u, prs_struct *ps, int depth) -{ - uint32 ptr = 0; - - prs_debug(ps, depth, desc, "spoolss_io_q_getprintprocessordirectory"); - depth++; - - if(!prs_align(ps)) - return False; - - if (!prs_uint32("ptr", ps, depth, &ptr)) - return False; - - if (ptr) { - if(!smb_io_unistr2("name", &q_u->name, True, ps, depth)) - return False; - } - - if (!prs_align(ps)) - return False; - - if (!prs_uint32("ptr", ps, depth, &ptr)) - return False; - - if (ptr) { - if(!smb_io_unistr2("environment", &q_u->environment, True, - ps, depth)) - return False; - } - - if (!prs_align(ps)) - return False; - - if(!prs_uint32("level", ps, depth, &q_u->level)) - return False; - - if(!prs_rpcbuffer_p("", ps, depth, &q_u->buffer)) - return False; - - if(!prs_align(ps)) - return False; - - if(!prs_uint32("offered", ps, depth, &q_u->offered)) - return False; - - return True; -} - -/******************************************************************* - * write a structure. - ********************************************************************/ - -bool spoolss_io_r_getprintprocessordirectory(const char *desc, SPOOL_R_GETPRINTPROCESSORDIRECTORY *r_u, prs_struct *ps, int depth) -{ - prs_debug(ps, depth, desc, "spoolss_io_r_getprintprocessordirectory"); - depth++; - - if(!prs_align(ps)) - return False; - - if(!prs_rpcbuffer_p("", ps, depth, &r_u->buffer)) - return False; - - if(!prs_align(ps)) - return False; - - if(!prs_uint32("needed", ps, depth, &r_u->needed)) - return False; - - if(!prs_werror("status", ps, depth, &r_u->status)) - return False; - - return True; -} - -bool smb_io_printprocessordirectory_1(const char *desc, RPC_BUFFER *buffer, PRINTPROCESSOR_DIRECTORY_1 *info, int depth) -{ - prs_struct *ps=&buffer->prs; - - prs_debug(ps, depth, desc, "smb_io_printprocessordirectory_1"); - depth++; - - buffer->struct_start=prs_offset(ps); - - if (!smb_io_unistr(desc, &info->name, ps, depth)) - return False; - - return True; -} - /******************************************************************* * init a structure. ********************************************************************/ -- cgit