summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
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;
+}