]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Revert - HostDiskMacos: Migrate macOS host disk functions from file and user to hostDisk.
authorOliver Kurth <okurth@vmware.com>
Mon, 23 Oct 2017 21:21:21 +0000 (14:21 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 23 Oct 2017 21:21:21 +0000 (14:21 -0700)
open-vm-tools/lib/include/file.h

index 7cf44eea00408e5dd753fba259e2821e688bfcda..1d2a8c0ff378729904d2ea1b84e5f374fbf0294f 100644 (file)
@@ -87,7 +87,28 @@ typedef char *File_MakeTempCreateNameFunc(uint32 num,
                                           void *data);
 
 #if defined(__APPLE__)
+typedef enum {
+   FILEMACOS_UNMOUNT_SUCCESS,
+   FILEMACOS_UNMOUNT_SUCCESS_ALREADY,
+   FILEMACOS_UNMOUNT_ERROR,
+} FileMacosUnmountStatus;
+
+FileMacosUnmountStatus FileMacos_UnmountDev(char const *bsdDev,
+                                            Bool wholeDev,
+                                            Bool eject,
+                                            Bool su);
+
+void FileMacos_MountDevAsyncNoResult(char const *bsdDev,
+                                     Bool su);
+
 Bool FileMacos_IsOnSparseDmg(int fd);
+Bool FileMacos_IsSliceDevice(char const *bsdDev);
+
+char *FileMacos_DiskDevToUserFriendlyName(char const *bsdDiskDev);
+char *FileMacos_DiskDevToVolumeName(char const *bsdDiskDev);
+
+char *FileMacos_DiskDeviceToUniqueID(char const *bsdPath);
+char *FileMacos_UniqueIDToDiskDevice(char const *identifier);
 Bool FileMacOS_MakeSecureLibraryCopies(const char   *inDir,
                                        const char  **dylibName,
                                        unsigned      numDylibs,