/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to error.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-12 04:45:35 UTC
  • Revision ID: csa@dside.dyndns.org-20111212044535-6no1q7g230i8uvlv
multithread preprocessing of ipecamera frames and code reorganization

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _PCILIB_ERROR_H
2
2
#define _PCILIB_ERROR_H
 
3
 
 
4
#include <errno.h>
3
5
 
4
6
enum {
5
7
    PCILIB_ERROR_SUCCESS = 0,
6
 
    PCILIB_ERROR_MEMORY,
7
 
    PCILIB_ERROR_INVALID_REQUEST,
8
 
    PCILIB_ERROR_INVALID_ADDRESS,
9
 
    PCILIB_ERROR_INVALID_BANK,
10
 
    PCILIB_ERROR_INVALID_DATA,
11
 
    PCILIB_ERROR_INVALID_STATE,
12
 
    PCILIB_ERROR_TIMEOUT,
13
 
    PCILIB_ERROR_FAILED,
14
 
    PCILIB_ERROR_VERIFY,
15
 
    PCILIB_ERROR_NOTSUPPORTED,
16
 
    PCILIB_ERROR_NOTFOUND,
17
 
    PCILIB_ERROR_OUTOFRANGE,
18
 
    PCILIB_ERROR_NOTAVAILABLE,
19
 
    PCILIB_ERROR_NOTINITIALIZED,
20
 
    PCILIB_ERROR_TOOBIG,
21
 
    PCILIB_ERROR_THREAD
 
8
    PCILIB_ERROR_MEMORY = ENOMEM,
 
9
    PCILIB_ERROR_INVALID_REQUEST = EBADR,
 
10
    PCILIB_ERROR_INVALID_ADDRESS = EFAULT,
 
11
    PCILIB_ERROR_INVALID_BANK = ENOENT,
 
12
    PCILIB_ERROR_INVALID_DATA = EILSEQ,
 
13
    PCILIB_ERROR_INVALID_STATE =  EBADFD,
 
14
    PCILIB_ERROR_INVALID_ARGUMENT = EINVAL,
 
15
    PCILIB_ERROR_TIMEOUT = ETIME,
 
16
    PCILIB_ERROR_FAILED = EBADE,
 
17
    PCILIB_ERROR_VERIFY = EREMOTEIO,
 
18
    PCILIB_ERROR_NOTSUPPORTED = ENOTSUP,
 
19
    PCILIB_ERROR_NOTFOUND = ESRCH,
 
20
    PCILIB_ERROR_OUTOFRANGE = ERANGE,
 
21
    PCILIB_ERROR_NOTAVAILABLE = ENAVAIL,
 
22
    PCILIB_ERROR_NOTINITIALIZED = EBADFD,
 
23
    PCILIB_ERROR_TOOBIG = EFBIG,
 
24
    PCILIB_ERROR_OVERWRITTEN = ESTALE
22
25
} pcilib_errot_t;
23
26
 
24
27
 
 
28
#ifndef _PCILIB_ERROR_C
 
29
extern void (*pcilib_error)(const char *msg, ...);
 
30
extern void (*pcilib_warning)(const char *msg, ...);
 
31
#endif /* _PCILIB_ERROR_C */
 
32
 
25
33
#endif /* _PCILIB_ERROR_H */