ZBar Bar Code Reader Library  version 0.10
error.h File Reference

Classes

struct  errinfo_s
 

Macros

#define __func__
 
#define ERRINFO_MAGIC
 
#define ZFLUSH
 
#define zprintf(level, format, ...)
 

Typedefs

typedef struct errinfo_s errinfo_t
 
typedef enum errmodule_e errmodule_t
 
typedef enum errsev_e errsev_t
 

Enumerations

enum  errmodule_e {
  ZBAR_MOD_PROCESSOR,
  ZBAR_MOD_VIDEO,
  ZBAR_MOD_WINDOW,
  ZBAR_MOD_IMAGE_SCANNER,
  ZBAR_MOD_UNKNOWN
}
 
enum  errsev_e {
  SEV_FATAL,
  SEV_ERROR,
  SEV_OK,
  SEV_WARNING,
  SEV_NOTE
}
 

Functions

static int err_capture (const void *container, errsev_t sev, zbar_error_t type, const char *func, const char *detail)
 
static int err_capture_int (const void *container, errsev_t sev, zbar_error_t type, const char *func, const char *detail, int arg)
 
static int err_capture_num (const void *container, errsev_t sev, zbar_error_t type, const char *func, const char *detail, int num)
 
static int err_capture_str (const void *container, errsev_t sev, zbar_error_t type, const char *func, const char *detail, const char *arg)
 
static void err_cleanup (errinfo_t *err)
 
static int err_copy (void *dst_c, void *src_c)
 
static void err_init (errinfo_t *err, errmodule_t module)
 

Variables

int _zbar_verbosity
 

Macro Definition Documentation

#define __func__
#define ZFLUSH

Typedef Documentation

typedef struct errinfo_s errinfo_t
typedef enum errmodule_e errmodule_t
typedef enum errsev_e errsev_t

Enumeration Type Documentation

Enumerator
ZBAR_MOD_PROCESSOR 
ZBAR_MOD_VIDEO 
ZBAR_MOD_WINDOW 
ZBAR_MOD_IMAGE_SCANNER 
ZBAR_MOD_UNKNOWN 
enum errsev_e
Enumerator
SEV_FATAL 
SEV_ERROR 
SEV_OK 
SEV_WARNING 
SEV_NOTE 

Function Documentation

static int err_capture_int ( const void container,
errsev_t  sev,
zbar_error_t  type,
const char *  func,
const char *  detail,
int  arg 
)
inlinestatic
static int err_capture_num ( const void container,
errsev_t  sev,
zbar_error_t  type,
const char *  func,
const char *  detail,
int  num 
)
inlinestatic

References err_capture(), ERRINFO_MAGIC, errinfo_s::errnum, and errinfo_s::magic.

Here is the call graph for this function:

static int err_capture_str ( const void container,
errsev_t  sev,
zbar_error_t  type,
const char *  func,
const char *  detail,
const char *  arg 
)
inlinestatic

References errinfo_s::arg_str, err_capture(), ERRINFO_MAGIC, and errinfo_s::magic.

Referenced by _zbar_processor_open(), and _zbar_video_open().

Here is the call graph for this function:

Here is the caller graph for this function:

static void err_cleanup ( errinfo_t err)
inlinestatic

References errinfo_s::arg_str, errinfo_s::buf, ERRINFO_MAGIC, and errinfo_s::magic.

Referenced by zbar_processor_destroy(), zbar_video_destroy(), and zbar_window_destroy().

Here is the caller graph for this function:

static int err_copy ( void dst_c,
void src_c 
)
inlinestatic
static void err_init ( errinfo_t err,
errmodule_t  module 
)
inlinestatic

References ERRINFO_MAGIC, errinfo_s::magic, and errinfo_s::module.

Referenced by zbar_processor_create(), zbar_video_create(), and zbar_window_create().

Here is the caller graph for this function:

Variable Documentation

int _zbar_verbosity

Referenced by err_capture().