objc2_core_graphics/generated/
CGSession.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2_core_foundation::*;
6
7use crate::*;
8
9pub const kCGNotifyGUIConsoleSessionChanged: &CStr = unsafe {
11 CStr::from_bytes_with_nul_unchecked(b"com.apple.coregraphics.GUIConsoleSessionChanged\0")
12};
13pub 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}