1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// automatically generated by rust-bindgen

// Generated using:
// bindgen 0.51.1
// macOS SDK 10.15.

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

use libc::c_uint;

pub type __uint32_t = 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 = 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;
}