@@ -26,7 +26,7 @@ pub use uefi_raw::table::boot::{
26
26
27
27
/// Global image handle. This is only set by `BootServices::set_image_handle`,
28
28
/// and it is only read by `BootServices::image_handle`.
29
- static IMAGE_HANDLE : AtomicPtr < c_void > = AtomicPtr :: new ( ptr:: null_mut ( ) ) ;
29
+ pub ( crate ) static IMAGE_HANDLE : AtomicPtr < c_void > = AtomicPtr :: new ( ptr:: null_mut ( ) ) ;
30
30
31
31
/// Size in bytes of a UEFI page.
32
32
///
@@ -1636,7 +1636,7 @@ impl Align for MemoryDescriptor {
1636
1636
/// If the memory map changes, this value is no longer valid.
1637
1637
#[ derive( Debug , Copy , Clone , Eq , PartialEq ) ]
1638
1638
#[ repr( C ) ]
1639
- pub struct MemoryMapKey ( usize ) ;
1639
+ pub struct MemoryMapKey ( pub ( crate ) usize ) ;
1640
1640
1641
1641
/// The backing memory for the UEFI memory app on the UEFI heap, allocated using
1642
1642
/// the UEFI boot services allocator. This occupied memory will also be
@@ -2064,10 +2064,10 @@ impl IndexMut<usize> for MemoryMapRefMut<'_> {
2064
2064
#[ derive( Debug ) ]
2065
2065
pub struct MemoryMapOwned {
2066
2066
/// Backing memory, properly initialized at this point.
2067
- buf : MemoryMapBackingMemory ,
2068
- key : MemoryMapKey ,
2069
- meta : MemoryMapMeta ,
2070
- len : usize ,
2067
+ pub ( crate ) buf : MemoryMapBackingMemory ,
2068
+ pub ( crate ) key : MemoryMapKey ,
2069
+ pub ( crate ) meta : MemoryMapMeta ,
2070
+ pub ( crate ) len : usize ,
2071
2071
}
2072
2072
2073
2073
impl MemoryMapOwned {
@@ -2210,7 +2210,8 @@ impl<'guid> SearchType<'guid> {
2210
2210
}
2211
2211
2212
2212
/// Raw event notification function
2213
- type EventNotifyFn = unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
2213
+ pub ( crate ) type EventNotifyFn =
2214
+ unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
2214
2215
2215
2216
/// Timer events manipulation.
2216
2217
#[ derive( Debug ) ]
@@ -2309,7 +2310,7 @@ impl<'a> HandleBuffer<'a> {
2309
2310
/// with [`BootServices::locate_handle`] via [`SearchType::ByRegisterNotify`].
2310
2311
#[ derive( Debug , Clone , Copy ) ]
2311
2312
#[ repr( transparent) ]
2312
- pub struct ProtocolSearchKey ( NonNull < c_void > ) ;
2313
+ pub struct ProtocolSearchKey ( pub ( crate ) NonNull < c_void > ) ;
2313
2314
2314
2315
#[ cfg( test) ]
2315
2316
mod tests_mmap_artificial {
0 commit comments