mirror of
https://github.com/ziglang/zig.git
synced 2025-12-26 08:03:08 +00:00
std/os/uefi: Add FileSystemInfo
This commit is contained in:
parent
b6e1613e58
commit
608fceffc4
@ -14,6 +14,7 @@ pub const MessagingDevicePath = @import("protocols/device_path_protocol.zig").Me
|
||||
pub const SimpleFileSystemProtocol = @import("protocols/simple_file_system_protocol.zig").SimpleFileSystemProtocol;
|
||||
pub const FileProtocol = @import("protocols/file_protocol.zig").FileProtocol;
|
||||
pub const FileInfo = @import("protocols/file_protocol.zig").FileInfo;
|
||||
pub const FileSystemInfo = @import("protocols/file_protocol.zig").FileSystemInfo;
|
||||
|
||||
pub const InputKey = @import("protocols/simple_text_input_ex_protocol.zig").InputKey;
|
||||
pub const KeyData = @import("protocols/simple_text_input_ex_protocol.zig").KeyData;
|
||||
|
||||
@ -172,3 +172,25 @@ pub const FileInfo = extern struct {
|
||||
.node = [_]u8{ 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b },
|
||||
};
|
||||
};
|
||||
|
||||
pub const FileSystemInfo = extern struct {
|
||||
size: u64,
|
||||
read_only: bool,
|
||||
volume_size: u64,
|
||||
free_space: u64,
|
||||
block_size: u32,
|
||||
_volume_label: u16,
|
||||
|
||||
pub fn getVolumeLabel(self: *const FileSystemInfo) [*:0]const u16 {
|
||||
return @ptrCast([*:0]const u16, &self._volume_label);
|
||||
}
|
||||
|
||||
pub const guid align(8) = Guid{
|
||||
.time_low = 0x09576e93,
|
||||
.time_mid = 0x6d3f,
|
||||
.time_high_and_version = 0x11d2,
|
||||
.clock_seq_high_and_reserved = 0x8e,
|
||||
.clock_seq_low = 0x39,
|
||||
.node = [_]u8{ 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b },
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user