@@ -25,7 +25,7 @@ pub use uefi_raw::table::boot::{
25
25
26
26
/// Global image handle. This is only set by `BootServices::set_image_handle`,
27
27
/// and it is only read by `BootServices::image_handle`.
28
- static IMAGE_HANDLE : AtomicPtr < c_void > = AtomicPtr :: new ( ptr:: null_mut ( ) ) ;
28
+ pub ( crate ) static IMAGE_HANDLE : AtomicPtr < c_void > = AtomicPtr :: new ( ptr:: null_mut ( ) ) ;
29
29
30
30
/// Size in bytes of a UEFI page.
31
31
///
@@ -1606,7 +1606,7 @@ impl Align for MemoryDescriptor {
1606
1606
/// If the memory map changes, this value is no longer valid.
1607
1607
#[ derive( Debug , Copy , Clone , Eq , PartialEq ) ]
1608
1608
#[ repr( C ) ]
1609
- pub struct MemoryMapKey ( usize ) ;
1609
+ pub struct MemoryMapKey ( pub ( crate ) usize ) ;
1610
1610
1611
1611
/// A structure containing the size of a memory descriptor and the size of the
1612
1612
/// memory map.
@@ -1638,12 +1638,12 @@ pub struct MemoryMapSize {
1638
1638
/// [0]: https://github.com/tianocore/edk2/blob/7142e648416ff5d3eac6c6d607874805f5de0ca8/MdeModulePkg/Core/PiSmmCore/Page.c#L1059
1639
1639
#[ derive( Debug ) ]
1640
1640
pub struct MemoryMap < ' buf > {
1641
- key : MemoryMapKey ,
1642
- buf : & ' buf mut [ u8 ] ,
1641
+ pub ( crate ) key : MemoryMapKey ,
1642
+ pub ( crate ) buf : & ' buf mut [ u8 ] ,
1643
1643
/// Usually bound to the size of a [`MemoryDescriptor`] but can indicate if
1644
1644
/// this field is ever extended by a new UEFI standard.
1645
- entry_size : usize ,
1646
- len : usize ,
1645
+ pub ( crate ) entry_size : usize ,
1646
+ pub ( crate ) len : usize ,
1647
1647
}
1648
1648
1649
1649
impl < ' buf > MemoryMap < ' buf > {
@@ -1863,7 +1863,8 @@ impl<'guid> SearchType<'guid> {
1863
1863
}
1864
1864
1865
1865
/// Raw event notification function
1866
- type EventNotifyFn = unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
1866
+ pub ( crate ) type EventNotifyFn =
1867
+ unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
1867
1868
1868
1869
/// Timer events manipulation.
1869
1870
#[ derive( Debug ) ]
@@ -1962,7 +1963,7 @@ impl<'a> HandleBuffer<'a> {
1962
1963
/// with [`BootServices::locate_handle`] via [`SearchType::ByRegisterNotify`].
1963
1964
#[ derive( Debug , Clone , Copy ) ]
1964
1965
#[ repr( transparent) ]
1965
- pub struct ProtocolSearchKey ( NonNull < c_void > ) ;
1966
+ pub struct ProtocolSearchKey ( pub ( crate ) NonNull < c_void > ) ;
1966
1967
1967
1968
#[ cfg( test) ]
1968
1969
mod tests {
0 commit comments