]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Fix queue handling in meshlink_send().
[meshlink] / src / meshlink_internal.h
index 3099d7e2e67a2d52e8e0fd1500af5af84d19575a..6c7ac7bdf717e12e13d7c927a7aaf19237ce2cb1 100644 (file)
@@ -54,12 +54,6 @@ 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;
@@ -153,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;
 };