From 3c6ae042158df0236a8f9ccdaddb69a89ba66d57 Mon Sep 17 00:00:00 2001 From: Garden Date: Thu, 18 Dec 2025 21:15:15 +1100 Subject: feat: Add result enum --- include/tinyff/result.h | 12 ++++++++++++ include/tinyff/tinyff.h | 1 + 2 files changed, 13 insertions(+) create mode 100644 include/tinyff/result.h create mode 100644 include/tinyff/tinyff.h diff --git a/include/tinyff/result.h b/include/tinyff/result.h new file mode 100644 index 0000000..a837c66 --- /dev/null +++ b/include/tinyff/result.h @@ -0,0 +1,12 @@ +#ifndef RESULT_H +#define RESULT_H + +typedef enum { + FF_RESULT_OK = 0, + FF_RESULT_ERROR_INVALID_FILE_SIGNITURE, + FF_RESULT_ERROR_INVALID_FILE, + + // More will be created when more errors occur +} ff_result; + +#endif \ No newline at end of file diff --git a/include/tinyff/tinyff.h b/include/tinyff/tinyff.h new file mode 100644 index 0000000..48c4bbf --- /dev/null +++ b/include/tinyff/tinyff.h @@ -0,0 +1 @@ +// TODO: Include all formats \ No newline at end of file -- cgit v1.2.3