/builddir/build/BUILD/gfal2-2.0.0/src/common/srm/gfal_common_srm.h File Reference

the header file with the main srm funcs of the common API More...

#include <string.h>
#include <regex.h>
#include <common/gfal_prototypes.h>
#include <common/gfal_types.h>
#include <common/gfal_constants.h>
#include <externals/gsimplecache/gcachemain.h>

Go to the source code of this file.

Data Structures

struct  _gfal_request_state
struct  _gfal_srmv2_opt
struct  _gfal_srm_result
struct  _gfal_srm_params

Defines

#define GFAL_PREFIX_SRM   "srm://"
#define GFAL_ENDPOINT_DEFAULT_PREFIX   "httpg://"
#define SRM_XATTR_GETURL   "user.replicas"
#define GFAL_SRM_LSTAT_PREFIX   "lstat_"

Typedefs

typedef _gfal_request_state gfal_request_state
typedef _gfal_srmv2_opt gfal_srmv2_opt
typedef gfal_srmv2_opt * gfal_srm_plugin_t
typedef _gfal_srm_result gfal_srm_result
typedef _gfal_srm_params * gfal_srm_params_t
typedef void * srm_request_handle

Enumerations

enum  status_type { DEFAULT_STATUS = 0, MD_STATUS, PIN_STATUS }
enum  se_type { TYPE_NONE = 0, TYPE_SRM, TYPE_SRMv2, TYPE_SE }
enum  gfal_srm_proto { PROTO_SRM = 0, PROTO_SRMv2, PROTO_ERROR_UNKNOW }

Functions

const char * gfal_srm_getName ()
gfal_plugin_interface gfal_srm_initG (gfal_handle handle, GError **err)
void gfal_srm_destroyG (plugin_handle ch)
void gfal_srm_opt_initG (gfal_srmv2_opt *opts, gfal_handle handle)
char * gfal_srm_construct_key (const char *url, const char *prefix, char *buff, const size_t s_buff)
void gfal_set_default_storageG (gfal_srmv2_opt *opts, enum gfal_srm_proto proto)
 accessor for the default storage type definition
int gfal_srm_convert_filestatuses_to_GError (struct srmv2_filestatus *statuses, int n, GError **err)


Detailed Description

the header file with the main srm funcs of the common API

Author:
Devresse Adrien
Version:
2.0
Date:
12/04/2011

Typedef Documentation

typedef struct _gfal_request_state gfal_request_state

the state of the last request -> depreciated needed to get the response


Function Documentation

char* gfal_srm_construct_key ( const char *  url,
const char *  prefix,
char *  buff,
const size_t  s_buff 
) [inline]

Construct a key for the cache system from a url and a prefix

void gfal_srm_destroyG ( plugin_handle  ch  ) 

destroyer function, call when the module is unload

const char* gfal_srm_getName (  ) 

srm plugin id

void gfal_srm_opt_initG ( gfal_srmv2_opt *  opts,
gfal_handle  handle 
)

Init an opts struct with the default parameters


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