From 013d080bc2d1a657c56823e7e34186c2d7a57528 Mon Sep 17 00:00:00 2001 From: Diogo Diniz Date: Mon, 29 Jun 2026 15:10:19 +0100 Subject: [PATCH] docs: Documented error codes --- app/src/incphub/include/incphub/incphub.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/incphub/include/incphub/incphub.h b/app/src/incphub/include/incphub/incphub.h index 73e273c..d1634e6 100644 --- a/app/src/incphub/include/incphub/incphub.h +++ b/app/src/incphub/include/incphub/incphub.h @@ -6,12 +6,19 @@ #include "ntl/ntl.h" #include "nil/nil.h" +/// @brief Success #define INCPHUB_OK (0) +/// @brief Unspecified error #define INCPHUB_ERR (1) +/// @brief Invalid argument #define INCPHUB_EINVAL (2) +/// @brief Resource or entry not found #define INCPHUB_ENOTFOUND (3) +/// @brief Resource in use #define INCPHUB_EBUSY (4) +/// @brief Resource temporarily unavailable #define INCPHUB_EAGAIN (5) +/// @brief Could not allocate memory #define INCPHUB_ENOMEM (6) typedef struct {