]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Handle network change detection on macOS and iOS.
[meshlink] / src / meshlink_internal.h
index ceffea320325bfe3547e3896dbcccf785267f503..26186015cb3b40660acc040830a865fc69610cf0 100644 (file)
@@ -182,6 +182,11 @@ struct meshlink_handle {
                int iface_count;
                int address_count;
                io_t sockets[2];
+               time_t last_update;
+#ifdef __APPLE__
+               pthread_t thread;
+               void *runloop;
+#endif
        } discovery;
 
        // ADNS