Adjust how macOS drives are analysed and add a couple of tests.
[dcpomatic.git] / src / lib / cross.h
index 1906acef7bd48331f0a111e81b130eeb368073b3..aad223d60fd4d392310124e07ff2192cfdbdc4c7 100644 (file)
@@ -142,12 +142,25 @@ void disk_write_finished ();
 
 struct OSXMediaPath
 {
-       bool real;       ///< true for a "real" disk, false for a synthesized APFS one
-       std::string prt; ///< "PRT" entry from the media path
+       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;
 };
 
 
 boost::optional<OSXMediaPath> analyse_osx_media_path (std::string path);
+std::vector<Drive> osx_disks_to_drives (std::vector<OSXDisk> disks);
 
 
 #endif