objc2_virtualization/generated/
VZLinuxBootLoader.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(VZBootLoader, NSObject))]
22 #[derive(Debug, PartialEq, Eq, Hash)]
23 #[cfg(feature = "VZBootLoader")]
24 pub struct VZLinuxBootLoader;
25);
26
27#[cfg(feature = "VZBootLoader")]
28extern_conformance!(
29 unsafe impl NSCopying for VZLinuxBootLoader {}
30);
31
32#[cfg(feature = "VZBootLoader")]
33unsafe impl CopyingHelper for VZLinuxBootLoader {
34 type Result = Self;
35}
36
37#[cfg(feature = "VZBootLoader")]
38extern_conformance!(
39 unsafe impl NSObjectProtocol for VZLinuxBootLoader {}
40);
41
42#[cfg(feature = "VZBootLoader")]
43impl VZLinuxBootLoader {
44 extern_methods!(
45 #[unsafe(method(initWithKernelURL:))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn initWithKernelURL(
51 this: Allocated<Self>,
52 kernel_url: &NSURL,
53 ) -> Retained<Self>;
54
55 #[unsafe(method(kernelURL))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn kernelURL(&self) -> Retained<NSURL>;
59
60 #[unsafe(method(setKernelURL:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn setKernelURL(&self, kernel_url: &NSURL);
66
67 #[unsafe(method(commandLine))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn commandLine(&self) -> Retained<NSString>;
76
77 #[unsafe(method(setCommandLine:))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn setCommandLine(&self, command_line: &NSString);
83
84 #[unsafe(method(initialRamdiskURL))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn initialRamdiskURL(&self) -> Option<Retained<NSURL>>;
88
89 #[unsafe(method(setInitialRamdiskURL:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn setInitialRamdiskURL(&self, initial_ramdisk_url: Option<&NSURL>);
95 );
96}
97
98#[cfg(feature = "VZBootLoader")]
100impl VZLinuxBootLoader {
101 extern_methods!(
102 #[unsafe(method(new))]
103 #[unsafe(method_family = new)]
104 pub unsafe fn new() -> Retained<Self>;
105
106 #[unsafe(method(init))]
107 #[unsafe(method_family = init)]
108 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
109 );
110}