X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.h;h=6672b67d459bbc2e41d28dafde00b91e1933328d;hb=74e99de094a34556ba912a5e392eda172571eb53;hp=2aee78c553bc13fba97fbe87359e58bf0ec8de41;hpb=4fdc68b822dc2a160e3142e0cb97b75879444a13;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index 2aee78c5..6672b67d 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -44,8 +44,15 @@ typedef struct meshlink_channel meshlink_channel_t; /// Code of most recent error encountered. typedef enum { MESHLINK_OK, ///< Everything is fine + MESHLINK_EINVAL, ///< Invalid parameter(s) to function call MESHLINK_ENOMEM, ///< Out of memory MESHLINK_ENOENT, ///< Node is not known + MESHLINK_EEXIST, ///< Node already exists + MESHLINK_EINTERNAL, ///< MeshLink internal error + MESHLINK_ERESOLV, ///< MeshLink could not resolve a hostname + MESHLINK_ESTORAGE, ///< MeshLink coud not load or write data from/to disk + MESHLINK_ENETWORK, ///< MeshLink encountered a network error + MESHLINK_EPEER, ///< A peer caused an error } meshlink_errno_t; /// A variable holding the last encountered error from MeshLink.