X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink_internal.h;h=fa1017d065538efe9634d26426aeb8e95609c6b7;hb=69d248741bba651688b1dd080e93f887b0746f41;hp=321a1f356500637de994819550517657931b691c;hpb=5a7627ddb41361847ce39be96dafedcb3c87f27c;p=meshlink diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 321a1f35..fa1017d0 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -22,11 +22,7 @@ #include "system.h" -#include "node.h" #include "meshlink.h" -#include "splay_tree.h" - -#define MAXSOCKETS 16 /// A handle for an instance of MeshLink. struct meshlink_handle { @@ -39,15 +35,15 @@ struct meshlink_handle { meshlink_log_level_t log_level; pthread_t thread; - listen_socket_t listen_socket[MAXSOCKETS]; + struct list_t *sockets; - node_t *myself; + struct node_t *self; - splay_tree_t *config; - splay_tree_t *edges; - splay_tree_t *nodes; + struct splay_tree_t *config; + struct splay_tree_t *edges; + struct splay_tree_t *nodes; - list_t *outgoing_connections; + struct list_t *outgoing_connections; }; /// A handle for a MeshLink node.