@@ -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
///
@@ -1602,7 +1602,7 @@ impl Align for MemoryDescriptor {
1602
1602
/// If the memory map changes, this value is no longer valid.
1603
1603
#[ derive( Debug , Copy , Clone , Eq , PartialEq ) ]
1604
1604
#[ repr( C ) ]
1605
- pub struct MemoryMapKey ( usize ) ;
1605
+ pub struct MemoryMapKey ( pub ( crate ) usize ) ;
1606
1606
1607
1607
/// A structure containing the size of a memory descriptor and the size of the
1608
1608
/// memory map.
@@ -1624,10 +1624,10 @@ pub struct MemoryMapSize {
1624
1624
/// map, you manually have to call [`MemoryMap::sort`] first.
1625
1625
#[ derive( Debug ) ]
1626
1626
pub struct MemoryMap < ' buf > {
1627
- key : MemoryMapKey ,
1628
- buf : & ' buf mut [ u8 ] ,
1629
- entry_size : usize ,
1630
- len : usize ,
1627
+ pub ( crate ) key : MemoryMapKey ,
1628
+ pub ( crate ) buf : & ' buf mut [ u8 ] ,
1629
+ pub ( crate ) entry_size : usize ,
1630
+ pub ( crate ) len : usize ,
1631
1631
}
1632
1632
1633
1633
impl < ' buf > MemoryMap < ' buf > {
@@ -1839,7 +1839,8 @@ impl<'guid> SearchType<'guid> {
1839
1839
}
1840
1840
1841
1841
/// Raw event notification function
1842
- type EventNotifyFn = unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
1842
+ pub ( crate ) type EventNotifyFn =
1843
+ unsafe extern "efiapi" fn ( event : Event , context : Option < NonNull < c_void > > ) ;
1843
1844
1844
1845
/// Timer events manipulation.
1845
1846
#[ derive( Debug ) ]
@@ -1938,7 +1939,7 @@ impl<'a> HandleBuffer<'a> {
1938
1939
/// with [`BootServices::locate_handle`] via [`SearchType::ByRegisterNotify`].
1939
1940
#[ derive( Debug , Clone , Copy ) ]
1940
1941
#[ repr( transparent) ]
1941
- pub struct ProtocolSearchKey ( NonNull < c_void > ) ;
1942
+ pub struct ProtocolSearchKey ( pub ( crate ) NonNull < c_void > ) ;
1942
1943
1943
1944
#[ cfg( test) ]
1944
1945
mod tests {
0 commit comments