objc2_security/generated/
SecCodeHost.rs1use core::ptr::NonNull;
4use objc2_core_foundation::*;
5
6use crate::*;
7
8pub const kSecCSDedicatedHost: u32 = 1;
10pub const kSecCSGenerateGuestHash: u32 = 2;
12
13extern "C-unwind" {
14 #[cfg(feature = "CSCommon")]
19 #[deprecated]
20 pub fn SecHostCreateGuest(
21 host: SecGuestRef,
22 status: u32,
23 path: &CFURL,
24 attributes: Option<&CFDictionary>,
25 flags: SecCSFlags,
26 new_guest: NonNull<SecGuestRef>,
27 ) -> OSStatus;
28}
29
30extern "C-unwind" {
31 #[cfg(feature = "CSCommon")]
32 #[deprecated]
33 pub fn SecHostRemoveGuest(host: SecGuestRef, guest: SecGuestRef, flags: SecCSFlags)
34 -> OSStatus;
35}
36
37extern "C-unwind" {
38 #[cfg(feature = "CSCommon")]
39 #[deprecated]
40 pub fn SecHostSelectGuest(guest_ref: SecGuestRef, flags: SecCSFlags) -> OSStatus;
41}
42
43extern "C-unwind" {
44 #[cfg(feature = "CSCommon")]
48 #[deprecated]
49 pub fn SecHostSelectedGuest(flags: SecCSFlags, guest_ref: NonNull<SecGuestRef>) -> OSStatus;
50}
51
52extern "C-unwind" {
53 #[cfg(feature = "CSCommon")]
57 #[deprecated]
58 pub fn SecHostSetGuestStatus(
59 guest_ref: SecGuestRef,
60 status: u32,
61 attributes: Option<&CFDictionary>,
62 flags: SecCSFlags,
63 ) -> OSStatus;
64}
65
66extern "C-unwind" {
67 #[cfg(all(feature = "CSCommon", feature = "libc"))]
68 #[deprecated]
69 pub fn SecHostSetHostingPort(hosting_port: libc::mach_port_t, flags: SecCSFlags) -> OSStatus;
70}