X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/9ea683eddb05362f02bca60e4337955dfc5871dc..5dd5aea6e6c70688ad4288df1eaafd97ac05720a:/src/watch_linux.rs diff --git a/src/watch_linux.rs b/src/watch_linux.rs new file mode 100644 index 0000000..74c1465 --- /dev/null +++ b/src/watch_linux.rs @@ -0,0 +1,13 @@ +use crate::Update; +use crate::Error; + +pub(crate) struct WatchHandle; + +pub(crate) fn watch_interfaces( + callback: F, +) -> Result { + // stop current worker thread + // post this into a thread that will use it + drop(callback); + Ok(WatchHandle) +}