X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/0fdfcccec1a2e6cbd70ec47a57a255fbe1e285e0..1c34fe3947aaf8af2d773d59bdebf19e17d78527:/src/watch_mac.rs diff --git a/src/watch_mac.rs b/src/watch_mac.rs new file mode 100644 index 0000000..547db48 --- /dev/null +++ b/src/watch_mac.rs @@ -0,0 +1,10 @@ +use crate::Update; + +pub struct WatchHandle; + +pub fn watch_interfaces(callback: F) -> WatchHandle { + // stop current worker thread + // post this into a thread that will use it + drop(callback); + WatchHandle +}