|
2 | 2 |
|
3 | 3 | use crate::apm::ApmTag;
|
4 | 4 | use crate::bootdev::BootdevTag;
|
| 5 | +use crate::network::NetworkTag; |
5 | 6 | use crate::{
|
6 | 7 | BasicMemoryInfoTag, BootInformationHeader, BootLoaderNameTag, CommandLineTag,
|
7 | 8 | EFIBootServicesNotExitedTag, EFIImageHandle32Tag, EFIImageHandle64Tag, EFIMemoryMapTag,
|
@@ -31,7 +32,7 @@ pub struct Builder {
|
31 | 32 | smbios: Vec<Box<SmbiosTag>>,
|
32 | 33 | rsdpv1: Option<RsdpV1Tag>,
|
33 | 34 | rsdpv2: Option<RsdpV2Tag>,
|
34 |
| - // missing: network |
| 35 | + network: Option<Box<NetworkTag>>, |
35 | 36 | efi_mmap: Option<Box<EFIMemoryMapTag>>,
|
36 | 37 | efi_bs: Option<EFIBootServicesNotExitedTag>,
|
37 | 38 | efi32_ih: Option<EFIImageHandle32Tag>,
|
@@ -67,6 +68,7 @@ impl Builder {
|
67 | 68 | rsdpv1: None,
|
68 | 69 | rsdpv2: None,
|
69 | 70 | efi_mmap: None,
|
| 71 | + network: None, |
70 | 72 | efi_bs: None,
|
71 | 73 | efi32_ih: None,
|
72 | 74 | efi64_ih: None,
|
@@ -187,6 +189,13 @@ impl Builder {
|
187 | 189 | self
|
188 | 190 | }
|
189 | 191 |
|
| 192 | + /// Sets the [`NetworkTag`] tag. |
| 193 | + #[must_use] |
| 194 | + pub fn network(mut self, network: Box<NetworkTag>) -> Self { |
| 195 | + self.network = Some(network); |
| 196 | + self |
| 197 | + } |
| 198 | + |
190 | 199 | /// Sets the [`EFIBootServicesNotExitedTag`] tag.
|
191 | 200 | #[must_use]
|
192 | 201 | pub const fn efi_bs(mut self, efi_bs: EFIBootServicesNotExitedTag) -> Self {
|
|
0 commit comments