diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 05:45:35 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 05:45:35 +0100 |
commit | 2e4e8a00b27182a155cb10f0a00e44977bfcd5cf (patch) | |
tree | 86afd1b7ceb834dbb3cedf8d55c3ac0734947333 /error.h | |
parent | 7a4cfb9e546c496792d3fe0c61c822c66ad0128f (diff) | |
download | pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.gz pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.bz2 pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.xz pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.zip |
multithread preprocessing of ipecamera frames and code reorganization
Diffstat (limited to 'error.h')
-rw-r--r-- | error.h | 40 |
1 files changed, 24 insertions, 16 deletions
@@ -1,25 +1,33 @@ #ifndef _PCILIB_ERROR_H #define _PCILIB_ERROR_H + +#include <errno.h> 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 */ |