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_frstrans_c.h
1 #include "librpc/rpc/dcerpc.h"
2 #include "bin/default/librpc/gen_ndr/frstrans.h"
3 #ifndef _HEADER_RPC_frstrans
4 #define _HEADER_RPC_frstrans
5
6 extern const struct ndr_interface_table ndr_table_frstrans;
7
8 /* frstrans_BytePipe */
9 struct frstrans_BytePipe;
10 struct frstrans_BytePipe *dcerpc_frstrans_BytePipe_create(TALLOC_CTX *mem_ctx);
11 struct tevent_req *dcerpc_frstrans_BytePipe_chunk_push_send(TALLOC_CTX *mem_ctx,
12                                                             struct tevent_context *ev,
13                                                             struct frstrans_BytePipe *p,
14                                                             const struct frstrans_BytePipe_chunk *chunk);
15 NTSTATUS dcerpc_frstrans_BytePipe_chunk_push_recv(struct tevent_req *req);
16 struct tevent_req *dcerpc_frstrans_BytePipe_chunk_pull_send(TALLOC_CTX *mem_ctx,
17                                                             struct tevent_context *ev,
18                                                             struct frstrans_BytePipe *p);
19 NTSTATUS dcerpc_frstrans_BytePipe_chunk_pull_recv(struct tevent_req *req,
20                                                   TALLOC_CTX *mem_ctx,
21                                                   struct frstrans_BytePipe_chunk **chunk);
22
23 struct tevent_req *dcerpc_frstrans_CheckConnectivity_r_send(TALLOC_CTX *mem_ctx,
24         struct tevent_context *ev,
25         struct dcerpc_binding_handle *h,
26         struct frstrans_CheckConnectivity *r);
27 NTSTATUS dcerpc_frstrans_CheckConnectivity_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
28 NTSTATUS dcerpc_frstrans_CheckConnectivity_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_CheckConnectivity *r);
29 struct tevent_req *dcerpc_frstrans_CheckConnectivity_send(TALLOC_CTX *mem_ctx,
30                                                           struct tevent_context *ev,
31                                                           struct dcerpc_binding_handle *h,
32                                                           struct GUID _replica_set_guid /* [in]  */,
33                                                           struct GUID _connection_guid /* [in]  */);
34 NTSTATUS dcerpc_frstrans_CheckConnectivity_recv(struct tevent_req *req,
35                                                 TALLOC_CTX *mem_ctx,
36                                                 WERROR *result);
37 NTSTATUS dcerpc_frstrans_CheckConnectivity(struct dcerpc_binding_handle *h,
38                                            TALLOC_CTX *mem_ctx,
39                                            struct GUID _replica_set_guid /* [in]  */,
40                                            struct GUID _connection_guid /* [in]  */,
41                                            WERROR *result);
42
43 struct tevent_req *dcerpc_frstrans_EstablishConnection_r_send(TALLOC_CTX *mem_ctx,
44         struct tevent_context *ev,
45         struct dcerpc_binding_handle *h,
46         struct frstrans_EstablishConnection *r);
47 NTSTATUS dcerpc_frstrans_EstablishConnection_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
48 NTSTATUS dcerpc_frstrans_EstablishConnection_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_EstablishConnection *r);
49 struct tevent_req *dcerpc_frstrans_EstablishConnection_send(TALLOC_CTX *mem_ctx,
50                                                             struct tevent_context *ev,
51                                                             struct dcerpc_binding_handle *h,
52                                                             struct GUID _replica_set_guid /* [in]  */,
53                                                             struct GUID _connection_guid /* [in]  */,
54                                                             enum frstrans_ProtocolVersion _downstream_protocol_version /* [in]  */,
55                                                             uint32_t _downstream_flags /* [in]  */,
56                                                             enum frstrans_ProtocolVersion *_upstream_protocol_version /* [out] [ref] */,
57                                                             uint32_t *_upstream_flags /* [out] [ref] */);
58 NTSTATUS dcerpc_frstrans_EstablishConnection_recv(struct tevent_req *req,
59                                                   TALLOC_CTX *mem_ctx,
60                                                   WERROR *result);
61 NTSTATUS dcerpc_frstrans_EstablishConnection(struct dcerpc_binding_handle *h,
62                                              TALLOC_CTX *mem_ctx,
63                                              struct GUID _replica_set_guid /* [in]  */,
64                                              struct GUID _connection_guid /* [in]  */,
65                                              enum frstrans_ProtocolVersion _downstream_protocol_version /* [in]  */,
66                                              uint32_t _downstream_flags /* [in]  */,
67                                              enum frstrans_ProtocolVersion *_upstream_protocol_version /* [out] [ref] */,
68                                              uint32_t *_upstream_flags /* [out] [ref] */,
69                                              WERROR *result);
70
71 struct tevent_req *dcerpc_frstrans_EstablishSession_r_send(TALLOC_CTX *mem_ctx,
72         struct tevent_context *ev,
73         struct dcerpc_binding_handle *h,
74         struct frstrans_EstablishSession *r);
75 NTSTATUS dcerpc_frstrans_EstablishSession_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
76 NTSTATUS dcerpc_frstrans_EstablishSession_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_EstablishSession *r);
77 struct tevent_req *dcerpc_frstrans_EstablishSession_send(TALLOC_CTX *mem_ctx,
78                                                          struct tevent_context *ev,
79                                                          struct dcerpc_binding_handle *h,
80                                                          struct GUID _connection_guid /* [in]  */,
81                                                          struct GUID _content_set_guid /* [in]  */);
82 NTSTATUS dcerpc_frstrans_EstablishSession_recv(struct tevent_req *req,
83                                                TALLOC_CTX *mem_ctx,
84                                                WERROR *result);
85 NTSTATUS dcerpc_frstrans_EstablishSession(struct dcerpc_binding_handle *h,
86                                           TALLOC_CTX *mem_ctx,
87                                           struct GUID _connection_guid /* [in]  */,
88                                           struct GUID _content_set_guid /* [in]  */,
89                                           WERROR *result);
90
91 struct tevent_req *dcerpc_frstrans_RequestUpdates_r_send(TALLOC_CTX *mem_ctx,
92         struct tevent_context *ev,
93         struct dcerpc_binding_handle *h,
94         struct frstrans_RequestUpdates *r);
95 NTSTATUS dcerpc_frstrans_RequestUpdates_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
96 NTSTATUS dcerpc_frstrans_RequestUpdates_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_RequestUpdates *r);
97 struct tevent_req *dcerpc_frstrans_RequestUpdates_send(TALLOC_CTX *mem_ctx,
98                                                        struct tevent_context *ev,
99                                                        struct dcerpc_binding_handle *h,
100                                                        struct GUID _connection_guid /* [in]  */,
101                                                        struct GUID _content_set_guid /* [in]  */,
102                                                        uint32_t _credits_available /* [in] [range(0,256)] */,
103                                                        uint32_t _hash_requested /* [in] [range(0,1)] */,
104                                                        enum frstrans_UpdateRequestType _update_request_type /* [in] [range(0,2)] */,
105                                                        uint32_t _version_vector_diff_count /* [in]  */,
106                                                        struct frstrans_VersionVector *_version_vector_diff /* [in] [ref,size_is(version_vector_diff_count)] */,
107                                                        struct frstrans_Update *_frs_update /* [out] [ref,length_is(*update_count),size_is(credits_available)] */,
108                                                        uint32_t *_update_count /* [out] [ref] */,
109                                                        enum frstrans_UpdateStatus *_update_status /* [out] [ref] */,
110                                                        struct GUID *_gvsn_db_guid /* [out] [ref] */,
111                                                        uint64_t *_gvsn_version /* [out] [ref] */);
112 NTSTATUS dcerpc_frstrans_RequestUpdates_recv(struct tevent_req *req,
113                                              TALLOC_CTX *mem_ctx,
114                                              WERROR *result);
115 NTSTATUS dcerpc_frstrans_RequestUpdates(struct dcerpc_binding_handle *h,
116                                         TALLOC_CTX *mem_ctx,
117                                         struct GUID _connection_guid /* [in]  */,
118                                         struct GUID _content_set_guid /* [in]  */,
119                                         uint32_t _credits_available /* [in] [range(0,256)] */,
120                                         uint32_t _hash_requested /* [in] [range(0,1)] */,
121                                         enum frstrans_UpdateRequestType _update_request_type /* [in] [range(0,2)] */,
122                                         uint32_t _version_vector_diff_count /* [in]  */,
123                                         struct frstrans_VersionVector *_version_vector_diff /* [in] [ref,size_is(version_vector_diff_count)] */,
124                                         struct frstrans_Update *_frs_update /* [out] [ref,length_is(*update_count),size_is(credits_available)] */,
125                                         uint32_t *_update_count /* [out] [ref] */,
126                                         enum frstrans_UpdateStatus *_update_status /* [out] [ref] */,
127                                         struct GUID *_gvsn_db_guid /* [out] [ref] */,
128                                         uint64_t *_gvsn_version /* [out] [ref] */,
129                                         WERROR *result);
130
131 struct tevent_req *dcerpc_frstrans_RequestVersionVector_r_send(TALLOC_CTX *mem_ctx,
132         struct tevent_context *ev,
133         struct dcerpc_binding_handle *h,
134         struct frstrans_RequestVersionVector *r);
135 NTSTATUS dcerpc_frstrans_RequestVersionVector_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
136 NTSTATUS dcerpc_frstrans_RequestVersionVector_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_RequestVersionVector *r);
137 struct tevent_req *dcerpc_frstrans_RequestVersionVector_send(TALLOC_CTX *mem_ctx,
138                                                              struct tevent_context *ev,
139                                                              struct dcerpc_binding_handle *h,
140                                                              uint32_t _sequence_number /* [in]  */,
141                                                              struct GUID _connection_guid /* [in]  */,
142                                                              struct GUID _content_set_guid /* [in]  */,
143                                                              enum frstrans_VersionRequestType _request_type /* [in] [range(0,2)] */,
144                                                              enum frstrans_VersionChangeType _change_type /* [in] [range(0,2)] */,
145                                                              uint64_t _vv_generation /* [in]  */);
146 NTSTATUS dcerpc_frstrans_RequestVersionVector_recv(struct tevent_req *req,
147                                                    TALLOC_CTX *mem_ctx,
148                                                    WERROR *result);
149 NTSTATUS dcerpc_frstrans_RequestVersionVector(struct dcerpc_binding_handle *h,
150                                               TALLOC_CTX *mem_ctx,
151                                               uint32_t _sequence_number /* [in]  */,
152                                               struct GUID _connection_guid /* [in]  */,
153                                               struct GUID _content_set_guid /* [in]  */,
154                                               enum frstrans_VersionRequestType _request_type /* [in] [range(0,2)] */,
155                                               enum frstrans_VersionChangeType _change_type /* [in] [range(0,2)] */,
156                                               uint64_t _vv_generation /* [in]  */,
157                                               WERROR *result);
158
159 struct tevent_req *dcerpc_frstrans_AsyncPoll_r_send(TALLOC_CTX *mem_ctx,
160         struct tevent_context *ev,
161         struct dcerpc_binding_handle *h,
162         struct frstrans_AsyncPoll *r);
163 NTSTATUS dcerpc_frstrans_AsyncPoll_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
164 NTSTATUS dcerpc_frstrans_AsyncPoll_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_AsyncPoll *r);
165 struct tevent_req *dcerpc_frstrans_AsyncPoll_send(TALLOC_CTX *mem_ctx,
166                                                   struct tevent_context *ev,
167                                                   struct dcerpc_binding_handle *h,
168                                                   struct GUID _connection_guid /* [in]  */,
169                                                   struct frstrans_AsyncResponseContext *_response /* [out] [ref] */);
170 NTSTATUS dcerpc_frstrans_AsyncPoll_recv(struct tevent_req *req,
171                                         TALLOC_CTX *mem_ctx,
172                                         WERROR *result);
173 NTSTATUS dcerpc_frstrans_AsyncPoll(struct dcerpc_binding_handle *h,
174                                    TALLOC_CTX *mem_ctx,
175                                    struct GUID _connection_guid /* [in]  */,
176                                    struct frstrans_AsyncResponseContext *_response /* [out] [ref] */,
177                                    WERROR *result);
178
179 struct tevent_req *dcerpc_frstrans_InitializeFileTransferAsync_r_send(TALLOC_CTX *mem_ctx,
180         struct tevent_context *ev,
181         struct dcerpc_binding_handle *h,
182         struct frstrans_InitializeFileTransferAsync *r);
183 NTSTATUS dcerpc_frstrans_InitializeFileTransferAsync_r_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx);
184 NTSTATUS dcerpc_frstrans_InitializeFileTransferAsync_r(struct dcerpc_binding_handle *h, TALLOC_CTX *mem_ctx, struct frstrans_InitializeFileTransferAsync *r);
185 struct tevent_req *dcerpc_frstrans_InitializeFileTransferAsync_send(TALLOC_CTX *mem_ctx,
186                                                                     struct tevent_context *ev,
187                                                                     struct dcerpc_binding_handle *h,
188                                                                     struct GUID _connection_guid /* [in]  */,
189                                                                     struct frstrans_Update *_frs_update /* [in,out] [ref] */,
190                                                                     uint32_t _rdc_desired /* [in] [range(0,1)] */,
191                                                                     enum frstrans_RequestedStagingPolicy *_staging_policy /* [in,out] [ref] */,
192                                                                     struct policy_handle *_server_context /* [out] [ref] */,
193                                                                     struct frstrans_RdcFileInfo **_rdc_file_info /* [out] [ref] */,
194                                                                     uint8_t *_data_buffer /* [out] [ref,length_is(*size_read),size_is(buffer_size)] */,
195                                                                     uint32_t _buffer_size /* [in] [range(0,262144)] */,
196                                                                     uint32_t *_size_read /* [out] [ref] */,
197                                                                     uint32_t *_is_end_of_file /* [out] [ref] */);
198 NTSTATUS dcerpc_frstrans_InitializeFileTransferAsync_recv(struct tevent_req *req,
199                                                           TALLOC_CTX *mem_ctx,
200                                                           WERROR *result);
201 NTSTATUS dcerpc_frstrans_InitializeFileTransferAsync(struct dcerpc_binding_handle *h,
202                                                      TALLOC_CTX *mem_ctx,
203                                                      struct GUID _connection_guid /* [in]  */,
204                                                      struct frstrans_Update *_frs_update /* [in,out] [ref] */,
205                                                      uint32_t _rdc_desired /* [in] [range(0,1)] */,
206                                                      enum frstrans_RequestedStagingPolicy *_staging_policy /* [in,out] [ref] */,
207                                                      struct policy_handle *_server_context /* [out] [ref] */,
208                                                      struct frstrans_RdcFileInfo **_rdc_file_info /* [out] [ref] */,
209                                                      uint8_t *_data_buffer /* [out] [ref,length_is(*size_read),size_is(buffer_size)] */,
210                                                      uint32_t _buffer_size /* [in] [range(0,262144)] */,
211                                                      uint32_t *_size_read /* [out] [ref] */,
212                                                      uint32_t *_is_end_of_file /* [out] [ref] */,
213                                                      WERROR *result);
214
215 /*
216  * The following function is skipped because
217  * it uses pipes:
218  *
219  * dcerpc_frstrans_RawGetFileDataAsync_r_send()
220  * dcerpc_frstrans_RawGetFileDataAsync_r_recv()
221  * dcerpc_frstrans_RawGetFileDataAsync_r()
222  *
223  * dcerpc_frstrans_RawGetFileDataAsync_send()
224  * dcerpc_frstrans_RawGetFileDataAsync_recv()
225  * dcerpc_frstrans_RawGetFileDataAsync()
226  */
227
228 /*
229  * The following function is skipped because
230  * it uses pipes:
231  *
232  * dcerpc_frstrans_RdcGetFileDataAsync_r_send()
233  * dcerpc_frstrans_RdcGetFileDataAsync_r_recv()
234  * dcerpc_frstrans_RdcGetFileDataAsync_r()
235  *
236  * dcerpc_frstrans_RdcGetFileDataAsync_send()
237  * dcerpc_frstrans_RdcGetFileDataAsync_recv()
238  * dcerpc_frstrans_RdcGetFileDataAsync()
239  */
240
241 #endif /* _HEADER_RPC_frstrans */