summaryrefslogtreecommitdiff
path: root/src/lib/cross.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-17 22:56:52 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-19 20:39:20 +0100
commita3c73134fad8a4261c7cd655ae7531b347a78ac7 (patch)
tree968eb89c191e0287a64bd7ca67bed5614c49e734 /src/lib/cross.h
parent9bc077322d49107fc464f4cfd2d66e9c2860f0a3 (diff)
Extract part of analyse_media_path to cross_common for tests.
Diffstat (limited to 'src/lib/cross.h')
-rw-r--r--src/lib/cross.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/cross.h b/src/lib/cross.h
index ed1d0c8e7..1906acef7 100644
--- a/src/lib/cross.h
+++ b/src/lib/cross.h
@@ -139,4 +139,15 @@ private:
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
+};
+
+
+boost::optional<OSXMediaPath> analyse_osx_media_path (std::string path);
+
+
#endif