From: Guus Sliepen Date: Wed, 30 Jul 2014 14:36:44 +0000 (+0200) Subject: Make sure mesh->name is available to the application. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=4fdc68b822dc2a160e3142e0cb97b75879444a13 Make sure mesh->name is available to the application. For now, it will be replaced by a function. --- diff --git a/src/meshlink.h b/src/meshlink.h index cca509c5..2aee78c5 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -59,6 +59,8 @@ extern __thread meshlink_errno_t meshlink_errno; #ifndef MESHLINK_INTERNAL_H struct meshlink_handle { + const char *name; + void *priv; }; struct meshlink_node { diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 7c3a7d4c..1bf3085c 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -57,8 +57,10 @@ typedef struct outpacketqueue { /// A handle for an instance of MeshLink. struct meshlink_handle { - char *confbase; char *name; + void *priv; + + char *confbase; meshlink_receive_cb_t receive_cb; meshlink_node_status_cb_t node_status_cb;