]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Add meshlink_get_all_nodes_by_last_reachable().
[meshlink] / src / meshlink_internal.h
index e7b184e40caccbe6e3abb319e36eff0f980a2e7e..15edba9ab9a1bf1c3452635c888dac1abe8bb9c7 100644 (file)
@@ -42,8 +42,8 @@ static const char meshlink_invitation_label[] = "MeshLink invitation";
 static const char meshlink_tcp_label[] = "MeshLink TCP";
 static const char meshlink_udp_label[] = "MeshLink UDP";
 
-#define MESHLINK_CONFIG_VERSION 1
-#define MESHLINK_INVITATION_VERSION 1
+#define MESHLINK_CONFIG_VERSION 2
+#define MESHLINK_INVITATION_VERSION 2
 
 struct CattaServer;
 struct CattaSServiceBrowser;
@@ -94,7 +94,7 @@ struct meshlink_handle {
        void *priv;
 
        // private members
-       pthread_mutex_t mesh_mutex;
+       pthread_mutex_t mutex;
        event_loop_t loop;
        struct node_t *self;
        meshlink_log_cb_t log_cb;
@@ -133,6 +133,7 @@ struct meshlink_handle {
 
        struct connection_t *everyone;
        uint64_t prng_state[4];
+       uint32_t session_id;
 
        int next_pit;
        int pits[10];
@@ -168,7 +169,7 @@ struct meshlink_handle {
 
        // Configuration
        char *confbase;
-       FILE *conffile;
+       FILE *lockfile;
        void *config_key;
 
        // Thread management