CERN GFAL 2.0 2.0.1
|
the file of the common lib for error management and verbose display More...
Functions | |
int | gfal_get_verbose () |
return verbose mode level | |
int | gfal_set_verbose (int value) |
set the verbose mode for the current program | |
void | gfal_print_verbose (int verbose_lvl, const char *msg,...) |
display a verbose message | |
void | gfal_release_GError (GError **err) |
display the full GError message on stderr and free the memory associated | |
char * | gfal_str_GError (GError **err) |
char * | gfal_str_GError_r (GError **err, char *buff_err, size_t s_err) |
gboolean | gfal_check_GError (GError **err) |
convenient way to manage Gerror If error does not exist, just return FALSE else print error on stderr, clear it and return TRUE | |
Variables | |
__thread char | _gfal_err [GFAL_ERRMSG_LEN] |
the file of the common lib for error management and verbose display
void gfal_print_verbose | ( | int | verbose_lvl, |
const char * | msg, | ||
... | |||
) |
display a verbose message
msg is displayed if current verbose level is superior to verbose mode specified
References gfal_get_verbose().
Referenced by gfal_release_GError(), and gfal_str_GError_r().
char* gfal_str_GError | ( | GError ** | err | ) |
return a valid string of the current error,
References GFAL_ERRMSG_LEN, and gfal_str_GError_r().
char* gfal_str_GError_r | ( | GError ** | err, |
char * | buff_err, | ||
size_t | s_err | ||
) |
set buff_err to the current gfal error, reentrant function
References gfal_print_verbose().
Referenced by gfal_posix_strerror_r(), and gfal_str_GError().