From 31fb5a8b88e6294516c72aa0df9624277f640f72 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 22 Aug 2014 11:11:46 +0200 Subject: [PATCH] Keep private members out of the "public" meshlink structs. --- src/meshlink.h | 4 ---- src/meshlink_internal.h | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/meshlink.h b/src/meshlink.h index 3d929073..538c4a29 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -89,15 +89,11 @@ extern __thread meshlink_errno_t meshlink_errno; struct meshlink_handle { char *name; - char *appname; - dev_class_t devclass; void *priv; }; struct meshlink_node { char *name; ///< Textual name of this node. It is stored in a nul-terminated C string, which is allocated by MeshLink. - uint32_t options; - dev_class_t devclass; void *priv; ///< Private pointer which may be set freely by the application, and is never used or modified by MeshLink. }; diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 517dc1e0..3099d7e2 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -63,9 +63,10 @@ typedef struct outpacketqueue { /// A handle for an instance of MeshLink. struct meshlink_handle { char *name; + void *priv; + char *appname; dev_class_t devclass; - void *priv; char *confbase; -- 2.39.2