summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-01-07 15:15:21 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-01-07 19:06:25 +0100
commit6a5afa244203c42265207c56e95783ec740ee89e (patch)
treee1fefcab86eba08f2a37d13a2c475d098ffca3fd
parent638ed90620e3c6a35ef56a11c612c13d6b7d6ff5 (diff)
downloadsamba-6a5afa244203c42265207c56e95783ec740ee89e.tar.gz
samba-6a5afa244203c42265207c56e95783ec740ee89e.tar.bz2
samba-6a5afa244203c42265207c56e95783ec740ee89e.zip
spoolss: add stubs for new JobNamedProperty dcerpc calls.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jan 7 19:06:25 CET 2013 on sn-devel-104
-rw-r--r--librpc/idl/spoolss.idl20
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c44
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c37
3 files changed, 101 insertions, 0 deletions
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl
index 5b8db72339..06a0935f81 100644
--- a/librpc/idl/spoolss.idl
+++ b/librpc/idl/spoolss.idl
@@ -3207,4 +3207,24 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor")
/* Function: 0x6d */
[todo] WERROR spoolss_6d(
);
+
+ /******************/
+ /* Function: 0x6e */
+ [todo] WERROR spoolss_RpcGetJobNamedPropertyValue(
+ );
+
+ /******************/
+ /* Function: 0x6f */
+ [todo] WERROR spoolss_RpcSetJobNamedProperty(
+ );
+
+ /******************/
+ /* Function: 0x70 */
+ [todo] WERROR spoolss_RpcDeleteJobNamedProperty(
+ );
+
+ /******************/
+ /* Function: 0x71 */
+ [todo] WERROR spoolss_RpcEnumJobNamedProperties(
+ );
}
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 531b2898ab..28ef836b41 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -10951,3 +10951,47 @@ WERROR _spoolss_6d(struct pipes_struct *p,
p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
return WERR_NOT_SUPPORTED;
}
+
+/****************************************************************
+ _spoolss_RpcGetJobNamedPropertyValue
+****************************************************************/
+
+WERROR _spoolss_RpcGetJobNamedPropertyValue(struct pipes_struct *p,
+ struct spoolss_RpcGetJobNamedPropertyValue *r)
+{
+ p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
+ return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+ _spoolss_RpcSetJobNamedProperty
+****************************************************************/
+
+WERROR _spoolss_RpcSetJobNamedProperty(struct pipes_struct *p,
+ struct spoolss_RpcSetJobNamedProperty *r)
+{
+ p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
+ return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+ _spoolss_RpcDeleteJobNamedProperty
+****************************************************************/
+
+WERROR _spoolss_RpcDeleteJobNamedProperty(struct pipes_struct *p,
+ struct spoolss_RpcDeleteJobNamedProperty *r)
+{
+ p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
+ return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+ _spoolss_RpcEnumJobNamedProperties
+****************************************************************/
+
+WERROR _spoolss_RpcEnumJobNamedProperties(struct pipes_struct *p,
+ struct spoolss_RpcEnumJobNamedProperties *r)
+{
+ p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
+ return WERR_NOT_SUPPORTED;
+}
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index 7227baaeb4..76035f3ce9 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -1722,6 +1722,43 @@ static WERROR dcesrv_spoolss_6d(struct dcesrv_call_state *dce_call, TALLOC_CTX *
}
+/*
+ spoolss_RpcGetJobNamedPropertyValue
+*/
+static WERROR dcesrv_spoolss_RpcGetJobNamedPropertyValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+ struct spoolss_RpcGetJobNamedPropertyValue *r)
+{
+ DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/*
+ spoolss_RpcSetJobNamedProperty
+*/
+static WERROR dcesrv_spoolss_RpcSetJobNamedProperty(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+ struct spoolss_RpcSetJobNamedProperty *r)
+{
+ DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/*
+ spoolss_RpcDeleteJobNamedProperty
+*/
+static WERROR dcesrv_spoolss_RpcDeleteJobNamedProperty(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+ struct spoolss_RpcDeleteJobNamedProperty *r)
+{
+ DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+/*
+ spoolss_RpcEnumJobNamedProperties
+*/
+static WERROR dcesrv_spoolss_RpcEnumJobNamedProperties(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
+ struct spoolss_RpcEnumJobNamedProperties *r)
+{
+ DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
/* include the generated boilerplate */
#include "librpc/gen_ndr/ndr_spoolss_s.c"