system-configuration-sys 0.6.0

Low level bindings to SystemConfiguration framework for macOS
Documentation
/* automatically generated by rust-bindgen 0.66.1 */

// Generated using:
// bindgen 0.66.1
// macOS SDK 13.3.

use crate::dynamic_store::SCDynamicStoreRef;
use core_foundation_sys::dictionary::CFDictionaryRef;
use core_foundation_sys::string::{CFStringEncoding, CFStringRef};

pub type __uint32_t = ::core::ffi::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_uid_t = __uint32_t;
pub type gid_t = __darwin_gid_t;
pub type uid_t = __darwin_uid_t;
pub type UInt32 = ::core::ffi::c_uint;
extern "C" {
    pub fn SCDynamicStoreCopyComputerName(
        store: SCDynamicStoreRef,
        nameEncoding: *mut CFStringEncoding,
    ) -> CFStringRef;

    pub fn SCDynamicStoreCopyConsoleUser(
        store: SCDynamicStoreRef,
        uid: *mut uid_t,
        gid: *mut gid_t,
    ) -> CFStringRef;

    pub fn SCDynamicStoreCopyLocalHostName(store: SCDynamicStoreRef) -> CFStringRef;

    pub fn SCDynamicStoreCopyLocation(store: SCDynamicStoreRef) -> CFStringRef;

    pub fn SCDynamicStoreCopyProxies(store: SCDynamicStoreRef) -> CFDictionaryRef;
}