I had been returning success / failed boolean values for various operations. I think it's better to throw an exception in these "exceptional" circumstances since error values can give more information about why a function failed. Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
16 lines
299 B
C
16 lines
299 B
C
/*
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_ERROR_H
|
|
#define OCARINA_ERROR_H
|
|
|
|
enum error_t {
|
|
EAUDIO = 1, /* Audio error */
|
|
EEXIST, /* Requested object does not exist */
|
|
EINVAL, /* Invalid operation requested */
|
|
EIO, /* I/O error */
|
|
ENOTRACK,
|
|
};
|
|
|
|
#endif /* OCARINA_ERROR_H */
|