فهرست منبع

aya: make KernelVersion::code public

Andrés Medina 1 سال پیش
والد
کامیت
68ba02002f
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      aya/src/util.rs
  2. 1 0
      xtask/public-api/aya.txt

+ 1 - 1
aya/src/util.rs

@@ -53,7 +53,7 @@ impl KernelVersion {
     }
 
     /// The equivalent of LINUX_VERSION_CODE.
-    pub(crate) fn code(self) -> u32 {
+    pub fn code(self) -> u32 {
         let Self {
             major,
             minor,

+ 1 - 0
xtask/public-api/aya.txt

@@ -7477,6 +7477,7 @@ pub fn aya::programs::loaded_programs() -> impl core::iter::traits::iterator::It
 pub mod aya::util
 pub struct aya::util::KernelVersion
 impl aya::util::KernelVersion
+pub fn aya::util::KernelVersion::code(self) -> u32
 pub fn aya::util::KernelVersion::current() -> core::result::Result<Self, impl core::error::Error>
 pub fn aya::util::KernelVersion::new(major: u8, minor: u8, patch: u16) -> Self
 impl core::clone::Clone for aya::util::KernelVersion