From 6aff2a945f45d5d4a755a2977ef483dd3e8987ff Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 15 Mar 2024 19:42:17 +0100 Subject: import error handling --- src/import.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/import.h') diff --git a/src/import.h b/src/import.h index 979cf84..a3fedf9 100644 --- a/src/import.h +++ b/src/import.h @@ -2,4 +2,13 @@ #include "search.h" +typedef enum t_import_result { + IMPORT_NONE, + IMPORT_INVALID_DATA, + IMPORT_INVALID_VERSION, + IMPORT_FILE_ERROR, +} import_result; + +extern import_result last_import_result; + ts_search_result* ts_import_result(const utf8_int8_t* path); \ No newline at end of file -- cgit v1.2.3-70-g09d2