Create an error context API.

This will allow the espeak-ng methods to provide more context
information for the errors that can then be used in things like
GUI applications.
This commit is contained in:
Reece H. Dunn
2016-01-04 10:24:38 +00:00
parent feae9a2a95
commit 378490b65f
3 changed files with 69 additions and 0 deletions
+5
View File
@@ -57,6 +57,11 @@ typedef enum {
ENOUTPUT_MODE_SPEAK_AUDIO = 0x0002,
} espeak_ng_OUTPUT_MODE;
typedef struct espeak_ng_ERROR_CONTEXT_ *espeak_ng_ERROR_CONTEXT;
ESPEAK_NG_API void
espeak_ng_ClearErrorContext(espeak_ng_ERROR_CONTEXT *context);
ESPEAK_NG_API void
espeak_ng_GetStatusCodeMessage(espeak_ng_STATUS status,
char *buffer,