GFAL2
2.9.1
|
gfal2 context management functions More...
#include <glib.h>
#include <common/gfal_prototypes.h>
#include <common/gfal_deprecated.h>
Macros | |
#define | GFAL_GLOBAL_HPP |
#define | GFAL2_QUARK_CORE "GFAL2::CORE" |
#define | GFAL2_QUARK_CONFIG "GFAL2::CONFIG" |
#define | GFAL2_QUARK_PLUGINS "GFAL2::PLUGINS" |
Typedefs | |
typedef struct gfal_handle_ * | gfal2_context_t |
Functions | |
typedef | GFAL2_DEPRECATED (gfal2_context_t) gfal2_context_t gfal_context_t |
gfal2_context_t | gfal2_context_new (GError **err) |
create a gfal2 context More... | |
void | gfal2_context_free (gfal2_context_t context) |
gchar ** | gfal2_get_plugin_names (gfal2_context_t context) |
GFAL2_DEPRECATED (gfal2_context_new) gfal2_context_t gfal_context_new(GError **err) | |
GFAL2_DEPRECATED (gfal2_context_free) void gfal_context_free(gfal2_context_t context) | |
GQuark | gfal2_get_core_quark () |
GQuark | gfal2_get_config_quark () |
GQuark | gfal2_get_plugins_quark () |
gfal2 context management functions
typedef struct 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 different 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 |
GFAL2_DEPRECATED | ( | gfal2_context_new | ) |
GFAL2_DEPRECATED | ( | gfal2_context_free | ) |
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"
gchar** gfal2_get_plugin_names | ( | gfal2_context_t | context | ) |
Get list of loaded plugins The returned list must be freed using g_strfreev
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