diff options
Diffstat (limited to 'docs/application/interface.md')
| -rw-r--r-- | docs/application/interface.md | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/application/interface.md b/docs/application/interface.md index e1c947a..831090b 100644 --- a/docs/application/interface.md +++ b/docs/application/interface.md @@ -43,23 +43,20 @@ typedef struct { typedef enum : uint8_t { KPL_STATUS_ERROR, - KPL_STATUS_VALUE, KPL_STATUS_NULL, - KPL_STATUS_DONE -} kpl_status; + KPL_STATUS_VALUE +} kpl_result_status; typedef struct { any value; - kpl_status status; + kpl_result_status status; } kpl_result; kpl_result kpl_result_error(error *er); -kpl_result kpl_result_value(any value); - kpl_result kpl_result_null(void); -kpl_result kpl_result_done(void); +kpl_result kpl_result_value(any value); typdef struct { uint16_t slab_index, array_index; @@ -67,3 +64,5 @@ typdef struct { #define KPL_PTR_NULL (kpl_ptr) { .slab_index = UINT16_MAX, .array_index = UINT16_MAX } ``` + +## `kpl_interface` |
