summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-10-03 08:13:35 +0200
committerGünther Deschner <gd@samba.org>2010-10-04 09:29:47 +0200
commit279e0c9610075a95ffe79f8fa223bf2427f83468 (patch)
tree6c8987292b179f69c97685a3d465fc6d749c07dd
parent2ff1c9eb30f220a4c490afc695a951de7b3c45f9 (diff)
downloadsamba-279e0c9610075a95ffe79f8fa223bf2427f83468.tar.gz
samba-279e0c9610075a95ffe79f8fa223bf2427f83468.tar.bz2
samba-279e0c9610075a95ffe79f8fa223bf2427f83468.zip
spoolss: fill in spoolss_SetPort IDL.
Guenther
-rw-r--r--librpc/idl/spoolss.idl5
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c6
3 files changed, 10 insertions, 7 deletions
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl
index 74ad0e6161..b80e218ee8 100644
--- a/librpc/idl/spoolss.idl
+++ b/librpc/idl/spoolss.idl
@@ -2831,7 +2831,10 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor")
/******************/
/* Function: 0x47 */
- [todo] WERROR spoolss_47(
+ WERROR spoolss_SetPort(
+ [in,unique] [string,charset(UTF16)] uint16 *servername,
+ [in,unique] [string,charset(UTF16)] uint16 *port_name,
+ [in,ref] spoolss_SetPortInfoContainer *port_ctr
);
/******************/
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index d79c9314c6..8c4067bdc8 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -10294,11 +10294,11 @@ WERROR _spoolss_44(struct pipes_struct *p,
}
/****************************************************************
- _spoolss_47
+ _spoolss_SetPort
****************************************************************/
-WERROR _spoolss_47(struct pipes_struct *p,
- struct spoolss_47 *r)
+WERROR _spoolss_SetPort(struct pipes_struct *p,
+ struct spoolss_SetPort *r)
{
p->rng_fault_state = true;
return WERR_NOT_SUPPORTED;
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index e17fb812f4..66cd14d84a 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -1305,10 +1305,10 @@ static WERROR dcesrv_spoolss_AddPrinterEx(struct dcesrv_call_state *dce_call, TA
/*
- spoolss_47
+ spoolss_SetPort
*/
-static WERROR dcesrv_spoolss_47(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
- struct spoolss_47 *r)
+static WERROR dcesrv_spoolss_SetPort(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+ struct spoolss_SetPort *r)
{
DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
}