summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-20 03:27:56 +0000
committerTim Potter <tpot@samba.org>2003-11-20 03:27:56 +0000
commit8f0f97b078f45abbd001a1fa893455bd27d072cd (patch)
tree106e850d702f527d21db22505b17b02189d41494 /source4/librpc/rpc
parent52cae6b9088cae3c2daa8d195dcaba0c481a87d3 (diff)
downloadsamba-8f0f97b078f45abbd001a1fa893455bd27d072cd.tar.gz
samba-8f0f97b078f45abbd001a1fa893455bd27d072cd.tar.bz2
samba-8f0f97b078f45abbd001a1fa893455bd27d072cd.zip
Added ATSVC pipe.
(This used to be commit 274058486766f7a1094918702e7bc225aa938b2e)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/rpc_atsvc.c88
1 files changed, 88 insertions, 0 deletions
diff --git a/source4/librpc/rpc/rpc_atsvc.c b/source4/librpc/rpc/rpc_atsvc.c
new file mode 100644
index 0000000000..1bc81b5a68
--- /dev/null
+++ b/source4/librpc/rpc/rpc_atsvc.c
@@ -0,0 +1,88 @@
+/* dcerpc client calls generated by pidl */
+
+#include "includes.h"
+
+
+NTSTATUS dcerpc_atsvc_JobAdd(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct atsvc_JobAdd *r)
+{
+ NTSTATUS status;
+
+ if (p->flags & DCERPC_DEBUG_PRINT_IN) {
+ NDR_PRINT_IN_DEBUG(atsvc_JobAdd, r);
+ }
+
+ status = dcerpc_ndr_request(p, DCERPC_ATSVC_JOBADD, mem_ctx,
+ (ndr_push_fn_t) ndr_push_atsvc_JobAdd,
+ (ndr_pull_fn_t) ndr_pull_atsvc_JobAdd,
+ r);
+
+ if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
+ NDR_PRINT_OUT_DEBUG(atsvc_JobAdd, r);
+ }
+ if (NT_STATUS_IS_OK(status)) status = r->out.result;
+
+ return status;
+}
+
+NTSTATUS dcerpc_atsvc_JobDel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct atsvc_JobDel *r)
+{
+ NTSTATUS status;
+
+ if (p->flags & DCERPC_DEBUG_PRINT_IN) {
+ NDR_PRINT_IN_DEBUG(atsvc_JobDel, r);
+ }
+
+ status = dcerpc_ndr_request(p, DCERPC_ATSVC_JOBDEL, mem_ctx,
+ (ndr_push_fn_t) ndr_push_atsvc_JobDel,
+ (ndr_pull_fn_t) ndr_pull_atsvc_JobDel,
+ r);
+
+ if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
+ NDR_PRINT_OUT_DEBUG(atsvc_JobDel, r);
+ }
+ if (NT_STATUS_IS_OK(status)) status = r->out.result;
+
+ return status;
+}
+
+NTSTATUS dcerpc_atsvc_JobEnum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct atsvc_JobEnum *r)
+{
+ NTSTATUS status;
+
+ if (p->flags & DCERPC_DEBUG_PRINT_IN) {
+ NDR_PRINT_IN_DEBUG(atsvc_JobEnum, r);
+ }
+
+ status = dcerpc_ndr_request(p, DCERPC_ATSVC_JOBENUM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_atsvc_JobEnum,
+ (ndr_pull_fn_t) ndr_pull_atsvc_JobEnum,
+ r);
+
+ if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
+ NDR_PRINT_OUT_DEBUG(atsvc_JobEnum, r);
+ }
+ if (NT_STATUS_IS_OK(status)) status = r->out.result;
+
+ return status;
+}
+
+NTSTATUS dcerpc_atsvc_JobGetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct atsvc_JobGetInfo *r)
+{
+ NTSTATUS status;
+
+ if (p->flags & DCERPC_DEBUG_PRINT_IN) {
+ NDR_PRINT_IN_DEBUG(atsvc_JobGetInfo, r);
+ }
+
+ status = dcerpc_ndr_request(p, DCERPC_ATSVC_JOBGETINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_atsvc_JobGetInfo,
+ (ndr_pull_fn_t) ndr_pull_atsvc_JobGetInfo,
+ r);
+
+ if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
+ NDR_PRINT_OUT_DEBUG(atsvc_JobGetInfo, r);
+ }
+ if (NT_STATUS_IS_OK(status)) status = r->out.result;
+
+ return status;
+}