From 45eab127a6c2f9be4eb31f6c5b899b802cfbb8f4 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Sat, 29 Sep 2018 16:40:59 +0200 Subject: [PATCH] Generate --- .../rust/libostree/src/auto/enums.rs | 94 ++ rust-bindings/rust/libostree/src/auto/mod.rs | 16 + rust-bindings/rust/libostree/src/auto/repo.rs | 809 ++++++++++++++++++ .../rust/libostree/src/auto/versions.txt | 2 + 4 files changed, 921 insertions(+) create mode 100644 rust-bindings/rust/libostree/src/auto/enums.rs create mode 100644 rust-bindings/rust/libostree/src/auto/mod.rs create mode 100644 rust-bindings/rust/libostree/src/auto/repo.rs create mode 100644 rust-bindings/rust/libostree/src/auto/versions.txt diff --git a/rust-bindings/rust/libostree/src/auto/enums.rs b/rust-bindings/rust/libostree/src/auto/enums.rs new file mode 100644 index 00000000..fd389246 --- /dev/null +++ b/rust-bindings/rust/libostree/src/auto/enums.rs @@ -0,0 +1,94 @@ +// 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 ffi; +use glib::translate::*; + +#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] +#[derive(Clone, Copy)] +pub enum ObjectType { + File, + DirTree, + DirMeta, + Commit, + TombstoneCommit, + CommitMeta, + PayloadLink, + #[doc(hidden)] + __Unknown(i32), +} + +#[doc(hidden)] +impl ToGlib for ObjectType { + type GlibType = ffi::OstreeObjectType; + + fn to_glib(&self) -> ffi::OstreeObjectType { + match *self { + ObjectType::File => ffi::OSTREE_OBJECT_TYPE_FILE, + ObjectType::DirTree => ffi::OSTREE_OBJECT_TYPE_DIR_TREE, + ObjectType::DirMeta => ffi::OSTREE_OBJECT_TYPE_DIR_META, + ObjectType::Commit => ffi::OSTREE_OBJECT_TYPE_COMMIT, + ObjectType::TombstoneCommit => ffi::OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT, + ObjectType::CommitMeta => ffi::OSTREE_OBJECT_TYPE_COMMIT_META, + ObjectType::PayloadLink => ffi::OSTREE_OBJECT_TYPE_PAYLOAD_LINK, + ObjectType::__Unknown(value) => value + } + } +} + +#[doc(hidden)] +impl FromGlib for ObjectType { + fn from_glib(value: ffi::OstreeObjectType) -> Self { + match value { + 1 => ObjectType::File, + 2 => ObjectType::DirTree, + 3 => ObjectType::DirMeta, + 4 => ObjectType::Commit, + 5 => ObjectType::TombstoneCommit, + 6 => ObjectType::CommitMeta, + 7 => ObjectType::PayloadLink, + value => ObjectType::__Unknown(value), + } + } +} + +#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] +#[derive(Clone, Copy)] +pub enum RepoMode { + Bare, + Archive, + BareUser, + BareUserOnly, + #[doc(hidden)] + __Unknown(i32), +} + +#[doc(hidden)] +impl ToGlib for RepoMode { + type GlibType = ffi::OstreeRepoMode; + + fn to_glib(&self) -> ffi::OstreeRepoMode { + match *self { + RepoMode::Bare => ffi::OSTREE_REPO_MODE_BARE, + RepoMode::Archive => ffi::OSTREE_REPO_MODE_ARCHIVE, + RepoMode::BareUser => ffi::OSTREE_REPO_MODE_BARE_USER, + RepoMode::BareUserOnly => ffi::OSTREE_REPO_MODE_BARE_USER_ONLY, + RepoMode::__Unknown(value) => value + } + } +} + +#[doc(hidden)] +impl FromGlib for RepoMode { + fn from_glib(value: ffi::OstreeRepoMode) -> Self { + match value { + 0 => RepoMode::Bare, + 1 => RepoMode::Archive, + 2 => RepoMode::BareUser, + 3 => RepoMode::BareUserOnly, + value => RepoMode::__Unknown(value), + } + } +} + diff --git a/rust-bindings/rust/libostree/src/auto/mod.rs b/rust-bindings/rust/libostree/src/auto/mod.rs new file mode 100644 index 00000000..a520b4f9 --- /dev/null +++ b/rust-bindings/rust/libostree/src/auto/mod.rs @@ -0,0 +1,16 @@ +// 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 + +mod repo; +pub use self::repo::Repo; +pub use self::repo::RepoExt; + +mod enums; +pub use self::enums::ObjectType; +pub use self::enums::RepoMode; + +#[doc(hidden)] +pub mod traits { + pub use super::RepoExt; +} diff --git a/rust-bindings/rust/libostree/src/auto/repo.rs b/rust-bindings/rust/libostree/src/auto/repo.rs new file mode 100644 index 00000000..62faa0e8 --- /dev/null +++ b/rust-bindings/rust/libostree/src/auto/repo.rs @@ -0,0 +1,809 @@ +// 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 RepoMode; +use ffi; +use glib; +use glib::StaticType; +use glib::Value; +use glib::object::IsA; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::mem; +use std::ptr; + +glib_wrapper! { + pub struct Repo(Object); + + match fn { + get_type => || ffi::ostree_repo_get_type(), + } +} + +impl Repo { + //pub fn new>(path: &P) -> Repo { + // unsafe { TODO: call ffi::ostree_repo_new() } + //} + + pub fn new_default() -> Repo { + unsafe { + from_glib_full(ffi::ostree_repo_new_default()) + } + } + + //pub fn new_for_sysroot_path, Q: IsA>(repo_path: &P, sysroot_path: &Q) -> Repo { + // unsafe { TODO: call ffi::ostree_repo_new_for_sysroot_path() } + //} + + //pub fn create_at<'a, P: Into>>(dfd: i32, path: &str, mode: RepoMode, options: /*Ignored*/&glib::Variant, cancellable: P, error: /*Ignored*/Option) -> Option { + // unsafe { TODO: call ffi::ostree_repo_create_at() } + //} + + //pub fn mode_from_string(mode: &str, out_mode: RepoMode, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_mode_from_string() } + //} + + //pub fn open_at<'a, P: Into>>(dfd: i32, path: &str, cancellable: P, error: /*Ignored*/Option) -> Option { + // unsafe { TODO: call ffi::ostree_repo_open_at() } + //} + + //pub fn pull_default_console_progress_changed>>(progress: /*Ignored*/&AsyncProgress, user_data: P) { + // unsafe { TODO: call ffi::ostree_repo_pull_default_console_progress_changed() } + //} + + //#[cfg(any(feature = "v2018_5", feature = "dox"))] + //pub fn traverse_new_parents() -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 } { + // unsafe { TODO: call ffi::ostree_repo_traverse_new_parents() } + //} + + //pub fn traverse_new_reachable() -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 } { + // unsafe { TODO: call ffi::ostree_repo_traverse_new_reachable() } + //} + + //#[cfg(any(feature = "v2018_5", feature = "dox"))] + //pub fn traverse_parents_get_commits(parents: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, object: /*Ignored*/&glib::Variant) -> Vec { + // unsafe { TODO: call ffi::ostree_repo_traverse_parents_get_commits() } + //} +} + +pub trait RepoExt { + //fn abort_transaction<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn add_gpg_signature_summary<'a, 'b, P: Into>, Q: Into>>(&self, key_id: &[&str], homedir: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn append_gpg_signature<'a, P: Into>>(&self, commit_checksum: &str, signature_bytes: /*Ignored*/&glib::Bytes, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn checkout_at<'a, 'b, P: Into>, Q: Into>>(&self, options: P, destination_dfd: i32, destination_path: &str, commit: &str, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn checkout_gc<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn checkout_tree<'a, P: IsA, Q: Into>>(&self, mode: /*Ignored*/RepoCheckoutMode, overwrite_mode: /*Ignored*/RepoCheckoutOverwriteMode, destination: &P, source: /*Ignored*/&RepoFile, source_info: /*Ignored*/&gio::FileInfo, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn checkout_tree_at<'a, 'b, P: Into>, Q: Into>>(&self, options: P, destination_dfd: i32, destination_path: &str, commit: &str, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn commit_transaction<'a, P: Into>>(&self, out_stats: /*Ignored*/RepoTransactionStats, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn copy_config(&self) -> /*Ignored*/Option; + + //fn create<'a, P: Into>>(&self, mode: RepoMode, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn delete_object<'a, P: Into>>(&self, objtype: ObjectType, sha256: &str, cancellable: P, error: /*Ignored*/Option) -> bool; + + #[cfg(any(feature = "v2017_12", feature = "dox"))] + fn equal(&self, b: &Repo) -> bool; + + //fn export_tree_to_archive<'a, P: Into>, Q: Into>>(&self, opts: /*Ignored*/&mut RepoExportArchiveOptions, root: /*Ignored*/&RepoFile, archive: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2017_15", feature = "dox"))] + //fn fsck_object<'a, P: Into>>(&self, objtype: ObjectType, sha256: &str, cancellable: P, error: /*Ignored*/Option) -> bool; + + #[cfg(any(feature = "v2018_6", feature = "dox"))] + fn get_collection_id(&self) -> Option; + + //fn get_config(&self) -> /*Ignored*/Option; + + fn get_dfd(&self) -> i32; + + fn get_disable_fsync(&self) -> bool; + + fn get_mode(&self) -> RepoMode; + + fn get_parent(&self) -> Option; + + //fn get_path(&self) -> /*Ignored*/Option; + + //fn get_remote_boolean_option(&self, remote_name: &str, option_name: &str, default_value: bool, error: /*Ignored*/Option) -> Result<(bool), Error>; + + //fn get_remote_list_option(&self, remote_name: &str, option_name: &str, error: /*Ignored*/Option) -> Result<(Vec), Error>; + + //fn get_remote_option<'a, P: Into>>(&self, remote_name: &str, option_name: &str, default_value: P, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn gpg_verify_data<'a, 'b, 'c, 'd, P: Into>, Q: IsA + 'b, R: Into>, S: IsA + 'c, T: Into>, U: Into>>(&self, remote_name: P, data: /*Ignored*/&glib::Bytes, signatures: /*Ignored*/&glib::Bytes, keyringdir: R, extra_keyring: T, cancellable: U, error: /*Ignored*/Option) -> /*Ignored*/Option; + + //fn has_object<'a, P: Into>>(&self, objtype: ObjectType, checksum: &str, cancellable: P, error: /*Ignored*/Option) -> Result<(bool), Error>; + + #[cfg(any(feature = "v2017_12", feature = "dox"))] + fn hash(&self) -> u32; + + //fn import_archive_to_mtree<'a, 'b, P: Into>, Q: Into>, R: Into>>(&self, opts: /*Ignored*/&mut RepoImportArchiveOptions, archive: P, mtree: /*Ignored*/&MutableTree, modifier: Q, cancellable: R, error: /*Ignored*/Option) -> bool; + + //fn import_object_from<'a, P: Into>>(&self, source: &Repo, objtype: ObjectType, checksum: &str, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn import_object_from_with_trust<'a, P: Into>>(&self, source: &Repo, objtype: ObjectType, checksum: &str, trusted: bool, cancellable: P, error: /*Ignored*/Option) -> bool; + + fn is_system(&self) -> bool; + + //fn is_writable(&self, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn list_collection_refs<'a, 'b, P: Into>, Q: Into>>(&self, match_collection_id: P, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 1, id: 0 }/TypeId { ns_id: 0, id: 28 }, flags: /*Ignored*/RepoListRefsExtFlags, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn list_commit_objects_starting_with<'a, P: Into>>(&self, start: &str, out_commits: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn list_objects<'a, P: Into>>(&self, flags: /*Ignored*/RepoListObjectsFlags, out_objects: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn list_refs<'a, 'b, P: Into>, Q: Into>>(&self, refspec_prefix: P, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn list_refs_ext<'a, 'b, P: Into>, Q: Into>>(&self, refspec_prefix: P, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }, flags: /*Ignored*/RepoListRefsExtFlags, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn list_static_delta_names<'a, P: Into>>(&self, out_deltas: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 0, id: 28 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2015_7", feature = "dox"))] + //fn load_commit(&self, checksum: &str, out_commit: /*Ignored*/glib::Variant, error: /*Ignored*/Option) -> Result<(/*Ignored*/RepoCommitState), Error>; + + //fn load_file<'a, P: Into>>(&self, checksum: &str, out_input: /*Ignored*/Option, out_file_info: /*Ignored*/Option, out_xattrs: /*Ignored*/Option, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn load_object_stream<'a, P: Into>>(&self, objtype: ObjectType, checksum: &str, out_input: /*Ignored*/gio::InputStream, cancellable: P, error: /*Ignored*/Option) -> Result<(u64), Error>; + + //fn load_variant(&self, objtype: ObjectType, sha256: &str, out_variant: /*Ignored*/glib::Variant, error: /*Ignored*/Option) -> bool; + + //fn load_variant_if_exists(&self, objtype: ObjectType, sha256: &str, out_variant: /*Ignored*/glib::Variant, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2017_15", feature = "dox"))] + //fn mark_commit_partial(&self, checksum: &str, is_partial: bool, error: /*Ignored*/Option) -> bool; + + //fn open<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn prepare_transaction<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> Result<(bool), Error>; + + //fn prune<'a, P: Into>>(&self, flags: /*Ignored*/RepoPruneFlags, depth: i32, cancellable: P, error: /*Ignored*/Option) -> Result<(i32, i32, u64), Error>; + + //fn prune_from_reachable<'a, P: Into>>(&self, options: /*Ignored*/&mut RepoPruneOptions, cancellable: P, error: /*Ignored*/Option) -> Result<(i32, i32, u64), Error>; + + //fn prune_static_deltas<'a, 'b, P: Into>, Q: Into>>(&self, commit: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn pull<'a, 'b, P: Into>, Q: Into>>(&self, remote_name: &str, refs_to_fetch: &[&str], flags: /*Ignored*/RepoPullFlags, progress: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn pull_one_dir<'a, 'b, P: Into>, Q: Into>>(&self, remote_name: &str, dir_to_pull: &str, refs_to_fetch: &[&str], flags: /*Ignored*/RepoPullFlags, progress: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn pull_with_options<'a, 'b, P: Into>, Q: Into>>(&self, remote_name_or_baseurl: &str, options: /*Ignored*/&glib::Variant, progress: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn query_object_storage_size<'a, P: Into>>(&self, objtype: ObjectType, sha256: &str, cancellable: P, error: /*Ignored*/Option) -> Result<(u64), Error>; + + //fn read_commit<'a, P: Into>>(&self, ref_: &str, out_root: /*Ignored*/gio::File, cancellable: P, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn read_commit_detached_metadata<'a, P: Into>>(&self, checksum: &str, out_metadata: /*Ignored*/glib::Variant, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn regenerate_summary<'a, 'b, P: Into>, Q: Into>>(&self, additional_metadata: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn reload_config<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn remote_add<'a, 'b, P: Into>, Q: Into>>(&self, name: &str, url: &str, options: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn remote_change<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: Into>, S: Into>>(&self, sysroot: Q, changeop: /*Ignored*/RepoRemoteChange, name: &str, url: &str, options: R, cancellable: S, error: /*Ignored*/Option) -> bool; + + //fn remote_delete<'a, P: Into>>(&self, name: &str, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn remote_fetch_summary<'a, P: Into>>(&self, name: &str, out_summary: /*Ignored*/glib::Bytes, out_signatures: /*Ignored*/glib::Bytes, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn remote_fetch_summary_with_options<'a, 'b, P: Into>, Q: Into>>(&self, name: &str, options: P, out_summary: /*Ignored*/glib::Bytes, out_signatures: /*Ignored*/glib::Bytes, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn remote_get_gpg_verify(&self, name: &str, error: /*Ignored*/Option) -> Result<(bool), Error>; + + //fn remote_get_gpg_verify_summary(&self, name: &str, error: /*Ignored*/Option) -> Result<(bool), Error>; + + //fn remote_get_url(&self, name: &str, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn remote_gpg_import<'a, 'b, P: IsA + 'a, Q: Into>, R: Into>, S: Into>>(&self, name: &str, source_stream: Q, key_ids: &[&str], out_imported: R, cancellable: S, error: /*Ignored*/Option) -> bool; + + fn remote_list(&self) -> Vec; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn remote_list_collection_refs<'a, P: Into>>(&self, remote_name: &str, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 1, id: 0 }/TypeId { ns_id: 0, id: 28 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn remote_list_refs<'a, P: Into>>(&self, remote_name: &str, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn resolve_collection_ref<'a, P: Into>>(&self, ref_: /*Ignored*/&CollectionRef, allow_noent: bool, flags: /*Ignored*/RepoResolveRevExtFlags, cancellable: P, error: /*Ignored*/Option) -> Result<(Option), Error>; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn resolve_keyring_for_collection<'a, P: Into>>(&self, collection_id: &str, cancellable: P, error: /*Ignored*/Option) -> /*Ignored*/Option; + + //fn resolve_rev(&self, refspec: &str, allow_noent: bool, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn resolve_rev_ext(&self, refspec: &str, allow_noent: bool, flags: /*Ignored*/RepoResolveRevExtFlags, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn scan_hardlinks<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn set_alias_ref_immediate<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, remote: P, ref_: &str, target: Q, cancellable: R, error: /*Ignored*/Option) -> bool; + + //fn set_cache_dir<'a, P: Into>>(&self, dfd: i32, path: &str, cancellable: P, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn set_collection_id<'a, P: Into>>(&self, collection_id: P, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn set_collection_ref_immediate<'a, 'b, P: Into>, Q: Into>>(&self, ref_: /*Ignored*/&CollectionRef, checksum: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + fn set_disable_fsync(&self, disable_fsync: bool); + + //fn set_ref_immediate<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, remote: P, ref_: &str, checksum: Q, cancellable: R, error: /*Ignored*/Option) -> bool; + + //fn sign_commit<'a, 'b, P: Into>, Q: Into>>(&self, commit_checksum: &str, key_id: &str, homedir: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn sign_delta<'a, P: Into>>(&self, from_commit: &str, to_commit: &str, key_id: &str, homedir: &str, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn static_delta_execute_offline<'a, P: IsA, Q: Into>>(&self, dir_or_file: &P, skip_validation: bool, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn static_delta_generate<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, opt: /*Ignored*/StaticDeltaGenerateOpt, from: &str, to: &str, metadata: P, params: Q, cancellable: R, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn transaction_set_collection_ref<'a, P: Into>>(&self, ref_: /*Ignored*/&CollectionRef, checksum: P); + + fn transaction_set_ref<'a, 'b, P: Into>, Q: Into>>(&self, remote: P, ref_: &str, checksum: Q); + + fn transaction_set_refspec<'a, P: Into>>(&self, refspec: &str, checksum: P); + + //fn traverse_commit<'a, P: Into>>(&self, commit_checksum: &str, maxdepth: i32, out_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn traverse_commit_union<'a, P: Into>>(&self, commit_checksum: &str, maxdepth: i32, inout_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_5", feature = "dox"))] + //fn traverse_commit_union_with_parents<'a, P: Into>>(&self, commit_checksum: &str, maxdepth: i32, inout_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, inout_parents: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn traverse_reachable_refs<'a, P: Into>>(&self, depth: u32, reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn verify_commit<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: IsA + 'b, S: Into>, T: Into>>(&self, commit_checksum: &str, keyringdir: Q, extra_keyring: S, cancellable: T, error: /*Ignored*/Option) -> bool; + + //fn verify_commit_ext<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: IsA + 'b, S: Into>, T: Into>>(&self, commit_checksum: &str, keyringdir: Q, extra_keyring: S, cancellable: T, error: /*Ignored*/Option) -> /*Ignored*/Option; + + //fn verify_commit_for_remote<'a, P: Into>>(&self, commit_checksum: &str, remote_name: &str, cancellable: P, error: /*Ignored*/Option) -> /*Ignored*/Option; + + //fn verify_summary<'a, P: Into>>(&self, remote_name: &str, summary: /*Ignored*/&glib::Bytes, signatures: /*Ignored*/&glib::Bytes, cancellable: P, error: /*Ignored*/Option) -> /*Ignored*/Option; + + //fn write_archive_to_mtree<'a, 'b, P: IsA, Q: Into>, R: Into>>(&self, archive: &P, mtree: /*Ignored*/&MutableTree, modifier: Q, autocreate_parents: bool, cancellable: R, error: /*Ignored*/Option) -> bool; + + //fn write_commit<'a, 'b, 'c, 'd, 'e, P: Into>, Q: Into>, R: Into>, S: Into>, T: Into>>(&self, parent: P, subject: Q, body: R, metadata: S, root: /*Ignored*/&RepoFile, cancellable: T, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn write_commit_detached_metadata<'a, 'b, P: Into>, Q: Into>>(&self, checksum: &str, metadata: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn write_commit_with_time<'a, 'b, 'c, 'd, 'e, P: Into>, Q: Into>, R: Into>, S: Into>, T: Into>>(&self, parent: P, subject: Q, body: R, metadata: S, root: /*Ignored*/&RepoFile, time: u64, cancellable: T, error: /*Ignored*/Option) -> Result<(String), Error>; + + //fn write_config(&self, new_config: /*Ignored*/&glib::KeyFile, error: /*Ignored*/Option) -> bool; + + //fn write_content<'a, 'b, P: Into>, Q: IsA, R: Into>>(&self, expected_checksum: P, object_input: &Q, length: u64, out_csum: /*Unknown conversion*//*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, cancellable: R, error: /*Ignored*/Option) -> bool; + + //fn write_content_trusted<'a, P: IsA, Q: Into>>(&self, checksum: &str, object_input: &P, length: u64, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn write_dfd_to_mtree<'a, 'b, P: Into>, Q: Into>>(&self, dfd: i32, path: &str, mtree: /*Ignored*/&MutableTree, modifier: P, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn write_directory_to_mtree<'a, 'b, P: IsA, Q: Into>, R: Into>>(&self, dir: &P, mtree: /*Ignored*/&MutableTree, modifier: Q, cancellable: R, error: /*Ignored*/Option) -> bool; + + //fn write_metadata<'a, 'b, P: Into>, Q: Into>>(&self, objtype: ObjectType, expected_checksum: P, object: /*Ignored*/&glib::Variant, out_csum: /*Unknown conversion*//*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn write_metadata_stream_trusted<'a, P: IsA, Q: Into>>(&self, objtype: ObjectType, checksum: &str, object_input: &P, length: u64, cancellable: Q, error: /*Ignored*/Option) -> bool; + + //fn write_metadata_trusted<'a, P: Into>>(&self, objtype: ObjectType, checksum: &str, variant: /*Ignored*/&glib::Variant, cancellable: P, error: /*Ignored*/Option) -> bool; + + //fn write_mtree<'a, P: Into>>(&self, mtree: /*Ignored*/&MutableTree, out_file: /*Ignored*/gio::File, cancellable: P, error: /*Ignored*/Option) -> bool; + + fn get_property_remotes_config_dir(&self) -> Option; + + //fn get_property_sysroot_path(&self) -> /*Ignored*/Option; + + //fn connect_gpg_verify_result(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> RepoExt for O { + //fn abort_transaction<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_abort_transaction() } + //} + + //fn add_gpg_signature_summary<'a, 'b, P: Into>, Q: Into>>(&self, key_id: &[&str], homedir: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_add_gpg_signature_summary() } + //} + + //fn append_gpg_signature<'a, P: Into>>(&self, commit_checksum: &str, signature_bytes: /*Ignored*/&glib::Bytes, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_append_gpg_signature() } + //} + + //fn checkout_at<'a, 'b, P: Into>, Q: Into>>(&self, options: P, destination_dfd: i32, destination_path: &str, commit: &str, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_checkout_at() } + //} + + //fn checkout_gc<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_checkout_gc() } + //} + + //fn checkout_tree<'a, P: IsA, Q: Into>>(&self, mode: /*Ignored*/RepoCheckoutMode, overwrite_mode: /*Ignored*/RepoCheckoutOverwriteMode, destination: &P, source: /*Ignored*/&RepoFile, source_info: /*Ignored*/&gio::FileInfo, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_checkout_tree() } + //} + + //fn checkout_tree_at<'a, 'b, P: Into>, Q: Into>>(&self, options: P, destination_dfd: i32, destination_path: &str, commit: &str, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_checkout_tree_at() } + //} + + //fn commit_transaction<'a, P: Into>>(&self, out_stats: /*Ignored*/RepoTransactionStats, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_commit_transaction() } + //} + + //fn copy_config(&self) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_copy_config() } + //} + + //fn create<'a, P: Into>>(&self, mode: RepoMode, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_create() } + //} + + //fn delete_object<'a, P: Into>>(&self, objtype: ObjectType, sha256: &str, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_delete_object() } + //} + + #[cfg(any(feature = "v2017_12", feature = "dox"))] + fn equal(&self, b: &Repo) -> bool { + unsafe { + from_glib(ffi::ostree_repo_equal(self.to_glib_none().0, b.to_glib_none().0)) + } + } + + //fn export_tree_to_archive<'a, P: Into>, Q: Into>>(&self, opts: /*Ignored*/&mut RepoExportArchiveOptions, root: /*Ignored*/&RepoFile, archive: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_export_tree_to_archive() } + //} + + //#[cfg(any(feature = "v2017_15", feature = "dox"))] + //fn fsck_object<'a, P: Into>>(&self, objtype: ObjectType, sha256: &str, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_fsck_object() } + //} + + #[cfg(any(feature = "v2018_6", feature = "dox"))] + fn get_collection_id(&self) -> Option { + unsafe { + from_glib_none(ffi::ostree_repo_get_collection_id(self.to_glib_none().0)) + } + } + + //fn get_config(&self) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_get_config() } + //} + + fn get_dfd(&self) -> i32 { + unsafe { + ffi::ostree_repo_get_dfd(self.to_glib_none().0) + } + } + + fn get_disable_fsync(&self) -> bool { + unsafe { + from_glib(ffi::ostree_repo_get_disable_fsync(self.to_glib_none().0)) + } + } + + fn get_mode(&self) -> RepoMode { + unsafe { + from_glib(ffi::ostree_repo_get_mode(self.to_glib_none().0)) + } + } + + fn get_parent(&self) -> Option { + unsafe { + from_glib_none(ffi::ostree_repo_get_parent(self.to_glib_none().0)) + } + } + + //fn get_path(&self) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_get_path() } + //} + + //fn get_remote_boolean_option(&self, remote_name: &str, option_name: &str, default_value: bool, error: /*Ignored*/Option) -> Result<(bool), Error> { + // unsafe { TODO: call ffi::ostree_repo_get_remote_boolean_option() } + //} + + //fn get_remote_list_option(&self, remote_name: &str, option_name: &str, error: /*Ignored*/Option) -> Result<(Vec), Error> { + // unsafe { TODO: call ffi::ostree_repo_get_remote_list_option() } + //} + + //fn get_remote_option<'a, P: Into>>(&self, remote_name: &str, option_name: &str, default_value: P, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_get_remote_option() } + //} + + //fn gpg_verify_data<'a, 'b, 'c, 'd, P: Into>, Q: IsA + 'b, R: Into>, S: IsA + 'c, T: Into>, U: Into>>(&self, remote_name: P, data: /*Ignored*/&glib::Bytes, signatures: /*Ignored*/&glib::Bytes, keyringdir: R, extra_keyring: T, cancellable: U, error: /*Ignored*/Option) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_gpg_verify_data() } + //} + + //fn has_object<'a, P: Into>>(&self, objtype: ObjectType, checksum: &str, cancellable: P, error: /*Ignored*/Option) -> Result<(bool), Error> { + // unsafe { TODO: call ffi::ostree_repo_has_object() } + //} + + #[cfg(any(feature = "v2017_12", feature = "dox"))] + fn hash(&self) -> u32 { + unsafe { + ffi::ostree_repo_hash(self.to_glib_none().0) + } + } + + //fn import_archive_to_mtree<'a, 'b, P: Into>, Q: Into>, R: Into>>(&self, opts: /*Ignored*/&mut RepoImportArchiveOptions, archive: P, mtree: /*Ignored*/&MutableTree, modifier: Q, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_import_archive_to_mtree() } + //} + + //fn import_object_from<'a, P: Into>>(&self, source: &Repo, objtype: ObjectType, checksum: &str, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_import_object_from() } + //} + + //fn import_object_from_with_trust<'a, P: Into>>(&self, source: &Repo, objtype: ObjectType, checksum: &str, trusted: bool, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_import_object_from_with_trust() } + //} + + fn is_system(&self) -> bool { + unsafe { + from_glib(ffi::ostree_repo_is_system(self.to_glib_none().0)) + } + } + + //fn is_writable(&self, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_is_writable() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn list_collection_refs<'a, 'b, P: Into>, Q: Into>>(&self, match_collection_id: P, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 1, id: 0 }/TypeId { ns_id: 0, id: 28 }, flags: /*Ignored*/RepoListRefsExtFlags, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_list_collection_refs() } + //} + + //fn list_commit_objects_starting_with<'a, P: Into>>(&self, start: &str, out_commits: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_list_commit_objects_starting_with() } + //} + + //fn list_objects<'a, P: Into>>(&self, flags: /*Ignored*/RepoListObjectsFlags, out_objects: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_list_objects() } + //} + + //fn list_refs<'a, 'b, P: Into>, Q: Into>>(&self, refspec_prefix: P, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_list_refs() } + //} + + //fn list_refs_ext<'a, 'b, P: Into>, Q: Into>>(&self, refspec_prefix: P, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }, flags: /*Ignored*/RepoListRefsExtFlags, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_list_refs_ext() } + //} + + //fn list_static_delta_names<'a, P: Into>>(&self, out_deltas: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 0, id: 28 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_list_static_delta_names() } + //} + + //#[cfg(any(feature = "v2015_7", feature = "dox"))] + //fn load_commit(&self, checksum: &str, out_commit: /*Ignored*/glib::Variant, error: /*Ignored*/Option) -> Result<(/*Ignored*/RepoCommitState), Error> { + // unsafe { TODO: call ffi::ostree_repo_load_commit() } + //} + + //fn load_file<'a, P: Into>>(&self, checksum: &str, out_input: /*Ignored*/Option, out_file_info: /*Ignored*/Option, out_xattrs: /*Ignored*/Option, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_load_file() } + //} + + //fn load_object_stream<'a, P: Into>>(&self, objtype: ObjectType, checksum: &str, out_input: /*Ignored*/gio::InputStream, cancellable: P, error: /*Ignored*/Option) -> Result<(u64), Error> { + // unsafe { TODO: call ffi::ostree_repo_load_object_stream() } + //} + + //fn load_variant(&self, objtype: ObjectType, sha256: &str, out_variant: /*Ignored*/glib::Variant, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_load_variant() } + //} + + //fn load_variant_if_exists(&self, objtype: ObjectType, sha256: &str, out_variant: /*Ignored*/glib::Variant, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_load_variant_if_exists() } + //} + + //#[cfg(any(feature = "v2017_15", feature = "dox"))] + //fn mark_commit_partial(&self, checksum: &str, is_partial: bool, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_mark_commit_partial() } + //} + + //fn open<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_open() } + //} + + //fn prepare_transaction<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> Result<(bool), Error> { + // unsafe { TODO: call ffi::ostree_repo_prepare_transaction() } + //} + + //fn prune<'a, P: Into>>(&self, flags: /*Ignored*/RepoPruneFlags, depth: i32, cancellable: P, error: /*Ignored*/Option) -> Result<(i32, i32, u64), Error> { + // unsafe { TODO: call ffi::ostree_repo_prune() } + //} + + //fn prune_from_reachable<'a, P: Into>>(&self, options: /*Ignored*/&mut RepoPruneOptions, cancellable: P, error: /*Ignored*/Option) -> Result<(i32, i32, u64), Error> { + // unsafe { TODO: call ffi::ostree_repo_prune_from_reachable() } + //} + + //fn prune_static_deltas<'a, 'b, P: Into>, Q: Into>>(&self, commit: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_prune_static_deltas() } + //} + + //fn pull<'a, 'b, P: Into>, Q: Into>>(&self, remote_name: &str, refs_to_fetch: &[&str], flags: /*Ignored*/RepoPullFlags, progress: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_pull() } + //} + + //fn pull_one_dir<'a, 'b, P: Into>, Q: Into>>(&self, remote_name: &str, dir_to_pull: &str, refs_to_fetch: &[&str], flags: /*Ignored*/RepoPullFlags, progress: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_pull_one_dir() } + //} + + //fn pull_with_options<'a, 'b, P: Into>, Q: Into>>(&self, remote_name_or_baseurl: &str, options: /*Ignored*/&glib::Variant, progress: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_pull_with_options() } + //} + + //fn query_object_storage_size<'a, P: Into>>(&self, objtype: ObjectType, sha256: &str, cancellable: P, error: /*Ignored*/Option) -> Result<(u64), Error> { + // unsafe { TODO: call ffi::ostree_repo_query_object_storage_size() } + //} + + //fn read_commit<'a, P: Into>>(&self, ref_: &str, out_root: /*Ignored*/gio::File, cancellable: P, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_read_commit() } + //} + + //fn read_commit_detached_metadata<'a, P: Into>>(&self, checksum: &str, out_metadata: /*Ignored*/glib::Variant, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_read_commit_detached_metadata() } + //} + + //fn regenerate_summary<'a, 'b, P: Into>, Q: Into>>(&self, additional_metadata: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_regenerate_summary() } + //} + + //fn reload_config<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_reload_config() } + //} + + //fn remote_add<'a, 'b, P: Into>, Q: Into>>(&self, name: &str, url: &str, options: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_add() } + //} + + //fn remote_change<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: Into>, S: Into>>(&self, sysroot: Q, changeop: /*Ignored*/RepoRemoteChange, name: &str, url: &str, options: R, cancellable: S, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_change() } + //} + + //fn remote_delete<'a, P: Into>>(&self, name: &str, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_delete() } + //} + + //fn remote_fetch_summary<'a, P: Into>>(&self, name: &str, out_summary: /*Ignored*/glib::Bytes, out_signatures: /*Ignored*/glib::Bytes, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_fetch_summary() } + //} + + //fn remote_fetch_summary_with_options<'a, 'b, P: Into>, Q: Into>>(&self, name: &str, options: P, out_summary: /*Ignored*/glib::Bytes, out_signatures: /*Ignored*/glib::Bytes, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_fetch_summary_with_options() } + //} + + //fn remote_get_gpg_verify(&self, name: &str, error: /*Ignored*/Option) -> Result<(bool), Error> { + // unsafe { TODO: call ffi::ostree_repo_remote_get_gpg_verify() } + //} + + //fn remote_get_gpg_verify_summary(&self, name: &str, error: /*Ignored*/Option) -> Result<(bool), Error> { + // unsafe { TODO: call ffi::ostree_repo_remote_get_gpg_verify_summary() } + //} + + //fn remote_get_url(&self, name: &str, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_remote_get_url() } + //} + + //fn remote_gpg_import<'a, 'b, P: IsA + 'a, Q: Into>, R: Into>, S: Into>>(&self, name: &str, source_stream: Q, key_ids: &[&str], out_imported: R, cancellable: S, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_gpg_import() } + //} + + fn remote_list(&self) -> Vec { + unsafe { + let mut out_n_remotes = mem::uninitialized(); + let ret = FromGlibContainer::from_glib_full_num(ffi::ostree_repo_remote_list(self.to_glib_none().0, &mut out_n_remotes), out_n_remotes as usize); + ret + } + } + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn remote_list_collection_refs<'a, P: Into>>(&self, remote_name: &str, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 1, id: 0 }/TypeId { ns_id: 0, id: 28 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_list_collection_refs() } + //} + + //fn remote_list_refs<'a, P: Into>>(&self, remote_name: &str, out_all_refs: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 0, id: 28 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_remote_list_refs() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn resolve_collection_ref<'a, P: Into>>(&self, ref_: /*Ignored*/&CollectionRef, allow_noent: bool, flags: /*Ignored*/RepoResolveRevExtFlags, cancellable: P, error: /*Ignored*/Option) -> Result<(Option), Error> { + // unsafe { TODO: call ffi::ostree_repo_resolve_collection_ref() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn resolve_keyring_for_collection<'a, P: Into>>(&self, collection_id: &str, cancellable: P, error: /*Ignored*/Option) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_resolve_keyring_for_collection() } + //} + + //fn resolve_rev(&self, refspec: &str, allow_noent: bool, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_resolve_rev() } + //} + + //fn resolve_rev_ext(&self, refspec: &str, allow_noent: bool, flags: /*Ignored*/RepoResolveRevExtFlags, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_resolve_rev_ext() } + //} + + //fn scan_hardlinks<'a, P: Into>>(&self, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_scan_hardlinks() } + //} + + //fn set_alias_ref_immediate<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, remote: P, ref_: &str, target: Q, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_set_alias_ref_immediate() } + //} + + //fn set_cache_dir<'a, P: Into>>(&self, dfd: i32, path: &str, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_set_cache_dir() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn set_collection_id<'a, P: Into>>(&self, collection_id: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_set_collection_id() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn set_collection_ref_immediate<'a, 'b, P: Into>, Q: Into>>(&self, ref_: /*Ignored*/&CollectionRef, checksum: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_set_collection_ref_immediate() } + //} + + fn set_disable_fsync(&self, disable_fsync: bool) { + unsafe { + ffi::ostree_repo_set_disable_fsync(self.to_glib_none().0, disable_fsync.to_glib()); + } + } + + //fn set_ref_immediate<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, remote: P, ref_: &str, checksum: Q, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_set_ref_immediate() } + //} + + //fn sign_commit<'a, 'b, P: Into>, Q: Into>>(&self, commit_checksum: &str, key_id: &str, homedir: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_sign_commit() } + //} + + //fn sign_delta<'a, P: Into>>(&self, from_commit: &str, to_commit: &str, key_id: &str, homedir: &str, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_sign_delta() } + //} + + //fn static_delta_execute_offline<'a, P: IsA, Q: Into>>(&self, dir_or_file: &P, skip_validation: bool, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_static_delta_execute_offline() } + //} + + //fn static_delta_generate<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, opt: /*Ignored*/StaticDeltaGenerateOpt, from: &str, to: &str, metadata: P, params: Q, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_static_delta_generate() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn transaction_set_collection_ref<'a, P: Into>>(&self, ref_: /*Ignored*/&CollectionRef, checksum: P) { + // unsafe { TODO: call ffi::ostree_repo_transaction_set_collection_ref() } + //} + + fn transaction_set_ref<'a, 'b, P: Into>, Q: Into>>(&self, remote: P, ref_: &str, checksum: Q) { + let remote = remote.into(); + let remote = remote.to_glib_none(); + let checksum = checksum.into(); + let checksum = checksum.to_glib_none(); + unsafe { + ffi::ostree_repo_transaction_set_ref(self.to_glib_none().0, remote.0, ref_.to_glib_none().0, checksum.0); + } + } + + fn transaction_set_refspec<'a, P: Into>>(&self, refspec: &str, checksum: P) { + let checksum = checksum.into(); + let checksum = checksum.to_glib_none(); + unsafe { + ffi::ostree_repo_transaction_set_refspec(self.to_glib_none().0, refspec.to_glib_none().0, checksum.0); + } + } + + //fn traverse_commit<'a, P: Into>>(&self, commit_checksum: &str, maxdepth: i32, out_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_traverse_commit() } + //} + + //fn traverse_commit_union<'a, P: Into>>(&self, commit_checksum: &str, maxdepth: i32, inout_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_traverse_commit_union() } + //} + + //#[cfg(any(feature = "v2018_5", feature = "dox"))] + //fn traverse_commit_union_with_parents<'a, P: Into>>(&self, commit_checksum: &str, maxdepth: i32, inout_reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, inout_parents: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 25 }/TypeId { ns_id: 0, id: 25 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_traverse_commit_union_with_parents() } + //} + + //#[cfg(any(feature = "v2018_6", feature = "dox"))] + //fn traverse_reachable_refs<'a, P: Into>>(&self, depth: u32, reachable: /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 2, id: 181 }/TypeId { ns_id: 2, id: 181 }, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_traverse_reachable_refs() } + //} + + //fn verify_commit<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: IsA + 'b, S: Into>, T: Into>>(&self, commit_checksum: &str, keyringdir: Q, extra_keyring: S, cancellable: T, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_verify_commit() } + //} + + //fn verify_commit_ext<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: IsA + 'b, S: Into>, T: Into>>(&self, commit_checksum: &str, keyringdir: Q, extra_keyring: S, cancellable: T, error: /*Ignored*/Option) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_verify_commit_ext() } + //} + + //fn verify_commit_for_remote<'a, P: Into>>(&self, commit_checksum: &str, remote_name: &str, cancellable: P, error: /*Ignored*/Option) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_verify_commit_for_remote() } + //} + + //fn verify_summary<'a, P: Into>>(&self, remote_name: &str, summary: /*Ignored*/&glib::Bytes, signatures: /*Ignored*/&glib::Bytes, cancellable: P, error: /*Ignored*/Option) -> /*Ignored*/Option { + // unsafe { TODO: call ffi::ostree_repo_verify_summary() } + //} + + //fn write_archive_to_mtree<'a, 'b, P: IsA, Q: Into>, R: Into>>(&self, archive: &P, mtree: /*Ignored*/&MutableTree, modifier: Q, autocreate_parents: bool, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_archive_to_mtree() } + //} + + //fn write_commit<'a, 'b, 'c, 'd, 'e, P: Into>, Q: Into>, R: Into>, S: Into>, T: Into>>(&self, parent: P, subject: Q, body: R, metadata: S, root: /*Ignored*/&RepoFile, cancellable: T, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_write_commit() } + //} + + //fn write_commit_detached_metadata<'a, 'b, P: Into>, Q: Into>>(&self, checksum: &str, metadata: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_commit_detached_metadata() } + //} + + //fn write_commit_with_time<'a, 'b, 'c, 'd, 'e, P: Into>, Q: Into>, R: Into>, S: Into>, T: Into>>(&self, parent: P, subject: Q, body: R, metadata: S, root: /*Ignored*/&RepoFile, time: u64, cancellable: T, error: /*Ignored*/Option) -> Result<(String), Error> { + // unsafe { TODO: call ffi::ostree_repo_write_commit_with_time() } + //} + + //fn write_config(&self, new_config: /*Ignored*/&glib::KeyFile, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_config() } + //} + + //fn write_content<'a, 'b, P: Into>, Q: IsA, R: Into>>(&self, expected_checksum: P, object_input: &Q, length: u64, out_csum: /*Unknown conversion*//*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_content() } + //} + + //fn write_content_trusted<'a, P: IsA, Q: Into>>(&self, checksum: &str, object_input: &P, length: u64, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_content_trusted() } + //} + + //fn write_dfd_to_mtree<'a, 'b, P: Into>, Q: Into>>(&self, dfd: i32, path: &str, mtree: /*Ignored*/&MutableTree, modifier: P, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_dfd_to_mtree() } + //} + + //fn write_directory_to_mtree<'a, 'b, P: IsA, Q: Into>, R: Into>>(&self, dir: &P, mtree: /*Ignored*/&MutableTree, modifier: Q, cancellable: R, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_directory_to_mtree() } + //} + + //fn write_metadata<'a, 'b, P: Into>, Q: Into>>(&self, objtype: ObjectType, expected_checksum: P, object: /*Ignored*/&glib::Variant, out_csum: /*Unknown conversion*//*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_metadata() } + //} + + //fn write_metadata_stream_trusted<'a, P: IsA, Q: Into>>(&self, objtype: ObjectType, checksum: &str, object_input: &P, length: u64, cancellable: Q, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_metadata_stream_trusted() } + //} + + //fn write_metadata_trusted<'a, P: Into>>(&self, objtype: ObjectType, checksum: &str, variant: /*Ignored*/&glib::Variant, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_metadata_trusted() } + //} + + //fn write_mtree<'a, P: Into>>(&self, mtree: /*Ignored*/&MutableTree, out_file: /*Ignored*/gio::File, cancellable: P, error: /*Ignored*/Option) -> bool { + // unsafe { TODO: call ffi::ostree_repo_write_mtree() } + //} + + fn get_property_remotes_config_dir(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "remotes-config-dir".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + //fn get_property_sysroot_path(&self) -> /*Ignored*/Option { + // unsafe { + // let mut value = Value::from_type(::static_type()); + // gobject_ffi::g_object_get_property(self.to_glib_none().0, "sysroot-path".to_glib_none().0, value.to_glib_none_mut().0); + // value.get() + // } + //} + + //fn connect_gpg_verify_result(&self, f: F) -> SignalHandlerId { + // Ignored result: OSTree.GpgVerifyResult + //} +} diff --git a/rust-bindings/rust/libostree/src/auto/versions.txt b/rust-bindings/rust/libostree/src/auto/versions.txt new file mode 100644 index 00000000..253bea93 --- /dev/null +++ b/rust-bindings/rust/libostree/src/auto/versions.txt @@ -0,0 +1,2 @@ +Generated by gir (https://github.com/gtk-rs/gir @ c385982) +from gir-files (https://github.com/gtk-rs/gir-files @ ???)