]> git.meshlink.io Git - meshlink/commitdiff
Make sure mesh->name is available to the application.
authorGuus Sliepen <guus@sliepen.org>
Wed, 30 Jul 2014 14:36:44 +0000 (16:36 +0200)
committerGuus Sliepen <guus@sliepen.org>
Wed, 30 Jul 2014 14:36:44 +0000 (16:36 +0200)
For now, it will be replaced by a function.

src/meshlink.h
src/meshlink_internal.h

index cca509c5feea04bca3f3c6eb19b8edfff3efdfcb..2aee78c553bc13fba97fbe87359e58bf0ec8de41 100644 (file)
@@ -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 {
index 7c3a7d4c9734faff9a7e7684857f66c41f5a5270..1bf3085c92884975e5abe55c29a193f820d707e9 100644 (file)
@@ -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;