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")]
28unsafe impl NSCopying for VZLinuxBootLoader {}
29
30#[cfg(feature = "VZBootLoader")]
31unsafe impl CopyingHelper for VZLinuxBootLoader {
32 type Result = Self;
33}
34
35#[cfg(feature = "VZBootLoader")]
36unsafe impl NSObjectProtocol for VZLinuxBootLoader {}
37
38#[cfg(feature = "VZBootLoader")]
39impl VZLinuxBootLoader {
40 extern_methods!(
41 #[unsafe(method(initWithKernelURL:))]
45 #[unsafe(method_family = init)]
46 pub unsafe fn initWithKernelURL(
47 this: Allocated<Self>,
48 kernel_url: &NSURL,
49 ) -> Retained<Self>;
50
51 #[unsafe(method(kernelURL))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn kernelURL(&self) -> Retained<NSURL>;
55
56 #[unsafe(method(setKernelURL:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn setKernelURL(&self, kernel_url: &NSURL);
60
61 #[unsafe(method(commandLine))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn commandLine(&self) -> Retained<NSString>;
70
71 #[unsafe(method(setCommandLine:))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn setCommandLine(&self, command_line: &NSString);
75
76 #[unsafe(method(initialRamdiskURL))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn initialRamdiskURL(&self) -> Option<Retained<NSURL>>;
80
81 #[unsafe(method(setInitialRamdiskURL:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn setInitialRamdiskURL(&self, initial_ramdisk_url: Option<&NSURL>);
85 );
86}
87
88#[cfg(feature = "VZBootLoader")]
90impl VZLinuxBootLoader {
91 extern_methods!(
92 #[unsafe(method(new))]
93 #[unsafe(method_family = new)]
94 pub unsafe fn new() -> Retained<Self>;
95
96 #[unsafe(method(init))]
97 #[unsafe(method_family = init)]
98 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
99 );
100}