mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 15:49:48 +00:00
Use the error context API in espeak_ng_Initialize.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user