00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
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