Skip to content

Commit 96fa66a

Browse files
Add Revision to uefi-raw and use it from uefi
One API change: the struct's one field is now public. This fits better with uefi-raw, and doesn't cause any problems for the re-export in uefi.
1 parent bfa0f01 commit 96fa66a

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
number of new `Guid` methods.
4444
- The `MEMORY_DESCRIPTOR_VERSION` constant has been moved to
4545
`MemoryDescriptor::VERSION`.
46+
- The `Revision` struct's one field is now public.
4647

4748
## uefi-macros - [Unreleased]
4849

uefi-raw/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
mod enums;
1919

2020
pub mod protocol;
21+
pub mod table;
2122

2223
mod status;
2324

uefi-raw/src/table/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! Standard UEFI tables.
2+
3+
mod revision;
4+
5+
pub use revision::Revision;

uefi/src/table/revision.rs renamed to uefi-raw/src/table/revision.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use core::fmt;
3232
/// ```
3333
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
3434
#[repr(transparent)]
35-
pub struct Revision(u32);
35+
pub struct Revision(pub u32);
3636

3737
// Allow missing docs, there's nothing useful to document about these
3838
// constants.

uefi/src/table/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ pub trait Table {
1010
mod header;
1111
pub use self::header::Header;
1212

13-
mod revision;
14-
pub use self::revision::Revision;
15-
1613
mod system;
1714
pub use self::system::{Boot, Runtime, SystemTable};
1815

1916
pub mod boot;
2017
pub mod runtime;
2118

2219
pub mod cfg;
20+
21+
pub use uefi_raw::table::Revision;

0 commit comments

Comments
 (0)