CERN org.glite.Gfal
2.0.1
|
00001 /* 00002 * Copyright (c) Members of the EGEE Collaboration. 2004. 00003 * See http://www.eu-egee.org/partners/ for details on the copyright holders. 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 00025 #define _GNU_SOURCE 00026 00027 #define GFAL_MDS_MAX_SRM_ENDPOINT 100 00028 00029 #include <glib.h> 00030 #include "../gfal_prototypes.h" 00031 #include "../gfal_types.h" 00032 00033 #ifndef MDS_BDII_EXTERNAL 00034 #define MDS_BDII_EXTERNAL 0 00035 #endif 00036 00037 typedef enum { SRMv2=0, SRMv1, WebDav } mds_type_endpoint; 00038 00043 typedef struct _gfal_mds_endpoint{ 00044 char url[GFAL_URL_MAX_LEN]; 00045 mds_type_endpoint type; 00046 } gfal_mds_endpoint; 00047 00048 extern const char* bdii_env_var; 00049 00050 // 00051 int gfal_mds_resolve_srm_endpoint(const char* base_url, gfal_mds_endpoint* endpoints, size_t s_endpoint, GError** err); 00052 00053 // deprecated, use gfal_mds_resolve_srm_endpoint instead 00054 int gfal_mds_get_se_types_and_endpoints(const char *host, char ***se_types, char ***se_endpoints, GError** err); 00055 00056 char * gfal_get_lfchost_bdii(gfal_handle handle, GError** err); 00057 00058 00059 void gfal_set_nobdiiG(gfal_handle handle, gboolean no_bdii_chk); 00060 00061 gboolean gfal_get_nobdiiG(gfal_handle handle); 00062 00063 void gfal_mds_set_infosys(gfal_handle handle, const char * infosys, GError** err); 00064 00065 00066