w3:winbind: Convert WINBINDD_ALLOCATE_UID to the new API
[Samba/gebeck_regimport.git] / source3 / librpc / gen_ndr / cli_wbint.h
blobf5fd8120730b1a65a278ae89a11d89dafa122f6a
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_AllocateUid_send(TALLOC_CTX *mem_ctx,
106 struct tevent_context *ev,
107 struct rpc_pipe_client *cli,
108 uint64_t *_uid /* [out] [ref] */);
109 NTSTATUS rpccli_wbint_AllocateUid_recv(struct tevent_req *req,
110 TALLOC_CTX *mem_ctx,
111 NTSTATUS *result);
112 NTSTATUS rpccli_wbint_AllocateUid(struct rpc_pipe_client *cli,
113 TALLOC_CTX *mem_ctx,
114 uint64_t *uid /* [out] [ref] */);
115 struct tevent_req *rpccli_wbint_QueryUser_send(TALLOC_CTX *mem_ctx,
116 struct tevent_context *ev,
117 struct rpc_pipe_client *cli,
118 struct dom_sid *_sid /* [in] [ref] */,
119 struct wbint_userinfo *_info /* [out] [ref] */);
120 NTSTATUS rpccli_wbint_QueryUser_recv(struct tevent_req *req,
121 TALLOC_CTX *mem_ctx,
122 NTSTATUS *result);
123 NTSTATUS rpccli_wbint_QueryUser(struct rpc_pipe_client *cli,
124 TALLOC_CTX *mem_ctx,
125 struct dom_sid *sid /* [in] [ref] */,
126 struct wbint_userinfo *info /* [out] [ref] */);
127 struct tevent_req *rpccli_wbint_LookupUserAliases_send(TALLOC_CTX *mem_ctx,
128 struct tevent_context *ev,
129 struct rpc_pipe_client *cli,
130 struct wbint_SidArray *_sids /* [in] [ref] */,
131 struct wbint_RidArray *_rids /* [out] [ref] */);
132 NTSTATUS rpccli_wbint_LookupUserAliases_recv(struct tevent_req *req,
133 TALLOC_CTX *mem_ctx,
134 NTSTATUS *result);
135 NTSTATUS rpccli_wbint_LookupUserAliases(struct rpc_pipe_client *cli,
136 TALLOC_CTX *mem_ctx,
137 struct wbint_SidArray *sids /* [in] [ref] */,
138 struct wbint_RidArray *rids /* [out] [ref] */);
139 struct tevent_req *rpccli_wbint_LookupUserGroups_send(TALLOC_CTX *mem_ctx,
140 struct tevent_context *ev,
141 struct rpc_pipe_client *cli,
142 struct dom_sid *_sid /* [in] [ref] */,
143 struct wbint_SidArray *_sids /* [out] [ref] */);
144 NTSTATUS rpccli_wbint_LookupUserGroups_recv(struct tevent_req *req,
145 TALLOC_CTX *mem_ctx,
146 NTSTATUS *result);
147 NTSTATUS rpccli_wbint_LookupUserGroups(struct rpc_pipe_client *cli,
148 TALLOC_CTX *mem_ctx,
149 struct dom_sid *sid /* [in] [ref] */,
150 struct wbint_SidArray *sids /* [out] [ref] */);
151 struct tevent_req *rpccli_wbint_QuerySequenceNumber_send(TALLOC_CTX *mem_ctx,
152 struct tevent_context *ev,
153 struct rpc_pipe_client *cli,
154 uint32_t *_sequence /* [out] [ref] */);
155 NTSTATUS rpccli_wbint_QuerySequenceNumber_recv(struct tevent_req *req,
156 TALLOC_CTX *mem_ctx,
157 NTSTATUS *result);
158 NTSTATUS rpccli_wbint_QuerySequenceNumber(struct rpc_pipe_client *cli,
159 TALLOC_CTX *mem_ctx,
160 uint32_t *sequence /* [out] [ref] */);
161 struct tevent_req *rpccli_wbint_LookupGroupMembers_send(TALLOC_CTX *mem_ctx,
162 struct tevent_context *ev,
163 struct rpc_pipe_client *cli,
164 struct dom_sid *_sid /* [in] [ref] */,
165 enum lsa_SidType _type /* [in] */,
166 struct wbint_Principals *_members /* [out] [ref] */);
167 NTSTATUS rpccli_wbint_LookupGroupMembers_recv(struct tevent_req *req,
168 TALLOC_CTX *mem_ctx,
169 NTSTATUS *result);
170 NTSTATUS rpccli_wbint_LookupGroupMembers(struct rpc_pipe_client *cli,
171 TALLOC_CTX *mem_ctx,
172 struct dom_sid *sid /* [in] [ref] */,
173 enum lsa_SidType type /* [in] */,
174 struct wbint_Principals *members /* [out] [ref] */);
175 struct tevent_req *rpccli_wbint_QueryUserList_send(TALLOC_CTX *mem_ctx,
176 struct tevent_context *ev,
177 struct rpc_pipe_client *cli,
178 struct wbint_userinfos *_users /* [out] [ref] */);
179 NTSTATUS rpccli_wbint_QueryUserList_recv(struct tevent_req *req,
180 TALLOC_CTX *mem_ctx,
181 NTSTATUS *result);
182 NTSTATUS rpccli_wbint_QueryUserList(struct rpc_pipe_client *cli,
183 TALLOC_CTX *mem_ctx,
184 struct wbint_userinfos *users /* [out] [ref] */);
185 struct tevent_req *rpccli_wbint_QueryGroupList_send(TALLOC_CTX *mem_ctx,
186 struct tevent_context *ev,
187 struct rpc_pipe_client *cli,
188 struct wbint_Principals *_groups /* [out] [ref] */);
189 NTSTATUS rpccli_wbint_QueryGroupList_recv(struct tevent_req *req,
190 TALLOC_CTX *mem_ctx,
191 NTSTATUS *result);
192 NTSTATUS rpccli_wbint_QueryGroupList(struct rpc_pipe_client *cli,
193 TALLOC_CTX *mem_ctx,
194 struct wbint_Principals *groups /* [out] [ref] */);
195 struct tevent_req *rpccli_wbint_DsGetDcName_send(TALLOC_CTX *mem_ctx,
196 struct tevent_context *ev,
197 struct rpc_pipe_client *cli,
198 const char *_domain_name /* [in] [ref,charset(UTF8)] */,
199 struct GUID *_domain_guid /* [in] [unique] */,
200 const char *_site_name /* [in] [unique,charset(UTF8)] */,
201 uint32_t _flags /* [in] */,
202 struct netr_DsRGetDCNameInfo **_dc_info /* [out] [ref] */);
203 NTSTATUS rpccli_wbint_DsGetDcName_recv(struct tevent_req *req,
204 TALLOC_CTX *mem_ctx,
205 NTSTATUS *result);
206 NTSTATUS rpccli_wbint_DsGetDcName(struct rpc_pipe_client *cli,
207 TALLOC_CTX *mem_ctx,
208 const char *domain_name /* [in] [ref,charset(UTF8)] */,
209 struct GUID *domain_guid /* [in] [unique] */,
210 const char *site_name /* [in] [unique,charset(UTF8)] */,
211 uint32_t flags /* [in] */,
212 struct netr_DsRGetDCNameInfo **dc_info /* [out] [ref] */);
213 struct tevent_req *rpccli_wbint_LookupRids_send(TALLOC_CTX *mem_ctx,
214 struct tevent_context *ev,
215 struct rpc_pipe_client *cli,
216 struct wbint_RidArray *_rids /* [in] [ref] */,
217 struct wbint_Principals *_names /* [out] [ref] */);
218 NTSTATUS rpccli_wbint_LookupRids_recv(struct tevent_req *req,
219 TALLOC_CTX *mem_ctx,
220 NTSTATUS *result);
221 NTSTATUS rpccli_wbint_LookupRids(struct rpc_pipe_client *cli,
222 TALLOC_CTX *mem_ctx,
223 struct wbint_RidArray *rids /* [in] [ref] */,
224 struct wbint_Principals *names /* [out] [ref] */);
225 #endif /* __CLI_WBINT__ */