X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink_internal.h;h=a41fa09bbc78895e06d512371cbf6c3ab9f5edff;hb=98376916eae96a058d4291187d3960eeea218fee;hp=fa1017d065538efe9634d26426aeb8e95609c6b7;hpb=69d248741bba651688b1dd080e93f887b0746f41;p=meshlink diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index fa1017d0..a41fa09b 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -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