]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.h
Lock meshlink.conf to ensure only one instance can run at a time.
[meshlink] / src / meshlink.h
index 15fb6e6965cedd6569f6de89c30afc00d85eaef3..2f2e7f841054e2ea3d21622c09906bb881d95970 100644 (file)
@@ -53,17 +53,18 @@ 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_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_ENOTSUP, ///< The operation is not supported in the current configuration of MeshLink
+       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_ENOTSUP,   ///< The operation is not supported in the current configuration of MeshLink
+       MESHLINK_EBUSY,     ///< The MeshLink instance is already in use by another process
 } meshlink_errno_t;
 
 /// Device class