GFAL2  2.9.1
Macros | Functions
gfal_config.h File Reference

gfal2 configuration API set/get option for the running configuration of GFAL 2.0 More...

#include <glib.h>
#include <global/gfal_global.h>

Functions

gchar * gfal2_get_opt_string (gfal2_context_t handle, const gchar *group_name, const gchar *key, GError **error)
 get a string parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gchar * gfal2_get_opt_string_with_default (gfal2_context_t handle, const gchar *group_name, const gchar *key, const gchar *default_value)
 similar to gfal2_get_opt_string but return a default value if an error occurs More...
 
gint gfal2_set_opt_string (gfal2_context_t handle, const gchar *group_name, const gchar *key, const gchar *value, GError **error)
 set a string parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gint gfal2_get_opt_integer (gfal2_context_t handle, const gchar *group_name, const gchar *key, GError **error)
 get an integer parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gint gfal2_get_opt_integer_with_default (gfal2_context_t context, const gchar *group_name, const gchar *key, gint default_value)
 similar to gfal2_get_opt_integer but return a default value if an error occurs More...
 
gint gfal2_set_opt_integer (gfal2_context_t handle, const gchar *group_name, const gchar *key, gint value, GError **error)
 set an integer parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gint gfal2_set_opt_boolean (gfal2_context_t handle, const gchar *group_name, const gchar *key, gboolean value, GError **error)
 set a boolean parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gboolean gfal2_get_opt_boolean (gfal2_context_t handle, const gchar *group_name, const gchar *key, GError **error)
 get a boolean parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gboolean gfal2_get_opt_boolean_with_default (gfal2_context_t handle, const gchar *group_name, const gchar *key, gboolean default_value)
 similar to gfal2_get_opt_boolean but return a default value if an error occures More...
 
gint gfal2_set_opt_string_list (gfal2_context_t handle, const gchar *group_name, const gchar *key, const gchar *const list[], gsize length, GError **error)
 set a list of string parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal 2.0 documentation to know group/key/values More...
 
gchar ** gfal2_get_opt_string_list (gfal2_context_t handle, const gchar *group_name, const gchar *key, gsize *length, GError **error)
 get a list of string parameter in the current GFAL 2.0 configuration see gfal2.d configfal2_set_user_agent0 documentation to know group/key/values More...
 
gchar ** gfal2_get_opt_string_list_with_default (gfal2_context_t handle, const gchar *group_name, const gchar *key, gsize *length, char **default_value)
 
gint gfal2_load_opts_from_file (gfal2_context_t handle, const char *path, GError **error)
 load configuration parameters from the file specified by path
 
gint gfal2_set_user_agent (gfal2_context_t handle, const char *user_agent, const char *version, GError **error)
 
gint gfal2_get_user_agent (gfal2_context_t handle, const char **user_agent, const char **version)
 
gint gfal2_add_client_info (gfal2_context_t handle, const char *key, const char *value, GError **error)
 
gint gfal2_remove_client_info (gfal2_context_t handle, const char *key, GError **error)
 
gint gfal2_clear_client_info (gfal2_context_t handle, GError **error)
 
gint gfal2_get_client_info_count (gfal2_context_t handle, GError **error)
 
gint gfal2_get_client_info_pair (gfal2_context_t handle, int index, const char **key, const char **value, GError **error)
 
gint gfal2_get_client_info_value (gfal2_context_t handle, const char *key, const char **value, GError **error)
 
char * gfal2_get_client_info_string (gfal2_context_t handle)
 

Detailed Description

gfal2 configuration API set/get option for the running configuration of GFAL 2.0

Author
Adrien Devresse