systemconfiguration-rs 0.2.1

Safe Rust bindings for Apple's SystemConfiguration framework via a Swift bridge on macOS
Documentation
1
2
3
4
5
6
7
8
use super::core::Handle;

unsafe extern "C" {
    pub(crate) fn sc_console_user_copy_current() -> Handle;
    pub(crate) fn sc_console_user_copy_name(raw: Handle) -> Handle;
    pub(crate) fn sc_console_user_get_uid(raw: Handle) -> u32;
    pub(crate) fn sc_console_user_get_gid(raw: Handle) -> u32;
}