Update gir file
This commit is contained in:
parent
f5c255b4b4
commit
d2e384a39f
|
|
@ -81,4 +81,5 @@ v2018_7 = ["v2018_6", "ostree-sys/v2018_7"]
|
|||
v2018_9 = ["v2018_7", "ostree-sys/v2018_9"]
|
||||
v2019_2 = ["v2018_9", "ostree-sys/v2019_2"]
|
||||
v2019_3 = ["v2019_2", "ostree-sys/v2019_3"]
|
||||
latest = ["v2019_3"]
|
||||
v2019_4 = ["v2019_3", "ostree-sys/v2019_4"]
|
||||
latest = ["v2019_4"]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -94,6 +94,7 @@ bitflags! {
|
|||
pub struct RepoCommitState: u32 {
|
||||
const NORMAL = 0;
|
||||
const PARTIAL = 1;
|
||||
const FSCK_PARTIAL = 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -159,16 +159,16 @@ pub fn create_directory_metadata(dir_info: &gio::FileInfo, xattrs: Option<&glib:
|
|||
}
|
||||
}
|
||||
|
||||
//pub fn diff_dirs<P: IsA<gio::File>, Q: IsA<gio::File>, R: IsA<gio::Cancellable>>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 24 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, cancellable: Option<&R>) -> Result<(), Error> {
|
||||
//pub fn diff_dirs<P: IsA<gio::File>, Q: IsA<gio::File>, R: IsA<gio::Cancellable>>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 25 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, cancellable: Option<&R>) -> Result<(), Error> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_diff_dirs() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v2017_4", feature = "dox"))]
|
||||
//pub fn diff_dirs_with_options<P: IsA<gio::File>, Q: IsA<gio::File>, R: IsA<gio::Cancellable>>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 24 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, options: /*Ignored*/Option<&mut DiffDirsOptions>, cancellable: Option<&R>) -> Result<(), Error> {
|
||||
//pub fn diff_dirs_with_options<P: IsA<gio::File>, Q: IsA<gio::File>, R: IsA<gio::Cancellable>>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 25 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, options: /*Ignored*/Option<&mut DiffDirsOptions>, cancellable: Option<&R>) -> Result<(), Error> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_diff_dirs_with_options() }
|
||||
//}
|
||||
|
||||
//pub fn diff_print<P: IsA<gio::File>, Q: IsA<gio::File>>(a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 24 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }) {
|
||||
//pub fn diff_print<P: IsA<gio::File>, Q: IsA<gio::File>>(a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 25 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }) {
|
||||
// unsafe { TODO: call ostree_sys:ostree_diff_print() }
|
||||
//}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ impl GpgVerifyResult {
|
|||
}
|
||||
}
|
||||
|
||||
//pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 26 }) -> Option<glib::Variant> {
|
||||
//pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 27 }) -> Option<glib::Variant> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_gpg_verify_result_get() }
|
||||
//}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ pub trait MutableTreeExt: 'static {
|
|||
|
||||
fn get_metadata_checksum(&self) -> Option<GString>;
|
||||
|
||||
//fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 };
|
||||
//fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 39 };
|
||||
|
||||
fn lookup(&self, name: &str) -> Result<(GString, MutableTree), Error>;
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ impl<O: IsA<MutableTree>> MutableTreeExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 } {
|
||||
//fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 39 } {
|
||||
// unsafe { TODO: call ostree_sys:ostree_mutable_tree_get_subdirs() }
|
||||
//}
|
||||
|
||||
|
|
|
|||
|
|
@ -426,6 +426,15 @@ impl Repo {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v2019_4", feature = "dox"))]
|
||||
pub fn mark_commit_partial_reason(&self, checksum: &str, is_partial: bool, in_state: RepoCommitState) -> Result<(), Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ostree_sys::ostree_repo_mark_commit_partial_reason(self.to_glib_none().0, checksum.to_glib_none().0, is_partial.to_glib(), in_state.to_glib(), &mut error);
|
||||
if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn open<P: IsA<gio::Cancellable>>(&self, cancellable: Option<&P>) -> Result<(), Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ impl Sysroot {
|
|||
}
|
||||
}
|
||||
|
||||
//pub fn get_deployments(&self) -> /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 19 } {
|
||||
//pub fn get_deployments(&self) -> /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 20 } {
|
||||
// unsafe { TODO: call ostree_sys:ostree_sysroot_get_deployments() }
|
||||
//}
|
||||
|
||||
|
|
@ -328,12 +328,12 @@ impl Sysroot {
|
|||
}
|
||||
}
|
||||
|
||||
//pub fn write_deployments<P: IsA<gio::Cancellable>>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 19 }, cancellable: Option<&P>) -> Result<(), Error> {
|
||||
//pub fn write_deployments<P: IsA<gio::Cancellable>>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 20 }, cancellable: Option<&P>) -> Result<(), Error> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_sysroot_write_deployments() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v2017_4", feature = "dox"))]
|
||||
//pub fn write_deployments_with_options<P: IsA<gio::Cancellable>>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 19 }, opts: /*Ignored*/&mut SysrootWriteDeploymentsOpts, cancellable: Option<&P>) -> Result<(), Error> {
|
||||
//pub fn write_deployments_with_options<P: IsA<gio::Cancellable>>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 20 }, opts: /*Ignored*/&mut SysrootWriteDeploymentsOpts, cancellable: Option<&P>) -> Result<(), Error> {
|
||||
// unsafe { TODO: call ostree_sys:ostree_sysroot_write_deployments_with_options() }
|
||||
//}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ v2018_7 = ["v2018_6"]
|
|||
v2018_9 = ["v2018_7"]
|
||||
v2019_2 = ["v2018_9"]
|
||||
v2019_3 = ["v2019_2"]
|
||||
v2019_4 = ["v2019_3"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
|
|
@ -63,4 +64,4 @@ repository = "https://gitlab.com/fkrull/ostree-rs"
|
|||
version = "0.5.0"
|
||||
|
||||
["package.metadata.docs.rs"]
|
||||
features = ["dox", "v2019_3"]
|
||||
features = ["dox", "v2019_4"]
|
||||
|
|
|
|||
|
|
@ -31,7 +31,9 @@ fn main() {
|
|||
fn find() -> Result<(), Error> {
|
||||
let package_name = "ostree-1";
|
||||
let shared_libs = ["ostree-1"];
|
||||
let version = if cfg!(feature = "v2019_3") {
|
||||
let version = if cfg!(feature = "v2019_4") {
|
||||
"2019.4"
|
||||
} else if cfg!(feature = "v2019_3") {
|
||||
"2019.3"
|
||||
} else if cfg!(feature = "v2019_2") {
|
||||
"2019.2"
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL: OstreeRepoCommitMo
|
|||
pub type OstreeRepoCommitState = c_uint;
|
||||
pub const OSTREE_REPO_COMMIT_STATE_NORMAL: OstreeRepoCommitState = 0;
|
||||
pub const OSTREE_REPO_COMMIT_STATE_PARTIAL: OstreeRepoCommitState = 1;
|
||||
pub const OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL: OstreeRepoCommitState = 2;
|
||||
|
||||
pub type OstreeRepoCommitTraverseFlags = c_uint;
|
||||
pub const OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE: OstreeRepoCommitTraverseFlags = 1;
|
||||
|
|
@ -247,6 +248,11 @@ pub struct _OstreeBootloaderUboot(c_void);
|
|||
|
||||
pub type OstreeBootloaderUboot = *mut _OstreeBootloaderUboot;
|
||||
|
||||
#[repr(C)]
|
||||
pub struct _OstreeBootloaderZipl(c_void);
|
||||
|
||||
pub type OstreeBootloaderZipl = *mut _OstreeBootloaderZipl;
|
||||
|
||||
#[repr(C)]
|
||||
pub struct _OstreeChecksumInputStreamPrivate(c_void);
|
||||
|
||||
|
|
@ -1213,6 +1219,8 @@ extern "C" {
|
|||
pub fn ostree_repo_load_variant_if_exists(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_variant: *mut *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
|
||||
#[cfg(any(feature = "v2017_15", feature = "dox"))]
|
||||
pub fn ostree_repo_mark_commit_partial(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, error: *mut *mut glib::GError) -> gboolean;
|
||||
#[cfg(any(feature = "v2019_4", feature = "dox"))]
|
||||
pub fn ostree_repo_mark_commit_partial_reason(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, in_state: OstreeRepoCommitState, error: *mut *mut glib::GError) -> gboolean;
|
||||
pub fn ostree_repo_open(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
|
||||
pub fn ostree_repo_prepare_transaction(self_: *mut OstreeRepo, out_transaction_resume: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
|
||||
pub fn ostree_repo_prune(self_: *mut OstreeRepo, flags: OstreeRepoPruneFlags, depth: c_int, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
|
||||
|
|
|
|||
|
|
@ -355,6 +355,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
|
|||
("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES", "2"),
|
||||
("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE", "0"),
|
||||
("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS", "1"),
|
||||
("(guint) OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL", "2"),
|
||||
("(guint) OSTREE_REPO_COMMIT_STATE_NORMAL", "0"),
|
||||
("(guint) OSTREE_REPO_COMMIT_STATE_PARTIAL", "1"),
|
||||
("(guint) OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE", "1"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue