]> code.octet-stream.net Git - netwatcher/blobdiff - src/watch_linux.rs
Fix up deps for Linux
[netwatcher] / src / watch_linux.rs
diff --git a/src/watch_linux.rs b/src/watch_linux.rs
new file mode 100644 (file)
index 0000000..74c1465
--- /dev/null
@@ -0,0 +1,13 @@
+use crate::Update;\r
+use crate::Error;\r
+\r
+pub(crate) struct WatchHandle;\r
+\r
+pub(crate) fn watch_interfaces<F: FnMut(Update) + 'static>(\r
+    callback: F,\r
+) -> Result<WatchHandle, Error> {\r
+    // stop current worker thread\r
+    // post this into a thread that will use it\r
+    drop(callback);\r
+    Ok(WatchHandle)\r
+}\r