diff options
Diffstat (limited to 'include/kpl/value.h')
| -rw-r--r-- | include/kpl/value.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/kpl/value.h b/include/kpl/value.h index 1e05c00..e0bf0c7 100644 --- a/include/kpl/value.h +++ b/include/kpl/value.h @@ -1,5 +1,5 @@ /* - * KPL values based on size + * KPL value definitions */ #pragma once @@ -49,3 +49,19 @@ typedef struct { kpl_value64 value; int64_t tag; } kpl_result; + +typedef struct { + void *async, *sync; +} kpl_function; + +/* + * Must match the type of c main return + * if code != KPL_EXIT_CODE_SUCCESS then return code + */ +typedef enum : int32_t { + KPL_EXIT_CODE_SUCCESS = 0, + KPL_EXIT_CODE_ERROR = 1, + KPL_EXIT_CODE_HELP = 2, + KPL_EXIT_CODE_IO_ERROR = 3, + KPL_EXIT_CODE_THREAD_ERROR = 4 +} kpl_exit_code; |
