From 2e4e8a00b27182a155cb10f0a00e44977bfcd5cf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 12 Dec 2011 05:45:35 +0100 Subject: multithread preprocessing of ipecamera frames and code reorganization --- error.h | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'error.h') diff --git a/error.h b/error.h index a5a9493..cbf2d98 100644 --- a/error.h +++ b/error.h @@ -1,25 +1,33 @@ #ifndef _PCILIB_ERROR_H #define _PCILIB_ERROR_H + +#include enum { PCILIB_ERROR_SUCCESS = 0, - PCILIB_ERROR_MEMORY, - PCILIB_ERROR_INVALID_REQUEST, - PCILIB_ERROR_INVALID_ADDRESS, - PCILIB_ERROR_INVALID_BANK, - PCILIB_ERROR_INVALID_DATA, - PCILIB_ERROR_INVALID_STATE, - PCILIB_ERROR_TIMEOUT, - PCILIB_ERROR_FAILED, - PCILIB_ERROR_VERIFY, - PCILIB_ERROR_NOTSUPPORTED, - PCILIB_ERROR_NOTFOUND, - PCILIB_ERROR_OUTOFRANGE, - PCILIB_ERROR_NOTAVAILABLE, - PCILIB_ERROR_NOTINITIALIZED, - PCILIB_ERROR_TOOBIG, - PCILIB_ERROR_THREAD + PCILIB_ERROR_MEMORY = ENOMEM, + PCILIB_ERROR_INVALID_REQUEST = EBADR, + PCILIB_ERROR_INVALID_ADDRESS = EFAULT, + PCILIB_ERROR_INVALID_BANK = ENOENT, + PCILIB_ERROR_INVALID_DATA = EILSEQ, + PCILIB_ERROR_INVALID_STATE = EBADFD, + PCILIB_ERROR_INVALID_ARGUMENT = EINVAL, + PCILIB_ERROR_TIMEOUT = ETIME, + PCILIB_ERROR_FAILED = EBADE, + PCILIB_ERROR_VERIFY = EREMOTEIO, + PCILIB_ERROR_NOTSUPPORTED = ENOTSUP, + PCILIB_ERROR_NOTFOUND = ESRCH, + PCILIB_ERROR_OUTOFRANGE = ERANGE, + PCILIB_ERROR_NOTAVAILABLE = ENAVAIL, + PCILIB_ERROR_NOTINITIALIZED = EBADFD, + PCILIB_ERROR_TOOBIG = EFBIG, + PCILIB_ERROR_OVERWRITTEN = ESTALE } pcilib_errot_t; +#ifndef _PCILIB_ERROR_C +extern void (*pcilib_error)(const char *msg, ...); +extern void (*pcilib_warning)(const char *msg, ...); +#endif /* _PCILIB_ERROR_C */ + #endif /* _PCILIB_ERROR_H */ -- cgit v1.2.3