X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmeshlink_internal.h;h=b3ac72c40a2833f74abd78f68cb292b4a54f2e20;hb=fe1a9111456a73a6e690927e90d8bfa1e1d0ad22;hp=6c7ac7bdf717e12e13d7c927a7aaf19237ce2cb1;hpb=6e9e655b538070e8ed4efd160ac0f9b217604a56;p=meshlink diff --git a/src/meshlink_internal.h b/src/meshlink_internal.h index 6c7ac7bd..b3ac72c4 100644 --- a/src/meshlink_internal.h +++ b/src/meshlink_internal.h @@ -112,6 +112,8 @@ struct meshlink_handle { bool localdiscovery; sockaddr_t localdiscovery_address; + bool default_blacklist; + hash_t *node_udp_cache; struct connection_t *everyone; struct ecdsa *invitation_key; @@ -152,6 +154,7 @@ struct meshlink_channel { struct utcp_connection *c; meshlink_channel_receive_cb_t receive_cb; + meshlink_channel_poll_cb_t poll_cb; }; /// Header for data packets routed between nodes @@ -161,6 +164,7 @@ typedef struct meshlink_packethdr { } __attribute__ ((__packed__)) meshlink_packethdr_t; extern void meshlink_send_from_queue(event_loop_t* el,meshlink_handle_t *mesh); +extern void update_node_status(meshlink_handle_t *mesh, struct node_t *n); extern meshlink_log_level_t global_log_level; extern meshlink_log_cb_t global_log_cb;