Skip to content

Commit

Permalink
Declare GUIDs using macro
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd committed Dec 14, 2024
1 parent 5aea5d6 commit 9221b51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use core::ptr;
use std::proto::Protocol;
use std::prelude::*;

pub const RNG_PROTOCOL_GUID: Guid = Guid(0x3152bca5, 0xeade, 0x433d, [0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44]);
pub const RNG_PROTOCOL_GUID: Guid = guid!("3152bca5-eade-433d-862e-c01cdc291f44");

pub struct Rng(pub &'static mut RngProtocol);

Expand Down
2 changes: 1 addition & 1 deletion src/security.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ extern "efiapi" fn run() -> bool {
true
}

pub const SYSTEM76_SECURITY_PROTOCOL_GUID: Guid = Guid(0x764247c4, 0xa859, 0x4a6b, [0xb5, 0x00, 0xed, 0x5d, 0x7a, 0x70, 0x7d, 0xd4]);
pub const SYSTEM76_SECURITY_PROTOCOL_GUID: Guid = guid!("764247c4-a859-4a6b-b500-ed5d7a707dd4");
pub struct System76SecurityProtocol {
#[allow(dead_code)]
pub Run: extern "efiapi" fn() -> bool,
Expand Down

0 comments on commit 9221b51

Please sign in to comment.