summaryrefslogtreecommitdiff
path: root/docs/application/interface.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/application/interface.md')
-rw-r--r--docs/application/interface.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/application/interface.md b/docs/application/interface.md
index 5acfba7..e1c947a 100644
--- a/docs/application/interface.md
+++ b/docs/application/interface.md
@@ -41,10 +41,26 @@ typedef struct {
kpl_interface *interflace;
} kpl_class;
+typedef enum : uint8_t {
+ KPL_STATUS_ERROR,
+ KPL_STATUS_VALUE,
+ KPL_STATUS_NULL,
+ KPL_STATUS_DONE
+} kpl_status;
+
typedef struct {
- any value, info;
+ any value;
+ kpl_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);
+
typdef struct {
uint16_t slab_index, array_index;
} kpl_ptr;