summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-17 14:26:56 +0100
committerGünther Deschner <gd@samba.org>2009-02-18 16:12:27 +0100
commit1cd34565d0ae07dfba773bc9e5679668137b724f (patch)
tree428861c3d8fbc18f882dec4d6a76409648fe5c27 /source3/rpc_parse
parent73123420623b5d6bfb5d39f9a937c71976bdc450 (diff)
downloadsamba-1cd34565d0ae07dfba773bc9e5679668137b724f.tar.gz
samba-1cd34565d0ae07dfba773bc9e5679668137b724f.tar.bz2
samba-1cd34565d0ae07dfba773bc9e5679668137b724f.zip
s3-spoolss: remove old spoolss_XcvData.
Guenther
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_spoolss.c170
1 files changed, 0 insertions, 170 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index 08613bb57f..2862b550fc 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -5543,173 +5543,3 @@ bool make_spoolss_q_rffpcnex(SPOOL_Q_RFFPCNEX *q_u, POLICY_HND *handle,
return True;
}
-
-
-/*******************************************************************
- ********************************************************************/
-
-bool spoolss_io_q_xcvdataport(const char *desc, SPOOL_Q_XCVDATAPORT *q_u, prs_struct *ps, int depth)
-{
- prs_debug(ps, depth, desc, "spoolss_io_q_xcvdataport");
- depth++;
-
- if(!prs_align(ps))
- return False;
-
- if(!smb_io_pol_hnd("printer handle", &q_u->handle, ps, depth))
- return False;
-
- if(!smb_io_unistr2("", &q_u->dataname, True, ps, depth))
- return False;
-
- if (!prs_align(ps))
- return False;
-
- if(!prs_rpcbuffer("", ps, depth, &q_u->indata))
- return False;
-
- if (!prs_align(ps))
- return False;
-
- if (!prs_uint32("indata_len", ps, depth, &q_u->indata_len))
- return False;
- if (!prs_uint32("offered", ps, depth, &q_u->offered))
- return False;
- if (!prs_uint32("unknown", ps, depth, &q_u->unknown))
- return False;
-
- return True;
-}
-
-/*******************************************************************
- ********************************************************************/
-
-bool spoolss_io_r_xcvdataport(const char *desc, SPOOL_R_XCVDATAPORT *r_u, prs_struct *ps, int depth)
-{
- prs_debug(ps, depth, desc, "spoolss_io_r_xcvdataport");
- depth++;
-
- if(!prs_align(ps))
- return False;
- if(!prs_rpcbuffer("", ps, depth, &r_u->outdata))
- return False;
-
- if (!prs_align(ps))
- return False;
-
- if (!prs_uint32("needed", ps, depth, &r_u->needed))
- return False;
- if (!prs_uint32("unknown", ps, depth, &r_u->unknown))
- return False;
-
- if(!prs_werror("status", ps, depth, &r_u->status))
- return False;
-
- return True;
-}
-
-/*******************************************************************
- ********************************************************************/
-
-bool make_monitorui_buf( RPC_BUFFER *buf, const char *dllname )
-{
- UNISTR string;
-
- if ( !buf )
- return False;
-
- init_unistr( &string, dllname );
-
- if ( !prs_unistr( "ui_dll", &buf->prs, 0, &string ) )
- return False;
-
- return True;
-}
-
-/*******************************************************************
- ********************************************************************/
-
-#define PORT_DATA_1_PAD 540
-
-static bool smb_io_port_data_1( const char *desc, RPC_BUFFER *buf, int depth, SPOOL_PORT_DATA_1 *p1 )
-{
- prs_struct *ps = &buf->prs;
- uint8 padding[PORT_DATA_1_PAD];
-
- prs_debug(ps, depth, desc, "smb_io_port_data_1");
- depth++;
-
- if(!prs_align(ps))
- return False;
-
- if( !prs_uint16s(True, "portname", ps, depth, p1->portname, MAX_PORTNAME))
- return False;
-
- if (!prs_uint32("version", ps, depth, &p1->version))
- return False;
- if (!prs_uint32("protocol", ps, depth, &p1->protocol))
- return False;
- if (!prs_uint32("size", ps, depth, &p1->size))
- return False;
- if (!prs_uint32("reserved", ps, depth, &p1->reserved))
- return False;
-
- if( !prs_uint16s(True, "hostaddress", ps, depth, p1->hostaddress, MAX_NETWORK_NAME))
- return False;
- if( !prs_uint16s(True, "snmpcommunity", ps, depth, p1->snmpcommunity, MAX_SNMP_COMM_NAME))
- return False;
-
- if (!prs_uint32("dblspool", ps, depth, &p1->dblspool))
- return False;
-
- if( !prs_uint16s(True, "queue", ps, depth, p1->queue, MAX_QUEUE_NAME))
- return False;
- if( !prs_uint16s(True, "ipaddress", ps, depth, p1->ipaddress, MAX_IPADDR_STRING))
- return False;
-
- if( !prs_uint8s(False, "", ps, depth, padding, PORT_DATA_1_PAD))
- return False;
-
- if (!prs_uint32("port", ps, depth, &p1->port))
- return False;
- if (!prs_uint32("snmpenabled", ps, depth, &p1->snmpenabled))
- return False;
- if (!prs_uint32("snmpdevindex", ps, depth, &p1->snmpdevindex))
- return False;
-
- return True;
-}
-
-/*******************************************************************
- ********************************************************************/
-
-bool convert_port_data_1( NT_PORT_DATA_1 *port1, RPC_BUFFER *buf )
-{
- SPOOL_PORT_DATA_1 spdata_1;
-
- ZERO_STRUCT( spdata_1 );
-
- if ( !smb_io_port_data_1( "port_data_1", buf, 0, &spdata_1 ) )
- return False;
-
- rpcstr_pull(port1->name, spdata_1.portname, sizeof(port1->name), -1, 0);
- rpcstr_pull(port1->queue, spdata_1.queue, sizeof(port1->queue), -1, 0);
- rpcstr_pull(port1->hostaddr, spdata_1.hostaddress, sizeof(port1->hostaddr), -1, 0);
-
- port1->port = spdata_1.port;
-
- switch ( spdata_1.protocol ) {
- case 1:
- port1->protocol = PORT_PROTOCOL_DIRECT;
- break;
- case 2:
- port1->protocol = PORT_PROTOCOL_LPR;
- break;
- default:
- DEBUG(3,("convert_port_data_1: unknown protocol [%d]!\n",
- spdata_1.protocol));
- return False;
- }
-
- return True;
-}