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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "VZBootLoader")]
    pub struct VZLinuxBootLoader;

    #[cfg(feature = "VZBootLoader")]
    unsafe impl ClassType for VZLinuxBootLoader {
        #[inherits(NSObject)]
        type Super = VZBootLoader;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "VZBootLoader")]
unsafe impl NSCopying for VZLinuxBootLoader {}

#[cfg(feature = "VZBootLoader")]
unsafe impl NSObjectProtocol for VZLinuxBootLoader {}

extern_methods!(
    #[cfg(feature = "VZBootLoader")]
    unsafe impl VZLinuxBootLoader {
        #[method_id(@__retain_semantics Init initWithKernelURL:)]
        pub unsafe fn initWithKernelURL(
            this: Allocated<Self>,
            kernel_url: &NSURL,
        ) -> Retained<Self>;

        #[method_id(@__retain_semantics Other kernelURL)]
        pub unsafe fn kernelURL(&self) -> Retained<NSURL>;

        #[method(setKernelURL:)]
        pub unsafe fn setKernelURL(&self, kernel_url: &NSURL);

        #[method_id(@__retain_semantics Other commandLine)]
        pub unsafe fn commandLine(&self) -> Retained<NSString>;

        #[method(setCommandLine:)]
        pub unsafe fn setCommandLine(&self, command_line: &NSString);

        #[method_id(@__retain_semantics Other initialRamdiskURL)]
        pub unsafe fn initialRamdiskURL(&self) -> Option<Retained<NSURL>>;

        #[method(setInitialRamdiskURL:)]
        pub unsafe fn setInitialRamdiskURL(&self, initial_ramdisk_url: Option<&NSURL>);
    }
);

extern_methods!(
    /// Methods declared on superclass `VZBootLoader`
    #[cfg(feature = "VZBootLoader")]
    unsafe impl VZLinuxBootLoader {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Retained<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    }
);