Add binding for ScreenCaptureAccess

This commit is contained in:
fcfangcc
2023-05-24 15:50:12 +08:00
parent 3e4316695a
commit 2784e317bd
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
pub use base::boolean_t;
#[link(name = "CoreGraphics", kind = "framework")]
extern "C" {
// Screen Capture Access
pub fn CGRequestScreenCaptureAccess() -> boolean_t;
pub fn CGPreflightScreenCaptureAccess() -> boolean_t;
}
+2
View File
@@ -41,3 +41,5 @@ pub mod private;
pub mod image;
pub mod path;
pub mod sys;
#[cfg(target_os = "macos")]
pub mod access;