mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
47 lines
1.8 KiB
Zig
47 lines
1.8 KiB
Zig
const uefi = @import("std").os.uefi;
|
|
const Guid = uefi.Guid;
|
|
const Event = uefi.Event;
|
|
const Status = uefi.Status;
|
|
|
|
pub const Ip6ConfigProtocol = extern struct {
|
|
_set_data: fn (*const Ip6ConfigProtocol, Ip6ConfigDataType, usize, *const c_void) callconv(.C) Status,
|
|
_get_data: fn (*const Ip6ConfigProtocol, Ip6ConfigDataType, *usize, ?*const c_void) callconv(.C) Status,
|
|
_register_data_notify: fn (*const Ip6ConfigProtocol, Ip6ConfigDataType, Event) callconv(.C) Status,
|
|
_unregister_data_notify: fn (*const Ip6ConfigProtocol, Ip6ConfigDataType, Event) callconv(.C) Status,
|
|
|
|
pub fn setData(self: *const Ip6ConfigProtocol, data_type: Ip6ConfigDataType, data_size: usize, data: *const c_void) Status {
|
|
return self._set_data(self, data_type, data_size, data);
|
|
}
|
|
|
|
pub fn getData(self: *const Ip6ConfigProtocol, data_type: Ip6ConfigDataType, data_size: *usize, data: ?*const c_void) Status {
|
|
return self._get_data(self, data_type, data_size, data);
|
|
}
|
|
|
|
pub fn registerDataNotify(self: *const Ip6ConfigProtocol, data_type: Ip6ConfigDataType, event: Event) Status {
|
|
return self._register_data_notify(self, data_type, event);
|
|
}
|
|
|
|
pub fn unregisterDataNotify(self: *const Ip6ConfigProtocol, data_type: Ip6ConfigDataType, event: Event) Status {
|
|
return self._unregister_data_notify(self, data_type, event);
|
|
}
|
|
|
|
pub const guid align(8) = Guid{
|
|
.time_low = 0x937fe521,
|
|
.time_mid = 0x95ae,
|
|
.time_high_and_version = 0x4d1a,
|
|
.clock_seq_high_and_reserved = 0x89,
|
|
.clock_seq_low = 0x29,
|
|
.node = [_]u8{ 0x48, 0xbc, 0xd9, 0x0a, 0xd3, 0x1a },
|
|
};
|
|
};
|
|
|
|
pub const Ip6ConfigDataType = enum(u32) {
|
|
InterfaceInfo,
|
|
AltInterfaceId,
|
|
Policy,
|
|
DupAddrDetectTransmits,
|
|
ManualAddress,
|
|
Gateway,
|
|
DnsServer,
|
|
};
|