]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Fix queue handling in meshlink_send().
[meshlink] / src / meshlink_internal.h
index 517dc1e01cb8dbee31824f040f7c0a6140015f9e..6c7ac7bdf717e12e13d7c927a7aaf19237ce2cb1 100644 (file)
@@ -54,18 +54,13 @@ typedef enum proxytype_t {
        PROXY_EXEC,
 } proxytype_t;
 
-typedef struct outpacketqueue {
-       meshlink_node_t *destination;
-       const void *data;
-       unsigned int len;
-} outpacketqueue_t;
-
 /// A handle for an instance of MeshLink.
 struct meshlink_handle {
        char *name;
+       void *priv;
+
        char *appname;
        dev_class_t devclass;
-       void *priv;
 
        char *confbase;
 
@@ -152,8 +147,10 @@ struct meshlink_node {
 
 /// A channel.
 struct meshlink_channel {
-       struct utcp_connection *c;
        struct node_t *node;
+       void *priv;
+
+       struct utcp_connection *c;
        meshlink_channel_receive_cb_t receive_cb;
 };