Tidy up nanomsg class API; add unmounting for Linux.
[dcpomatic.git] / src / lib / cross_osx.cc
index c52dfc434bd9200b3a1e698965dd069ce60bb7d1..a363f0570b98af54779f5ac5d8d59823dd35733f 100644 (file)
@@ -485,3 +485,12 @@ config_path ()
        p /= "2";
        return p;
 }
+
+bool
+unmount_device (string device)
+{
+       int const r = umount(device.c_str());
+       LOG_DISK("Tried to unmount %1 and got %2 and %3", device, r, errno);
+       return r == 0;
+
+}