/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to error.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-27 00:28:57 UTC
  • Revision ID: csa@suren.me-20150427002857-82fk6r3e8rfgy4wr
First stand-alone ipecamera implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _PCILIB_ERROR_H
2
 
#define _PCILIB_ERROR_H
3
 
 
4
 
#include <errno.h>
5
 
 
6
 
enum {
7
 
    PCILIB_ERROR_SUCCESS = 0,
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,
25
 
    PCILIB_ERROR_BUSY = EBUSY
26
 
} pcilib_errot_t;
27
 
 
28
 
 
29
 
#ifndef _PCILIB_ERROR_C
30
 
extern void (*pcilib_error)(const char *msg, ...);
31
 
extern void (*pcilib_warning)(const char *msg, ...);
32
 
#endif /* _PCILIB_ERROR_C */
33
 
 
34
 
#endif /* _PCILIB_ERROR_H */