From a52ccd4da36f22b33934c75c8f1c15daba4b4c00 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 3 Jan 2025 01:24:22 +0100 Subject: Move OSXDisk out of common header. --- src/lib/cross.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'src/lib/cross.h') diff --git a/src/lib/cross.h b/src/lib/cross.h index 10b0b113f..551895754 100644 --- a/src/lib/cross.h +++ b/src/lib/cross.h @@ -129,6 +129,12 @@ public: private: std::string _device; + /** Descriptions of how this drive is mounted. This is interpreted differently + * on different platforms. + * + * On macOS it's a list of device nodes e.g. /dev/disk8, /dev/disk8s2, /dev/disk7s5 or + * filesystem mount points (the contents are not important, just if any exist). + */ std::vector _mount_points; /** size in bytes */ uint64_t _size; @@ -139,20 +145,6 @@ private: void disk_write_finished (); -struct OSXDisk -{ - std::string bsd_name; - std::string device; - boost::optional vendor; - boost::optional model; - std::vector mount_points; - unsigned long size; - bool system; - bool writeable; - bool partition; -}; - - class ArgFixer { public: -- cgit v1.2.3