globus_ftp_client
8.13
Main Page
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
globus_ftp_client_throughput_plugin.h
Go to the documentation of this file.
1
/*
2
* Copyright 1999-2006 University of Chicago
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef GLOBUS_FTP_CLIENT_THROUGHPUT_PLUGIN_H
18
#define GLOBUS_FTP_CLIENT_THROUGHPUT_PLUGIN_H
19
37
#include "
globus_ftp_client.h
"
38
#include "
globus_ftp_client_plugin.h
"
39
40
#ifdef __cplusplus
41
extern
"C"
{
42
#endif
43
47
#define GLOBUS_FTP_CLIENT_THROUGHPUT_PLUGIN_MODULE (&globus_i_ftp_client_throughput_plugin_module)
48
49
extern
50
globus_module_descriptor_t globus_i_ftp_client_throughput_plugin_module;
51
74
typedef
void (*
globus_ftp_client_throughput_plugin_begin_cb_t
)(
75
void
* user_specific,
76
globus_ftp_client_handle_t
* handle,
77
const
char
* source_url,
78
const
char
* dest_url);
79
109
typedef
void (*
globus_ftp_client_throughput_plugin_stripe_cb_t
)(
110
void
* user_specific,
111
globus_ftp_client_handle_t
* handle,
112
int
stripe_ndx,
113
globus_off_t bytes,
114
float
instantaneous_throughput,
115
float
avg_throughput);
116
143
typedef
void (*
globus_ftp_client_throughput_plugin_total_cb_t
)(
144
void
* user_specific,
145
globus_ftp_client_handle_t
* handle,
146
globus_off_t bytes,
147
float
instantaneous_throughput,
148
float
avg_throughput);
149
171
typedef
void (*
globus_ftp_client_throughput_plugin_complete_cb_t
)(
172
void
* user_specific,
173
globus_ftp_client_handle_t
* handle,
174
globus_bool_t success);
175
176
193
typedef
void
* (*globus_ftp_client_throughput_plugin_user_copy_cb_t)(
194
void
* user_specific);
195
211
typedef
void (*
globus_ftp_client_throughput_plugin_user_destroy_cb_t
)(
212
void
* user_specific);
213
214
globus_result_t
215
globus_ftp_client_throughput_plugin_init
(
216
globus_ftp_client_plugin_t
* plugin,
217
globus_ftp_client_throughput_plugin_begin_cb_t
begin_cb,
218
globus_ftp_client_throughput_plugin_stripe_cb_t
per_stripe_cb,
219
globus_ftp_client_throughput_plugin_total_cb_t
total_cb,
220
globus_ftp_client_throughput_plugin_complete_cb_t
complete_cb,
221
void
* user_specific);
222
223
globus_result_t
224
globus_ftp_client_throughput_plugin_set_copy_destroy
(
225
globus_ftp_client_plugin_t
* plugin,
226
globus_ftp_client_throughput_plugin_user_copy_cb_t
copy_cb,
227
globus_ftp_client_throughput_plugin_user_destroy_cb_t
destroy_cb);
228
229
globus_result_t
230
globus_ftp_client_throughput_plugin_destroy
(
231
globus_ftp_client_plugin_t
* plugin);
232
233
globus_result_t
234
globus_ftp_client_throughput_plugin_get_user_specific
(
235
globus_ftp_client_plugin_t
* plugin,
236
void
** user_specific);
237
238
#ifdef __cplusplus
239
}
240
#endif
241
242
#endif
/* GLOBUS_INCLUDE_FTP_CLIENT_THROUGHPUT_PLUGIN_H */
Generated on Mon Oct 5 2015 18:13:27 for globus_ftp_client by
1.8.1.2