repo_transaction_stats: move to a manual implementation

This moves `RepoTransactionStats` into a manually implemented
source file in order to provide getters to expose relevant
fields.
This commit is contained in:
Luca BRUNO authored and Colin Walters committed 2022-05-06 12:53:56 -04:00
1 parent bd843b2eae
commit 78ca01c4e3
5 files changed
+51 -28

No files matched your search

-3
View File
@@ -108,9 +108,6 @@ mod repo_finder_result;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder_result::RepoFinderResult;
mod repo_transaction_stats;
pub use self::repo_transaction_stats::RepoTransactionStats;
mod enums;
pub use self::enums::DeploymentUnlockedState;
pub use self::enums::GpgSignatureAttr;
@@ -1,19 +0,0 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use gobject_sys;
use ostree_sys;
glib_wrapper! {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct RepoTransactionStats(Boxed<ostree_sys::OstreeRepoTransactionStats>);
match fn {
copy => |ptr| gobject_sys::g_boxed_copy(ostree_sys::ostree_repo_transaction_stats_get_type(), ptr as *mut _) as *mut ostree_sys::OstreeRepoTransactionStats,
free => |ptr| gobject_sys::g_boxed_free(ostree_sys::ostree_repo_transaction_stats_get_type(), ptr as *mut _),
init => |_ptr| (),
clear => |_ptr| (),
get_type => || ostree_sys::ostree_repo_transaction_stats_get_type(),
}
}