use core::ffi::*;
use core::ptr::NonNull;
use objc2_core_foundation::*;
use crate::*;
pub const kCGNotifyGUIConsoleSessionChanged: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.coregraphics.GUIConsoleSessionChanged\0")
};
pub const kCGNotifyGUISessionUserChanged: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.coregraphics.GUISessionUserChanged\0")
};
#[inline]
pub extern "C-unwind" fn CGSessionCopyCurrentDictionary() -> Option<CFRetained<CFDictionary>> {
extern "C-unwind" {
fn CGSessionCopyCurrentDictionary() -> Option<NonNull<CFDictionary>>;
}
let ret = unsafe { CGSessionCopyCurrentDictionary() };
ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}