Improved error handling, and implemented celt_strerror()
This commit is contained in:
parent
80ed147663
commit
ece94a0475
4 changed files with 56 additions and 3 deletions
|
@ -69,6 +69,8 @@ extern "C" {
|
|||
#define CELT_UNIMPLEMENTED -5
|
||||
/** An encoder or decoder structure is invalid or already freed */
|
||||
#define CELT_INVALID_STATE -6
|
||||
/** Memory allocation has failed */
|
||||
#define CELT_ALLOC_FAIL -6
|
||||
|
||||
/* Requests */
|
||||
#define CELT_GET_MODE_REQUEST 1
|
||||
|
@ -265,6 +267,8 @@ EXPORT int celt_decoder_ctl(CELTDecoder * st, int request, ...);
|
|||
|
||||
/* @} */
|
||||
|
||||
const char *celt_strerror(int error);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue