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