/builddir/build/BUILD/gfal2-2.0.0/src/common/lfc/gfal_common_lfc.h

Go to the documentation of this file.
00001 #pragma once
00002 /*
00003  * Copyright (c) Members of the EGEE Collaboration. 2004.
00004  * See http://www.eu-egee.org/partners/ for details on the copyright holders.
00005  *
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  * 
00010  *     http://www.apache.org/licenses/LICENSE-2.0
00011  * 
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019  
00029 #define _GNU_SOURCE
00030 
00031 #define GFAL_LFC_LIBRARY_NAME   "liblfc.so.1"
00032 #define GFAL_LFC_PREFIX "lfn:"
00033 #define GFAL_LFC_GUID_PREFIX "guid:"
00034 #define GFAL_LFC_GUID_PREFIX_LEN 5
00035 #define GFAL_LFC_PREFIX_LEN 4
00036 #define LFC_XATTR_GUID "user.guid"
00037 #define LFC_XATTR_SURLS "user.replicas"
00038 #define LFC_MAX_XATTR_LEN 2048
00039 #define LFC_BUFF_SIZE 2048
00040 
00041 #define LFC_PARAMETER_NAMESPACE "lfc"
00042 #define LFC_PARAMETER_HOST "host"
00043 
00044 #include <sys/types.h>
00045 #include <glib.h>
00046 #include "../gfal_common_plugin.h"
00047 #include "../gfal_prototypes.h"
00048 #include "../gfal_types.h"
00049 #include "../../externals/gsimplecache/gcachemain.h"
00050 
00051 
00052 // protos
00053 
00054 gboolean gfal_checker_guid(const char* guid, GError** err);
00055 
00056 gfal_plugin_interface lfc_initG(gfal_handle, GError**);
00057 
00058 
00059 gboolean gfal_lfc_check_lfn_url(plugin_handle handle, const char* lfn_url, plugin_mode mode, GError** err);
00060 
00061 char ** lfc_getSURLG(plugin_handle handle, const char * path, GError** err);
00062 
00063 void lfc_set_session_timeout(int timeout);
00064 
00065 
00066 
00067 

Generated on Wed May 16 16:45:58 2012 for CERN org.glite.Gfal by  doxygen 1.4.7