objc2_core_graphics/generated/
CGSession.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2_core_foundation::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/coregraphics/kcgnotifyguiconsolesessionchanged?language=objc)
10pub const kCGNotifyGUIConsoleSessionChanged: &CStr = unsafe {
11    CStr::from_bytes_with_nul_unchecked(b"com.apple.coregraphics.GUIConsoleSessionChanged\0")
12};
13/// [Apple's documentation](https://developer.apple.com/documentation/coregraphics/kcgnotifyguisessionuserchanged?language=objc)
14pub const kCGNotifyGUISessionUserChanged: &CStr = unsafe {
15    CStr::from_bytes_with_nul_unchecked(b"com.apple.coregraphics.GUISessionUserChanged\0")
16};
17#[inline]
18pub extern "C-unwind" fn CGSessionCopyCurrentDictionary() -> Option<CFRetained<CFDictionary>> {
19    extern "C-unwind" {
20        fn CGSessionCopyCurrentDictionary() -> Option<NonNull<CFDictionary>>;
21    }
22    let ret = unsafe { CGSessionCopyCurrentDictionary() };
23    ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
24}