Index: webrtc/base/applefilesystem.mm |
diff --git a/webrtc/base/iosfilesystem.mm b/webrtc/base/applefilesystem.mm |
similarity index 84% |
rename from webrtc/base/iosfilesystem.mm |
rename to webrtc/base/applefilesystem.mm |
index eb4bbecd584ccd13da4bdf3a110fa9a14f965566..9f015edf071502e02f24d1f9f7e8994388a88c55 100644 |
--- a/webrtc/base/iosfilesystem.mm |
+++ b/webrtc/base/applefilesystem.mm |
@@ -8,8 +8,8 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-// This file only exists because various iOS system APIs are only |
-// available from Objective-C. See unixfilesystem.cc for the only use |
+// This file only exists because various iOS and macOS system APIs are only |
+// available from Objective-C. See unixfilesystem.cc for the only use |
// (enforced by a lack of a header file). |
#import <Foundation/NSPathUtilities.h> |
@@ -33,7 +33,7 @@ static char* copyString(NSString* s) { |
} |
// Return a (leaked) copy of a directory name suitable for application data. |
-char* IOSDataDirectory() { |
+char* AppleDataDirectory() { |
NSArray* paths = NSSearchPathForDirectoriesInDomains( |
NSApplicationSupportDirectory, NSUserDomainMask, YES); |
ASSERT([paths count] == 1); |
@@ -41,13 +41,13 @@ char* IOSDataDirectory() { |
} |
// Return a (leaked) copy of a directory name suitable for use as a $TEMP. |
-char* IOSTempDirectory() { |
+char* AppleTempDirectory() { |
return copyString(NSTemporaryDirectory()); |
} |
// Return the binary's path. |
-void IOSAppName(rtc::Pathname* path) { |
- NSProcessInfo *pInfo = [NSProcessInfo processInfo]; |
+void AppleAppName(rtc::Pathname* path) { |
+ NSProcessInfo* pInfo = [NSProcessInfo processInfo]; |
NSString* argv0 = [[pInfo arguments] objectAtIndex:0]; |
path->SetPathname([argv0 UTF8String]); |
} |