git add -f bin/default/librpc/gen_ndr/*.[ch] bin/default/source*/librpc/gen_ndr/...
[metze/samba/wip.git] / bin.gen_ndr / default / librpc / gen_ndr / ndr_policyagent.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4 #include "bin/default/librpc/gen_ndr/ndr_policyagent.h"
5
6 static enum ndr_err_code ndr_push_policyagent_Dummy(struct ndr_push *ndr, int flags, const struct policyagent_Dummy *r)
7 {
8         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
9         if (flags & NDR_IN) {
10         }
11         if (flags & NDR_OUT) {
12                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
13         }
14         return NDR_ERR_SUCCESS;
15 }
16
17 static enum ndr_err_code ndr_pull_policyagent_Dummy(struct ndr_pull *ndr, int flags, struct policyagent_Dummy *r)
18 {
19         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
20         if (flags & NDR_IN) {
21         }
22         if (flags & NDR_OUT) {
23                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
24         }
25         return NDR_ERR_SUCCESS;
26 }
27
28 _PUBLIC_ void ndr_print_policyagent_Dummy(struct ndr_print *ndr, const char *name, int flags, const struct policyagent_Dummy *r)
29 {
30         ndr_print_struct(ndr, name, "policyagent_Dummy");
31         if (r == NULL) { ndr_print_null(ndr); return; }
32         ndr->depth++;
33         if (flags & NDR_SET_VALUES) {
34                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
35         }
36         if (flags & NDR_IN) {
37                 ndr_print_struct(ndr, "in", "policyagent_Dummy");
38                 ndr->depth++;
39                 ndr->depth--;
40         }
41         if (flags & NDR_OUT) {
42                 ndr_print_struct(ndr, "out", "policyagent_Dummy");
43                 ndr->depth++;
44                 ndr_print_WERROR(ndr, "result", r->out.result);
45                 ndr->depth--;
46         }
47         ndr->depth--;
48 }
49
50 static const struct ndr_interface_call policyagent_calls[] = {
51         {
52                 "policyagent_Dummy",
53                 sizeof(struct policyagent_Dummy),
54                 (ndr_push_flags_fn_t) ndr_push_policyagent_Dummy,
55                 (ndr_pull_flags_fn_t) ndr_pull_policyagent_Dummy,
56                 (ndr_print_function_t) ndr_print_policyagent_Dummy,
57                 { 0, NULL },
58                 { 0, NULL },
59         },
60         { NULL, 0, NULL, NULL, NULL }
61 };
62
63 static const char * const policyagent_endpoint_strings[] = {
64         "ncacn_np:[\\pipe\\policyagent]", 
65 };
66
67 static const struct ndr_interface_string_array policyagent_endpoints = {
68         .count  = 1,
69         .names  = policyagent_endpoint_strings
70 };
71
72 static const char * const policyagent_authservice_strings[] = {
73         "host", 
74 };
75
76 static const struct ndr_interface_string_array policyagent_authservices = {
77         .count  = 1,
78         .names  = policyagent_authservice_strings
79 };
80
81
82 const struct ndr_interface_table ndr_table_policyagent = {
83         .name           = "policyagent",
84         .syntax_id      = {
85                 {0xd335b8f6,0xcb31,0x11d0,{0xb0,0xf9},{0x00,0x60,0x97,0xba,0x4e,0x54}},
86                 NDR_POLICYAGENT_VERSION
87         },
88         .helpstring     = NDR_POLICYAGENT_HELPSTRING,
89         .num_calls      = 1,
90         .calls          = policyagent_calls,
91         .endpoints      = &policyagent_endpoints,
92         .authservices   = &policyagent_authservices
93 };
94