Add binding for ScreenCaptureAccess
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -41,3 +41,5 @@ pub mod private;
|
||||
pub mod image;
|
||||
pub mod path;
|
||||
pub mod sys;
|
||||
#[cfg(target_os = "macos")]
|
||||
pub mod access;
|
||||
Reference in New Issue
Block a user