gfal2 context management functions More...
#include <glib.h>
#include <common/gfal_prototypes.h>
Defines | |
#define | GFAL2_QUARK_CORE "GFAL2::CORE" |
#define | GFAL2_QUARK_CONFIG "GFAL2::CONFIG" |
#define | GFAL2_QUARK_PLUGINS "GFAL2::PLUGINS" |
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 | |
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 () |
GQuark | gfal2_get_config_quark () |
GQuark | gfal2_get_plugins_quark () |
gfal2 context management functions
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
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
Each context contain its own set of parameters and configurations ( Parameter API )
A context can be used in multiple threads at the same time ( Thread-safe ).
err | : GError error report system |
GQuark gfal2_get_config_quark | ( | ) |
GQuark for the gfal2 config namespace GQuark are used by the GError gfal2 error system in order to determine the scope of one error GQuark String : "GFAL2::CONFIG"
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 GQuark String : "GFAL2::CORE"
GQuark gfal2_get_plugins_quark | ( | ) |
GQuark for the gfal2 plugin namespace GQuark String : "GFAL2::PLUGINS" Any Plugin specific GQuark follows this pattern GFAL2::PLUGINS::NAME example srm plugin : GFAL2::PLUGINS::SRM
void gfal_context_free | ( | gfal_context_t | context | ) |
gfal_context_t gfal_context_new | ( | GError ** | err | ) |