Function getEdid [src]

Returns policy information and potentially a replacement EDID for the specified video output device.

Prototype

pub fn getEdid(self: *const Override, handle: Handle) GetEdidError!Edid

Parameters

self: *const Overridehandle: Handle

Possible Errors

Unexpected UnexpectedError
Unsupported

Source

pub fn getEdid(self: *const Override, handle: Handle) GetEdidError!Edid { var size: usize = undefined; var ptr: ?[*]u8 = undefined; var attributes: Attributes = undefined; switch (self._get_edid(self, &handle, &attributes, &size, &ptr)) { .success => {}, .unsupported => return Error.Unsupported, else => |status| return uefi.unexpectedStatus(status), } return .{ .attributes = attributes, .edid = if (ptr) |p| p[0..size] else null, }; }