From 4fdc68b822dc2a160e3142e0cb97b75879444a13 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 30 Jul 2014 16:36:44 +0200 Subject: [PATCH] Make sure mesh->name is available to the application. For now, it will be replaced by a function. --- src/meshlink.h | 2 ++ src/meshlink_internal.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.2