s3:winbind: Add an async dsgetdcname call
[Samba.git] / source3 / librpc / gen_ndr / cli_wbint.h
blob148870dcf0faf3a0d58025d83fb7924666457aea
1 #include "librpc/gen_ndr/ndr_wbint.h"
2 #ifndef __CLI_WBINT__
3 #define __CLI_WBINT__
4 struct tevent_req *rpccli_wbint_Ping_send(TALLOC_CTX *mem_ctx,
5 struct tevent_context *ev,
6 struct rpc_pipe_client *cli,
7 uint32_t _in_data /* [in] */,
8 uint32_t *_out_data /* [out] [ref] */);
9 NTSTATUS rpccli_wbint_Ping_recv(struct tevent_req *req,
10 TALLOC_CTX *mem_ctx);
11 NTSTATUS rpccli_wbint_Ping(struct rpc_pipe_client *cli,
12 TALLOC_CTX *mem_ctx,
13 uint32_t in_data /* [in] */,
14 uint32_t *out_data /* [out] [ref] */);
15 struct tevent_req *rpccli_wbint_LookupSid_send(TALLOC_CTX *mem_ctx,
16 struct tevent_context *ev,
17 struct rpc_pipe_client *cli,
18 struct dom_sid *_sid /* [in] [ref] */,
19 enum lsa_SidType *_type /* [out] [ref] */,
20 const char **_domain /* [out] [ref,charset(UTF8)] */,
21 const char **_name /* [out] [ref,charset(UTF8)] */);
22 NTSTATUS rpccli_wbint_LookupSid_recv(struct tevent_req *req,
23 TALLOC_CTX *mem_ctx,
24 NTSTATUS *result);
25 NTSTATUS rpccli_wbint_LookupSid(struct rpc_pipe_client *cli,
26 TALLOC_CTX *mem_ctx,
27 struct dom_sid *sid /* [in] [ref] */,
28 enum lsa_SidType *type /* [out] [ref] */,
29 const char **domain /* [out] [ref,charset(UTF8)] */,
30 const char **name /* [out] [ref,charset(UTF8)] */);
31 struct tevent_req *rpccli_wbint_LookupName_send(TALLOC_CTX *mem_ctx,
32 struct tevent_context *ev,
33 struct rpc_pipe_client *cli,
34 const char *_domain /* [in] [ref,charset(UTF8)] */,
35 const char *_name /* [in] [ref,charset(UTF8)] */,
36 uint32_t _flags /* [in] */,
37 enum lsa_SidType *_type /* [out] [ref] */,
38 struct dom_sid *_sid /* [out] [ref] */);
39 NTSTATUS rpccli_wbint_LookupName_recv(struct tevent_req *req,
40 TALLOC_CTX *mem_ctx,
41 NTSTATUS *result);
42 NTSTATUS rpccli_wbint_LookupName(struct rpc_pipe_client *cli,
43 TALLOC_CTX *mem_ctx,
44 const char *domain /* [in] [ref,charset(UTF8)] */,
45 const char *name /* [in] [ref,charset(UTF8)] */,
46 uint32_t flags /* [in] */,
47 enum lsa_SidType *type /* [out] [ref] */,
48 struct dom_sid *sid /* [out] [ref] */);
49 struct tevent_req *rpccli_wbint_Sid2Uid_send(TALLOC_CTX *mem_ctx,
50 struct tevent_context *ev,
51 struct rpc_pipe_client *cli,
52 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
53 struct dom_sid *_sid /* [in] [ref] */,
54 uint64_t *_uid /* [out] [ref] */);
55 NTSTATUS rpccli_wbint_Sid2Uid_recv(struct tevent_req *req,
56 TALLOC_CTX *mem_ctx,
57 NTSTATUS *result);
58 NTSTATUS rpccli_wbint_Sid2Uid(struct rpc_pipe_client *cli,
59 TALLOC_CTX *mem_ctx,
60 const char *dom_name /* [in] [unique,charset(UTF8)] */,
61 struct dom_sid *sid /* [in] [ref] */,
62 uint64_t *uid /* [out] [ref] */);
63 struct tevent_req *rpccli_wbint_Sid2Gid_send(TALLOC_CTX *mem_ctx,
64 struct tevent_context *ev,
65 struct rpc_pipe_client *cli,
66 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
67 struct dom_sid *_sid /* [in] [ref] */,
68 uint64_t *_gid /* [out] [ref] */);
69 NTSTATUS rpccli_wbint_Sid2Gid_recv(struct tevent_req *req,
70 TALLOC_CTX *mem_ctx,
71 NTSTATUS *result);
72 NTSTATUS rpccli_wbint_Sid2Gid(struct rpc_pipe_client *cli,
73 TALLOC_CTX *mem_ctx,
74 const char *dom_name /* [in] [unique,charset(UTF8)] */,
75 struct dom_sid *sid /* [in] [ref] */,
76 uint64_t *gid /* [out] [ref] */);
77 struct tevent_req *rpccli_wbint_Uid2Sid_send(TALLOC_CTX *mem_ctx,
78 struct tevent_context *ev,
79 struct rpc_pipe_client *cli,
80 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
81 uint64_t _uid /* [in] */,
82 struct dom_sid *_sid /* [out] [ref] */);
83 NTSTATUS rpccli_wbint_Uid2Sid_recv(struct tevent_req *req,
84 TALLOC_CTX *mem_ctx,
85 NTSTATUS *result);
86 NTSTATUS rpccli_wbint_Uid2Sid(struct rpc_pipe_client *cli,
87 TALLOC_CTX *mem_ctx,
88 const char *dom_name /* [in] [unique,charset(UTF8)] */,
89 uint64_t uid /* [in] */,
90 struct dom_sid *sid /* [out] [ref] */);
91 struct tevent_req *rpccli_wbint_Gid2Sid_send(TALLOC_CTX *mem_ctx,
92 struct tevent_context *ev,
93 struct rpc_pipe_client *cli,
94 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
95 uint64_t _gid /* [in] */,
96 struct dom_sid *_sid /* [out] [ref] */);
97 NTSTATUS rpccli_wbint_Gid2Sid_recv(struct tevent_req *req,
98 TALLOC_CTX *mem_ctx,
99 NTSTATUS *result);
100 NTSTATUS rpccli_wbint_Gid2Sid(struct rpc_pipe_client *cli,
101 TALLOC_CTX *mem_ctx,
102 const char *dom_name /* [in] [unique,charset(UTF8)] */,
103 uint64_t gid /* [in] */,
104 struct dom_sid *sid /* [out] [ref] */);
105 struct tevent_req *rpccli_wbint_QueryUser_send(TALLOC_CTX *mem_ctx,
106 struct tevent_context *ev,
107 struct rpc_pipe_client *cli,
108 struct dom_sid *_sid /* [in] [ref] */,
109 struct wbint_userinfo *_info /* [out] [ref] */);
110 NTSTATUS rpccli_wbint_QueryUser_recv(struct tevent_req *req,
111 TALLOC_CTX *mem_ctx,
112 NTSTATUS *result);
113 NTSTATUS rpccli_wbint_QueryUser(struct rpc_pipe_client *cli,
114 TALLOC_CTX *mem_ctx,
115 struct dom_sid *sid /* [in] [ref] */,
116 struct wbint_userinfo *info /* [out] [ref] */);
117 struct tevent_req *rpccli_wbint_LookupUserAliases_send(TALLOC_CTX *mem_ctx,
118 struct tevent_context *ev,
119 struct rpc_pipe_client *cli,
120 struct wbint_SidArray *_sids /* [in] [ref] */,
121 struct wbint_RidArray *_rids /* [out] [ref] */);
122 NTSTATUS rpccli_wbint_LookupUserAliases_recv(struct tevent_req *req,
123 TALLOC_CTX *mem_ctx,
124 NTSTATUS *result);
125 NTSTATUS rpccli_wbint_LookupUserAliases(struct rpc_pipe_client *cli,
126 TALLOC_CTX *mem_ctx,
127 struct wbint_SidArray *sids /* [in] [ref] */,
128 struct wbint_RidArray *rids /* [out] [ref] */);
129 struct tevent_req *rpccli_wbint_LookupUserGroups_send(TALLOC_CTX *mem_ctx,
130 struct tevent_context *ev,
131 struct rpc_pipe_client *cli,
132 struct dom_sid *_sid /* [in] [ref] */,
133 struct wbint_SidArray *_sids /* [out] [ref] */);
134 NTSTATUS rpccli_wbint_LookupUserGroups_recv(struct tevent_req *req,
135 TALLOC_CTX *mem_ctx,
136 NTSTATUS *result);
137 NTSTATUS rpccli_wbint_LookupUserGroups(struct rpc_pipe_client *cli,
138 TALLOC_CTX *mem_ctx,
139 struct dom_sid *sid /* [in] [ref] */,
140 struct wbint_SidArray *sids /* [out] [ref] */);
141 struct tevent_req *rpccli_wbint_QuerySequenceNumber_send(TALLOC_CTX *mem_ctx,
142 struct tevent_context *ev,
143 struct rpc_pipe_client *cli,
144 uint32_t *_sequence /* [out] [ref] */);
145 NTSTATUS rpccli_wbint_QuerySequenceNumber_recv(struct tevent_req *req,
146 TALLOC_CTX *mem_ctx,
147 NTSTATUS *result);
148 NTSTATUS rpccli_wbint_QuerySequenceNumber(struct rpc_pipe_client *cli,
149 TALLOC_CTX *mem_ctx,
150 uint32_t *sequence /* [out] [ref] */);
151 struct tevent_req *rpccli_wbint_LookupGroupMembers_send(TALLOC_CTX *mem_ctx,
152 struct tevent_context *ev,
153 struct rpc_pipe_client *cli,
154 struct dom_sid *_sid /* [in] [ref] */,
155 enum lsa_SidType _type /* [in] */,
156 struct wbint_Principals *_members /* [out] [ref] */);
157 NTSTATUS rpccli_wbint_LookupGroupMembers_recv(struct tevent_req *req,
158 TALLOC_CTX *mem_ctx,
159 NTSTATUS *result);
160 NTSTATUS rpccli_wbint_LookupGroupMembers(struct rpc_pipe_client *cli,
161 TALLOC_CTX *mem_ctx,
162 struct dom_sid *sid /* [in] [ref] */,
163 enum lsa_SidType type /* [in] */,
164 struct wbint_Principals *members /* [out] [ref] */);
165 struct tevent_req *rpccli_wbint_QueryUserList_send(TALLOC_CTX *mem_ctx,
166 struct tevent_context *ev,
167 struct rpc_pipe_client *cli,
168 struct wbint_userinfos *_users /* [out] [ref] */);
169 NTSTATUS rpccli_wbint_QueryUserList_recv(struct tevent_req *req,
170 TALLOC_CTX *mem_ctx,
171 NTSTATUS *result);
172 NTSTATUS rpccli_wbint_QueryUserList(struct rpc_pipe_client *cli,
173 TALLOC_CTX *mem_ctx,
174 struct wbint_userinfos *users /* [out] [ref] */);
175 struct tevent_req *rpccli_wbint_DsGetDcName_send(TALLOC_CTX *mem_ctx,
176 struct tevent_context *ev,
177 struct rpc_pipe_client *cli,
178 const char *_domain_name /* [in] [ref,charset(UTF8)] */,
179 struct GUID *_domain_guid /* [in] [unique] */,
180 const char *_site_name /* [in] [unique,charset(UTF8)] */,
181 uint32_t _flags /* [in] */,
182 struct netr_DsRGetDCNameInfo **_dc_info /* [out] [ref] */);
183 NTSTATUS rpccli_wbint_DsGetDcName_recv(struct tevent_req *req,
184 TALLOC_CTX *mem_ctx,
185 NTSTATUS *result);
186 NTSTATUS rpccli_wbint_DsGetDcName(struct rpc_pipe_client *cli,
187 TALLOC_CTX *mem_ctx,
188 const char *domain_name /* [in] [ref,charset(UTF8)] */,
189 struct GUID *domain_guid /* [in] [unique] */,
190 const char *site_name /* [in] [unique,charset(UTF8)] */,
191 uint32_t flags /* [in] */,
192 struct netr_DsRGetDCNameInfo **dc_info /* [out] [ref] */);
193 #endif /* __CLI_WBINT__ */