X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=inline;f=src%2Fmeshlink_internal.h;h=cb60416d838d02eb6eb5efa351cfbee8eaead149;hb=62031be5f0a4b7e37a99cce43d0a77a67690e791;hp=7976a55a7bb21a6be21c683b0e8b317df9dce895;hpb=3e8459f81c4e7e18d645cc2f4b7e24900ed33e04;p=meshlink diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 7976a55a..cb60416d 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -29,6 +29,8 @@ #include "sockaddr.h" #include "sptps.h" +#include + #define MAXSOCKETS 8 /* Probably overkill... */ typedef struct listen_socket_t { @@ -58,9 +60,12 @@ struct meshlink_handle { meshlink_log_level_t log_level; pthread_t thread; + pthread_mutex_t outpacketqueue_mutex; + pthread_mutex_t nodes_mutex; event_loop_t loop; listen_socket_t listen_socket[MAXSOCKETS]; int listen_sockets; + signal_t datafromapp; struct node_t *self; @@ -71,6 +76,8 @@ struct meshlink_handle { struct list_t *connections; struct list_t *outgoings; + struct list_t *outpacketqueue; + int contradicting_add_edge; int contradicting_del_edge; int sleeptime;