#include <malloc.h>
#include <glib.h>
#include "gfal_common_errverbose.h"
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] |
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
char* gfal_str_GError | ( | GError ** | err | ) |
return a valid string of the current error,
: like strerror, not thread safe.
char* gfal_str_GError_r | ( | GError ** | err, | |
char * | buff_err, | |||
size_t | s_err | |||
) |
set buff_err to the current gfal error, reentrant function