Skip to content

Commit

Permalink
rust: Add a stateroot() alias in the Rust bindings
Browse files Browse the repository at this point in the history
Easy to do here, super annoying in C.
  • Loading branch information
cgwalters committed Nov 9, 2023
1 parent 2c774de commit 3535b58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rust-bindings/src/deployment.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use glib::GString;

use crate::Deployment;

impl Deployment {
/// Access the name of the deployment stateroot.
pub fn stateroot(&self) -> GString {
self.osname()
}
}
1 change: 1 addition & 0 deletions rust-bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ mod object_name;
pub use crate::object_name::*;
mod object_details;
pub use crate::object_details::*;
mod deployment;
mod repo;
pub use crate::repo::*;
#[cfg(any(feature = "v2016_8", feature = "dox"))]
Expand Down

0 comments on commit 3535b58

Please sign in to comment.