summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-19 10:44:42 +0100
committerGünther Deschner <gd@samba.org>2009-02-19 19:23:51 +0100
commitc71fa39c29ee64b80adf92090a61c81f323742b9 (patch)
tree55d0715903ec2f43c81b2416674f19b41fa43efd /source3/rpc_parse
parent286ec6847b623ddd33d2fb7690c994feb4e3e17a (diff)
downloadsamba-c71fa39c29ee64b80adf92090a61c81f323742b9.tar.gz
samba-c71fa39c29ee64b80adf92090a61c81f323742b9.tar.bz2
samba-c71fa39c29ee64b80adf92090a61c81f323742b9.zip
s3-spoolss: remove old spoolss_GetPrintProcessorDirectory.
Guenther
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_spoolss.c137
1 files changed, 0 insertions, 137 deletions
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;
@@ -5240,128 +5225,6 @@ bool spoolss_io_r_enumprinterdataex(const char *desc, SPOOL_R_ENUMPRINTERDATAEX
}
/*******************************************************************
- * 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.
********************************************************************/