]> git.meshlink.io Git - meshlink-tiny/blobdiff - src/meshlink_internal.h
Remove support for multiple connections.
[meshlink-tiny] / src / meshlink_internal.h
index 68d061b680a5177c84a306f27fe8d4ccd08f383c..fc4683efeaa4ab857a85ce3da6a4147858321026 100644 (file)
@@ -45,6 +45,8 @@ static const char meshlink_udp_label[] = "MeshLink UDP";
 #define MESHLINK_CONFIG_VERSION 2
 #define MESHLINK_INVITATION_VERSION 2
 
+#define CORE_MESH "."
+
 struct meshlink_open_params {
        char *confbase;
        char *lock_filename;
@@ -91,11 +93,9 @@ struct meshlink_handle {
        meshlink_queue_t outpacketqueue;
        signal_t datafromapp;
 
-       struct splay_tree_t *nodes;
-
-       struct list_t *connections;
-       struct list_t *outgoings;
-       struct list_t *submeshes;
+       struct node_t *peer;
+       struct connection_t *connection;
+       struct outgoing_t *outgoing;
 
        // Meta-connection-related members
        struct splay_tree_t *past_request_tree;
@@ -161,12 +161,6 @@ struct meshlink_node {
        void *priv;
 };
 
-/// A handle for a node Sub-Mesh.
-struct meshlink_submesh {
-       const char *name;
-       void *priv;
-};
-
 /// An AIO buffer.
 typedef struct meshlink_aio_buffer {
        const void *data;