eaca66e15b874025d58cee115765dbabd4aeae56
[metze/samba/wip.git] / bin / default / librpc / gen_ndr / s3compat_trkwks.c
1 #include "includes.h"
2 #include "ntdomain.h"
3 #include "bin/default/librpc/gen_ndr/s3compat_trkwks.h"
4
5 struct _s3_compat_trkwks_Unknown0_state {
6         struct tevent_context *ev;
7         struct dcerpc_call_handle *call;
8         struct trkwks_Unknown0 *r;
9 };
10
11 static struct tevent_req *_s3_compat_trkwks_Unknown0_send(TALLOC_CTX *mem_ctx,
12                                         struct tevent_context *ev,
13                                         struct dcerpc_call_handle *call,
14                                         struct trkwks_Unknown0 *r)
15 {
16         struct tevent_req *req
17         struct _s3_compat_trkwks_Unknown0_state *state;
18         struct pipes_struct *p;
19
20         req = tevent_req_create(mem_ctx, &state,
21                                 struct _s3_compat_trkwks_Unknown0_state);
22         if (req == NULL) {
23                 return NULL;
24         }
25         state->ev = ev;
26         state->call = call;
27         state->r = r;
28
29         p = dcerpc_call_handle_get_pipes_struct(call);
30
31         r->out.result = _trkwks_Unknown0(p, r);
32
33         if (p->fault_state) {
34                 NTSTATUS status = dcerpc_fault_to_nt_status(p->fault_state);
35                 tevent_req_nterror(status);
36                 return tevent_req_post(req, ev);
37         }
38
39         tevent_req_done(req);
40         return tevent_req_post(req, ev);
41 }
42
43 static NTSTATUS _s3_compat_trkwks_Unknown0_recv(struct tevent_req *req)
44 {
45         return tevent_req_simple_recv_ntstatus(req);
46 }
47
48
49 static const struct dcerpc_call_entry_point_fns struct _s3_compat_trkwks_fns[] = {
50         {
51                 .send_fn = (dcerpc_call_entry_point_send_fn_t)
52                         _s3_compat_trkwks_Unknown0_send,
53                 .recv_fn = (dcerpc_call_entry_point_recv_fn_t)
54                         _s3_compat_trkwks_Unknown0_recv,
55         },
56         {
57                 .send_fn = NULL,
58                 .recv_fn = NULL,
59         },
60 };
61
62 static const struct dcerpc_call_entry_point_vector _s3_compat_trkwks_epv[] = {
63         .name = "_s3_compat_trkwks",
64         .table = &ndr_table_trkwks,
65         .num_fns = 1,
66         .fns = _s3_compat_trkwks_fns,
67 };
68
69 NTSTATUS dcerpc_server_setup_s3compat_trkwks(struct dcerpc_server *server)
70 {
71         return NT_STATUS_NOT_IMPLEMENTED;
72 }