/builddir/build/BUILD/gfal2-2.0.0/src/common/gfal_common_errverbose.c File Reference

the file of the common lib for error management and verbose display More...

#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]


Detailed Description

the file of the common lib for error management and verbose display

Author:
Devresse Adrien
Version:
0.0.1
Date:
8/04/2011

Function Documentation

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,

Warning:
Modifications or free() on this string can lead to an undefined behaviors.

: 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

Returns:
pointer to buff_err for convenience


Generated on Wed May 16 16:45:58 2012 for CERN org.glite.Gfal by  doxygen 1.4.7