ZBar Bar Code Reader Library  version 0.10
error.c File Reference
Include dependency graph for error.c:

Macros

#define ERR_MAX
 
#define MOD_MAX
 
#define SEV_MAX
 

Functions

int _zbar_error_spew (const void *container, int verbosity)
 
const char * _zbar_error_string (const void *container, int verbosity)
 
zbar_error_t _zbar_get_error_code (const void *container)
 
void zbar_increase_verbosity ()
 increase global library debug level. More...
 
void zbar_set_verbosity (int level)
 set global library debug level. More...
 
int zbar_version (unsigned *major, unsigned *minor)
 retrieve runtime library version information. More...
 

Variables

int _zbar_verbosity
 
static const char const * err_str []
 
static const char *const mod_str []
 
static const char *const sev_str []
 

Macro Definition Documentation

#define ERR_MAX

Referenced by _zbar_error_string().

#define MOD_MAX

Referenced by _zbar_error_string().

#define SEV_MAX

Referenced by _zbar_error_string().

Function Documentation

int _zbar_error_spew ( const void object,
int  verbosity 
)

type unsafe error API (don't use)

References _zbar_error_string(), ERRINFO_MAGIC, fprintf(), errinfo_s::magic, and errinfo_s::sev.

Referenced by err_capture(), zbar::zbar_processor_error_spew(), zbar::zbar_video_error_spew(), and zbar::zbar_window_error_spew().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_error_t _zbar_get_error_code ( const void container)
void zbar_increase_verbosity ( void  )

increase global library debug level.

eg, for -vvvv

References _zbar_verbosity.

Referenced by increase_verbosity(), and main().

Here is the caller graph for this function:

void zbar_set_verbosity ( int  verbosity)

set global library debug level.

Parameters
verbositydesired debug level. higher values create more spew

References _zbar_verbosity.

Referenced by main(), and set_verbosity().

Here is the caller graph for this function:

int zbar_version ( unsigned *  major,
unsigned *  minor 
)

retrieve runtime library version information.

Parameters
majorset to the running major version (unless NULL)
minorset to the running minor version (unless NULL)
Returns
0

References ZBAR_VERSION_MAJOR, and ZBAR_VERSION_MINOR.

Referenced by version().

Here is the caller graph for this function:

Variable Documentation

const char const* err_str[]
static

Referenced by _zbar_error_string().

const char* const mod_str[]
static

Referenced by _zbar_error_string().

const char* const sev_str[]
static

Referenced by _zbar_error_string().