]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Temporarily add a global meshlink_handle_t *mesh.
[meshlink] / src / meshlink_internal.h
index fa1017d065538efe9634d26426aeb8e95609c6b7..a41fa09bbc78895e06d512371cbf6c3ab9f5edff 100644 (file)
@@ -52,4 +52,10 @@ struct meshlink_node {
        void *priv;
 };
 
+// This is a *temporary* global variable which will keep the compiler happy
+// while refactoring the code to get rid of global variables.
+// TODO: remove this when no other global variables remain.
+
+extern meshlink_handle_t *mesh;
+
 #endif // MESHLINK_INTERNAL_H