Use a simpler way to decide what devices we could write to on macOS.
[dcpomatic.git] / src / lib / cross.h
index 6904811b756bd7299c57c96bbdad45baac079761..150199561f31223ac2ecadbefdc123681329413a 100644 (file)
@@ -138,29 +138,19 @@ private:
 void disk_write_finished ();
 
 
-struct OSXMediaPath
-{
-       bool real; ///< true for a "real" disk, false for a synthesized APFS one
-       std::vector<std::string> parts; ///< parts of the media path after the :
-};
-
-
 struct OSXDisk
 {
        std::string device;
        boost::optional<std::string> vendor;
        boost::optional<std::string> model;
-       OSXMediaPath media_path;
-       bool whole;
        std::vector<boost::filesystem::path> mount_points;
        unsigned long size;
+       bool system;
+       bool writeable;
+       bool partition;
 };
 
 
-boost::optional<OSXMediaPath> analyse_osx_media_path (std::string path);
-std::vector<Drive> osx_disks_to_drives (std::vector<OSXDisk> disks);
-
-
 class ArgFixer
 {
 public: