From c9eac59a9cedeea78d6d01605fac3e7bd835d08e Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Mon, 19 Jun 2023 15:13:02 -0400 Subject: [PATCH] Reexpose CFURL[Start|Stop]AccessingSecurityScopedResource This fixes a semver breakage caused by #576 --- core-foundation-sys/src/url.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-foundation-sys/src/url.rs b/core-foundation-sys/src/url.rs index 495f7e5..75235fc 100644 --- a/core-foundation-sys/src/url.rs +++ b/core-foundation-sys/src/url.rs @@ -314,8 +314,8 @@ extern { pub fn CFURLCreateBookmarkDataFromFile(allocator: CFAllocatorRef, fileURL: CFURLRef, errorRef: *mut CFErrorRef) -> CFDataRef; pub fn CFURLWriteBookmarkDataToFile(bookmarkRef: CFDataRef, fileURL: CFURLRef, options: CFURLBookmarkFileCreationOptions, errorRef: *mut CFErrorRef) -> Boolean; - // pub fn CFURLStartAccessingSecurityScopedResource(url: CFURLRef) -> Boolean; // ios(8.0)+ - // pub fn CFURLStopAccessingSecurityScopedResource(url: CFURLRef); // ios(8.0)+ + pub fn CFURLStartAccessingSecurityScopedResource(url: CFURLRef) -> Boolean; + pub fn CFURLStopAccessingSecurityScopedResource(url: CFURLRef); } #[test]