CERN GFAL 2.0  2.0.1
Macros | Typedefs | Functions
gfal_global.h File Reference

gfal2 context management functions More...

#include <glib.h>
#include <common/gfal_prototypes.h>

Typedefs

typedef gfal_handle gfal2_context_t
 
typedef gfal2_context_t gfal_context_t
 

Functions

gfal2_context_t gfal2_context_new (GError **err)
 create a gfal2 context gfal2 context are needed for all gfal2 operations Thread-safe More...
 
void gfal2_context_free (gfal2_context_t context)
 
gfal_context_t gfal_context_new (GError **err)
 
void gfal_context_free (gfal_context_t context)
 
GQuark gfal2_get_core_quark ()
 

Detailed Description

gfal2 context management functions

Author
Devresse Adrien

Typedef Documentation

typedef gfal_handle gfal2_context_t

a gfal context is a separated instance of the gfal library Each context owns his parameters, file descriptors Context allows to have separated instance of GFAL with differents parameters providing an advanced interface to GFAL

Function Documentation

void gfal2_context_free ( gfal2_context_t  context)

free a gfal2 context It is safe to delete a NULL context Thread-safe

gfal2_context_t gfal2_context_new ( GError **  err)

create a gfal2 context gfal2 context are needed for all gfal2 operations Thread-safe

Parameters
err: GError error report system
Returns
gfal2 context if success, NULL if error
GQuark gfal2_get_core_quark ( )

GQuark for the gfal2 core namespace GQuark are used by the GError gfal2 error system in order to determine the scope of one error

void gfal_context_free ( gfal_context_t  context)
gfal_context_t gfal_context_new ( GError **  err)
Deprecated:
same than gfal2_context_new but with old compatibility