From: Guus Sliepen Date: Fri, 22 Aug 2014 09:11:46 +0000 (+0200) Subject: Keep private members out of the "public" meshlink structs. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=31fb5a8b88e6294516c72aa0df9624277f640f72;p=meshlink Keep private members out of the "public" meshlink structs. --- 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;