Use the error context API in espeak_ng_Initialize.

This commit is contained in:
Reece H. Dunn
2016-01-04 10:51:19 +00:00
parent 378490b65f
commit 013e282d1a
10 changed files with 55 additions and 25 deletions
+9 -1
View File
@@ -25,7 +25,9 @@ extern "C"
typedef struct espeak_ng_ERROR_CONTEXT_
{
char *filename;
char *path;
int version;
int expected_version;
} espeak_ng_ERROR_CONTEXT_;
espeak_ng_STATUS
@@ -33,6 +35,12 @@ create_file_error_context(espeak_ng_ERROR_CONTEXT *context,
espeak_ng_STATUS status,
const char *filename);
espeak_ng_STATUS
create_version_mismatch_error_context(espeak_ng_ERROR_CONTEXT *context,
const char *path,
int version,
int expected_version);
#ifdef __cplusplus
}
#endif