Function registerProtocolNotify [src]

Prototype

pub fn registerProtocolNotify( self: *BootServices, Protocol: type, event: Event, ) RegisterProtocolNotifyError!EventRegistration

Parameters

self: *BootServicesProtocol: typeevent: Event

Possible Errors

InvalidParameter
OutOfResources
Unexpected UnexpectedError

Source

pub fn registerProtocolNotify( self: *BootServices, Protocol: type, event: Event, ) RegisterProtocolNotifyError!EventRegistration { if (!@hasDecl(Protocol, "guid")) @compileError("Protocol is missing guid"); var registration: EventRegistration = undefined; switch (self._registerProtocolNotify( &Protocol.guid, event, ®istration, )) { .success => return registration, .out_of_resources => return error.OutOfResources, .invalid_parameter => return error.InvalidParameter, else => |status| return uefi.unexpectedStatus(status), } }