summaryrefslogtreecommitdiff
path: root/src/export.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-15 19:42:17 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-15 19:42:17 +0100
commit6aff2a945f45d5d4a755a2977ef483dd3e8987ff (patch)
tree7e195acb7c4544358f20befced84be776a0a1695 /src/export.h
parent9dae91f1993c563cf97a87b84836dc3b6306714a (diff)
import error handling
Diffstat (limited to 'src/export.h')
-rw-r--r--src/export.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/export.h b/src/export.h
index 0a320f8..d440997 100644
--- a/src/export.h
+++ b/src/export.h
@@ -3,12 +3,14 @@
#include "search.h"
#include "platform.h"
-typedef enum ts_export_result {
+typedef enum t_export_result {
EXPORT_NONE,
EXPORT_NO_RESULT,
EXPORT_SEARCH_ACTIVE,
EXPORT_SAVE_PENDING,
} export_result;
+extern export_result last_export_result;
+
bool ts_str_has_extension(const utf8_int8_t *str, const utf8_int8_t *suffix);
export_result ts_export_result(ts_search_result* result, const utf8_int8_t* path); \ No newline at end of file