GFAL2 2.22.1
|
gfal2 configuration API set/get option for the running configuration of GFAL 2.0 More...
#include "gfal_common.h"
Macros | |
#define | GFAL_CONFIG_H_ |
#define | CORE_CONFIG_GROUP "CORE" |
#define | CORE_CONFIG_CHECKSUM_TIMEOUT "CHECKSUM_TIMEOUT" |
#define | CORE_CONFIG_NAMESPACE_TIMEOUT "NAMESPACE_TIMEOUT" |
Functions | |
gchar * | gfal2_get_opt_string (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
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 | |
gint | gfal2_set_opt_string (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
gint | gfal2_get_opt_integer (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
gint | gfal2_get_opt_integer_with_default (gfal2_context_t handle, 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 | |
gint | gfal2_set_opt_integer (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
gint | gfal2_set_opt_boolean (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
gboolean | gfal2_get_opt_boolean (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
gboolean | gfal2_get_opt_boolean_with_default (gfal2_context_t context, 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 | |
gint | gfal2_set_opt_string_list (gfal2_context_t context, 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 gfal2 documentation to know group/key/values | |
gchar ** | gfal2_get_opt_string_list (gfal2_context_t context, 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 configuration files or gfal2 documentation to know group/key/values | |
gchar ** | gfal2_get_opt_string_list_with_default (gfal2_context_t context, const gchar *group_name, const gchar *key, gsize *length, char **default_value) |
get a list of string parameter in the current GFAL 2.0 configuration see gfal2.d configuration files or gfal2 documentation to know group/key/values | |
gint | gfal2_load_opts_from_file (gfal2_context_t context, const char *path, GError **error) |
load configuration parameters from the file specified by path | |
gchar ** | gfal2_get_opt_keys (gfal2_context_t context, const gchar *group_name, gsize *length, GError **error) |
gboolean | gfal2_remove_opt (gfal2_context_t context, const gchar *group_name, const gchar *key, GError **error) |
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) |
gfal2 configuration API set/get option for the running configuration of GFAL 2.0