Adjust how macOS drives are analysed and add a couple of tests.
[dcpomatic.git] / src / lib / cross.h
index ed1d0c8e780836cc3281d89a314e5fc16580bb34..aad223d60fd4d392310124e07ff2192cfdbdc4c7 100644 (file)
@@ -139,4 +139,28 @@ 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;
+};
+
+
+boost::optional<OSXMediaPath> analyse_osx_media_path (std::string path);
+std::vector<Drive> osx_disks_to_drives (std::vector<OSXDisk> disks);
+
+
 #endif