Skip to content

Commit

Permalink
aya: make KernelVersion::code public
Browse files Browse the repository at this point in the history
  • Loading branch information
nrxus authored and alessandrod committed Nov 18, 2023
1 parent 958931e commit 68ba020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aya/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions xtask/public-api/aya.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68ba020

Please sign in to comment.