CERN org.glite.Gfal  2.0.1
/builddir/build/BUILD/gfal2-2.0.0/src/transfer/gfal_transfer_plugins.h
Go to the documentation of this file.
00001 #pragma once
00002 #ifndef GFAL_TRANSFER_PLUGIN_H
00003 #define GFAL_TRANSFER_PLUGIN_H
00004 
00005 /*
00006  * Copyright (c) Members of the EGEE Collaboration. 2004.
00007  * See http://www.eu-egee.org/partners/ for details on the copyright holders.
00008  *
00009  * Licensed under the Apache License, Version 2.0 (the "License");
00010  * you may not use this file except in compliance with the License.
00011  * You may obtain a copy of the License at
00012  * 
00013  *     http://www.apache.org/licenses/LICENSE-2.0
00014  * 
00015  * Unless required by applicable law or agreed to in writing, software
00016  * distributed under the License is distributed on an "AS IS" BASIS,
00017  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00018  * See the License for the specific language governing permissions and
00019  * limitations under the License.
00020  */
00021 
00029 #include <transfer/gfal_transfer_types.h>
00030 #include <transfer/gfal_transfer.h>
00031 
00032  
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif  // __cplusplus
00037 
00041 long gfalt_get_timeout(gfalt_params_t handle, GError** err);
00042 
00046 long gfalt_get_nbstreams(gfalt_params_t params, GError** err);
00047 
00048 //
00049 // full list of functions that are re-searched by GFAL 2.0 in the plugins
00050 //
00051 
00055 typedef int(*plugin_url_check2_call)(plugin_handle,  const char* src, const char* dst, gfal_url2_check check);
00056 
00057 // prototype for the filecopy entry point in the plugins
00058 typedef int (*plugin_filecopy_call)(plugin_handle, gfal_context_t, gfalt_params_t, const char* src, const char* dst, GError** );
00059 
00060 // prototype for the url_check2 entry point in the plugin
00061 typedef int (*plugin_url_check_call)(plugin_handle, const char* src, plugin_mode check);
00062 
00063 
00064 typedef const char * (*plugin_name_call)();
00065 
00066 #ifdef __cplusplus
00067 }
00068 #endif // __cplusplus
00069 
00070 #endif //_GFAL2_TRANSFER_
00071