X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcross.h;h=aad223d60fd4d392310124e07ff2192cfdbdc4c7;hp=ed1d0c8e780836cc3281d89a314e5fc16580bb34;hb=9b9202c7f9fc26fcef0984189aaed366b7c6d726;hpb=ccacce39c39d16977ab6c1592fcb6e941b05ddff diff --git a/src/lib/cross.h b/src/lib/cross.h index ed1d0c8e7..aad223d60 100644 --- a/src/lib/cross.h +++ b/src/lib/cross.h @@ -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 parts; ///< parts of the media path after the : +}; + + +struct OSXDisk +{ + std::string device; + boost::optional vendor; + boost::optional model; + OSXMediaPath media_path; + bool whole; + std::vector mount_points; + unsigned long size; +}; + + +boost::optional analyse_osx_media_path (std::string path); +std::vector osx_disks_to_drives (std::vector disks); + + #endif