diff --git a/rust-bindings/src/auto/deployment.rs b/rust-bindings/src/auto/deployment.rs index 984bbb25..a8dde0e5 100644 --- a/rust-bindings/src/auto/deployment.rs +++ b/rust-bindings/src/auto/deployment.rs @@ -130,6 +130,15 @@ impl Deployment { } } + #[cfg(any(feature = "v2023_8", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_8")))] + #[doc(alias = "ostree_deployment_is_finalization_locked")] + pub fn is_finalization_locked(&self) -> bool { + unsafe { + from_glib(ffi::ostree_deployment_is_finalization_locked(self.to_glib_none().0)) + } + } + #[cfg(any(feature = "v2018_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))] #[doc(alias = "ostree_deployment_is_pinned")] diff --git a/rust-bindings/src/auto/flags.rs b/rust-bindings/src/auto/flags.rs index 7f822000..4cd95727 100644 --- a/rust-bindings/src/auto/flags.rs +++ b/rust-bindings/src/auto/flags.rs @@ -131,6 +131,8 @@ bitflags! { const CONSUME = ffi::OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CONSUME as _; #[doc(alias = "OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL")] const DEVINO_CANONICAL = ffi::OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL as _; + #[doc(alias = "OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SELINUX_LABEL_V1")] + const SELINUX_LABEL_V1 = ffi::OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SELINUX_LABEL_V1 as _; } } diff --git a/rust-bindings/src/auto/repo.rs b/rust-bindings/src/auto/repo.rs index e4649dc4..2210c2c6 100644 --- a/rust-bindings/src/auto/repo.rs +++ b/rust-bindings/src/auto/repo.rs @@ -129,6 +129,16 @@ impl Repo { } } + #[doc(alias = "ostree_repo_checkout_composefs")] + pub fn checkout_composefs(&self, options: Option<&glib::Variant>, destination_dfd: i32, destination_path: &str, checksum: &str, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { + unsafe { + let mut error = ptr::null_mut(); + let is_ok = ffi::ostree_repo_checkout_composefs(self.to_glib_none().0, options.to_glib_none().0, destination_dfd, destination_path.to_glib_none().0, checksum.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error); + assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } + #[doc(alias = "ostree_repo_checkout_gc")] pub fn checkout_gc(&self, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { unsafe { diff --git a/rust-bindings/src/auto/se_policy.rs b/rust-bindings/src/auto/se_policy.rs index 8bbb9ece..beb5a1e0 100644 --- a/rust-bindings/src/auto/se_policy.rs +++ b/rust-bindings/src/auto/se_policy.rs @@ -75,7 +75,7 @@ impl SePolicy { #[doc(alias = "ostree_sepolicy_get_name")] #[doc(alias = "get_name")] - pub fn name(&self) -> glib::GString { + pub fn name(&self) -> Option { unsafe { from_glib_none(ffi::ostree_sepolicy_get_name(self.to_glib_none().0)) } @@ -116,11 +116,10 @@ impl SePolicy { } } +unsafe impl Send for SePolicy {} + impl fmt::Display for SePolicy { - #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.name()) + f.write_str("SePolicy") } } - -unsafe impl Send for SePolicy {} diff --git a/rust-bindings/src/auto/sysroot.rs b/rust-bindings/src/auto/sysroot.rs index 020a8a1b..e753f716 100644 --- a/rust-bindings/src/auto/sysroot.rs +++ b/rust-bindings/src/auto/sysroot.rs @@ -60,6 +60,18 @@ impl Sysroot { } } + #[cfg(any(feature = "v2023_8", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_8")))] + #[doc(alias = "ostree_sysroot_change_finalization")] + pub fn change_finalization(&self, deployment: &Deployment) -> Result<(), glib::Error> { + unsafe { + let mut error = ptr::null_mut(); + let is_ok = ffi::ostree_sysroot_change_finalization(self.to_glib_none().0, deployment.to_glib_none().0, &mut error); + assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } + #[doc(alias = "ostree_sysroot_cleanup")] pub fn cleanup(&self, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { unsafe { @@ -500,6 +512,18 @@ impl Sysroot { } } + #[cfg(any(feature = "v2023_11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_11")))] + #[doc(alias = "ostree_sysroot_update_post_copy")] + pub fn update_post_copy(&self, cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { + unsafe { + let mut error = ptr::null_mut(); + let is_ok = ffi::ostree_sysroot_update_post_copy(self.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error); + assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } + #[doc(alias = "ostree_sysroot_write_deployments")] pub fn write_deployments(&self, new_deployments: &[Deployment], cancellable: Option<&impl IsA>) -> Result<(), glib::Error> { unsafe { diff --git a/rust-bindings/src/auto/versions.txt b/rust-bindings/src/auto/versions.txt index abc0dca6..7332d957 100644 --- a/rust-bindings/src/auto/versions.txt +++ b/rust-bindings/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 0eeebbdf9d4d) -from gir-files (@ e93ebd738598) +from gir-files (@ 8f559e94b775) diff --git a/rust-bindings/sys/Cargo.toml b/rust-bindings/sys/Cargo.toml index 901b5612..db5d0b12 100644 --- a/rust-bindings/sys/Cargo.toml +++ b/rust-bindings/sys/Cargo.toml @@ -56,7 +56,7 @@ v2019_6 = ["v2019_4"] v2020_1 = ["v2019_6"] v2020_2 = ["v2020_1"] v2020_4 = ["v2020_2"] -dox = [] +dox = ["glib/dox", "gobject/dox", "gio/dox"] v2020_7 = ["v2020_4"] v2020_8 = ["v2020_7"] v2021_1 = ["v2020_8"] @@ -69,6 +69,8 @@ v2022_5 = ["v2022_2"] v2022_6 = ["v2022_5"] v2022_7 = ["v2022_5"] v2023_1 = ["v2022_7"] +v2023_8 = ["v2023_1"] +v2023_11 = ["v2023_8"] [lib] name = "ostree_sys" @@ -232,3 +234,9 @@ version = "2022.7" [package.metadata.system-deps.ostree_1.v2023_1] version = "2023.1" + +[package.metadata.system-deps.ostree_1.v2023_8] +version = "2023.8" + +[package.metadata.system-deps.ostree_1.v2023_11] +version = "2023.11" diff --git a/rust-bindings/sys/src/auto/versions.txt b/rust-bindings/sys/src/auto/versions.txt index abc0dca6..7332d957 100644 --- a/rust-bindings/sys/src/auto/versions.txt +++ b/rust-bindings/sys/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 0eeebbdf9d4d) -from gir-files (@ e93ebd738598) +from gir-files (@ 8f559e94b775) diff --git a/rust-bindings/sys/src/lib.rs b/rust-bindings/sys/src/lib.rs index 395b3b60..99656504 100644 --- a/rust-bindings/sys/src/lib.rs +++ b/rust-bindings/sys/src/lib.rs @@ -190,6 +190,7 @@ pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS: OstreeRepoCom pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_ERROR_ON_UNLABELED: OstreeRepoCommitModifierFlags = 8; pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CONSUME: OstreeRepoCommitModifierFlags = 16; pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL: OstreeRepoCommitModifierFlags = 32; +pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SELINUX_LABEL_V1: OstreeRepoCommitModifierFlags = 64; pub type OstreeRepoCommitState = c_uint; pub const OSTREE_REPO_COMMIT_STATE_NORMAL: OstreeRepoCommitState = 0; @@ -867,7 +868,8 @@ impl ::std::fmt::Debug for OstreeSignInterface { #[derive(Copy, Clone)] #[repr(C)] pub struct OstreeSysrootDeployTreeOpts { - pub unused_bools: [gboolean; 8], + pub locked: gboolean, + pub unused_bools: [gboolean; 7], pub unused_ints: [c_int; 8], pub override_kernel_argv: *mut *mut c_char, pub overlay_initrds: *mut *mut c_char, @@ -877,6 +879,7 @@ pub struct OstreeSysrootDeployTreeOpts { impl ::std::fmt::Debug for OstreeSysrootDeployTreeOpts { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeSysrootDeployTreeOpts @ {self:p}")) + .field("locked", &self.locked) .field("unused_bools", &self.unused_bools) .field("unused_ints", &self.unused_ints) .field("override_kernel_argv", &self.override_kernel_argv) @@ -1612,6 +1615,9 @@ extern "C" { self_: *mut OstreeDeployment, ) -> OstreeDeploymentUnlockedState; pub fn ostree_deployment_hash(v: gconstpointer) -> c_uint; + #[cfg(any(feature = "v2023_8", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_8")))] + pub fn ostree_deployment_is_finalization_locked(self_: *mut OstreeDeployment) -> gboolean; #[cfg(any(feature = "v2018_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))] pub fn ostree_deployment_is_pinned(self_: *mut OstreeDeployment) -> gboolean; @@ -1835,6 +1841,15 @@ extern "C" { cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError, ) -> gboolean; + pub fn ostree_repo_checkout_composefs( + self_: *mut OstreeRepo, + options: *mut glib::GVariant, + destination_dfd: c_int, + destination_path: *const c_char, + checksum: *const c_char, + cancellable: *mut gio::GCancellable, + error: *mut *mut glib::GError, + ) -> gboolean; pub fn ostree_repo_checkout_gc( self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, @@ -3007,6 +3022,13 @@ extern "C" { pub fn ostree_sysroot_get_deployment_origin_path( deployment_path: *mut gio::GFile, ) -> *mut gio::GFile; + #[cfg(any(feature = "v2023_8", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_8")))] + pub fn ostree_sysroot_change_finalization( + self_: *mut OstreeSysroot, + deployment: *mut OstreeDeployment, + error: *mut *mut glib::GError, + ) -> gboolean; pub fn ostree_sysroot_cleanup( self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, @@ -3253,6 +3275,13 @@ extern "C" { ) -> gboolean; pub fn ostree_sysroot_unload(self_: *mut OstreeSysroot); pub fn ostree_sysroot_unlock(self_: *mut OstreeSysroot); + #[cfg(any(feature = "v2023_11", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2023_11")))] + pub fn ostree_sysroot_update_post_copy( + self_: *mut OstreeSysroot, + cancellable: *mut gio::GCancellable, + error: *mut *mut glib::GError, + ) -> gboolean; pub fn ostree_sysroot_write_deployments( self_: *mut OstreeSysroot, new_deployments: *mut glib::GPtrArray, diff --git a/rust-bindings/sys/tests/abi.rs b/rust-bindings/sys/tests/abi.rs index af510395..a05235af 100644 --- a/rust-bindings/sys/tests/abi.rs +++ b/rust-bindings/sys/tests/abi.rs @@ -680,6 +680,10 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ "2", ), ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE", "0"), + ( + "(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SELINUX_LABEL_V1", + "64", + ), ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS", "1"), ("(guint) OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL", "2"), ("(guint) OSTREE_REPO_COMMIT_STATE_NORMAL", "0"), diff --git a/rust-bindings/sys/tests/constant.c b/rust-bindings/sys/tests/constant.c index 7b3a9d7c..d2df3557 100644 --- a/rust-bindings/sys/tests/constant.c +++ b/rust-bindings/sys/tests/constant.c @@ -6,174 +6,173 @@ #include #define PRINT_CONSTANT(CONSTANT_NAME) \ - printf ("%s;", #CONSTANT_NAME); \ - printf (_Generic ((CONSTANT_NAME), \ - char *: "%s", \ - const char *: "%s", \ - char: "%c", \ - signed char: "%hhd", \ - unsigned char: "%hhu", \ - short int: "%hd", \ - unsigned short int: "%hu", \ - int: "%d", \ - unsigned int: "%u", \ - long: "%ld", \ - unsigned long: "%lu", \ - long long: "%lld", \ - unsigned long long: "%llu", \ - float: "%f", \ - double: "%f", \ - long double: "%ld"), \ - CONSTANT_NAME); \ - printf ("\n"); + printf("%s;", #CONSTANT_NAME); \ + printf(_Generic((CONSTANT_NAME), \ + char *: "%s", \ + const char *: "%s", \ + char: "%c", \ + signed char: "%hhd", \ + unsigned char: "%hhu", \ + short int: "%hd", \ + unsigned short int: "%hu", \ + int: "%d", \ + unsigned int: "%u", \ + long: "%ld", \ + unsigned long: "%lu", \ + long long: "%lld", \ + unsigned long long: "%llu", \ + float: "%f", \ + double: "%f", \ + long double: "%ld"), \ + CONSTANT_NAME); \ + printf("\n"); -int -main () -{ - PRINT_CONSTANT ((guint)OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS); - PRINT_CONSTANT ((guint)OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS); - PRINT_CONSTANT ((guint)OSTREE_CHECKSUM_FLAGS_NONE); - PRINT_CONSTANT (OSTREE_COMMIT_GVARIANT_STRING); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_ARCHITECTURE); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_COLLECTION_BINDING); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_ENDOFLIFE); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_REF_BINDING); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_SOURCE_TITLE); - PRINT_CONSTANT (OSTREE_COMMIT_META_KEY_VERSION); - PRINT_CONSTANT ((gint)OSTREE_DEPLOYMENT_UNLOCKED_DEVELOPMENT); - PRINT_CONSTANT ((gint)OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX); - PRINT_CONSTANT ((gint)OSTREE_DEPLOYMENT_UNLOCKED_NONE); - PRINT_CONSTANT ((gint)OSTREE_DEPLOYMENT_UNLOCKED_TRANSIENT); - PRINT_CONSTANT ((guint)OSTREE_DIFF_FLAGS_IGNORE_XATTRS); - PRINT_CONSTANT ((guint)OSTREE_DIFF_FLAGS_NONE); - PRINT_CONSTANT (OSTREE_DIRMETA_GVARIANT_STRING); - PRINT_CONSTANT (OSTREE_FILEMETA_GVARIANT_STRING); - PRINT_CONSTANT ((gint)OSTREE_GPG_ERROR_EXPIRED_KEY); - PRINT_CONSTANT ((gint)OSTREE_GPG_ERROR_EXPIRED_SIGNATURE); - PRINT_CONSTANT ((gint)OSTREE_GPG_ERROR_INVALID_SIGNATURE); - PRINT_CONSTANT ((gint)OSTREE_GPG_ERROR_MISSING_KEY); - PRINT_CONSTANT ((gint)OSTREE_GPG_ERROR_NO_SIGNATURE); - PRINT_CONSTANT ((gint)OSTREE_GPG_ERROR_REVOKED_KEY); - PRINT_CONSTANT (OSTREE_GPG_KEY_GVARIANT_STRING); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_EXP_TIMESTAMP); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT_PRIMARY); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_HASH_ALGO_NAME); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_KEY_EXPIRED); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP_PRIMARY); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_KEY_MISSING); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_KEY_REVOKED); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_PUBKEY_ALGO_NAME); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_SIG_EXPIRED); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_TIMESTAMP); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_USER_EMAIL); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_USER_NAME); - PRINT_CONSTANT ((gint)OSTREE_GPG_SIGNATURE_ATTR_VALID); - PRINT_CONSTANT ((guint)OSTREE_GPG_SIGNATURE_FORMAT_DEFAULT); - PRINT_CONSTANT (OSTREE_MAX_METADATA_SIZE); - PRINT_CONSTANT (OSTREE_MAX_METADATA_WARN_SIZE); - PRINT_CONSTANT (OSTREE_METADATA_KEY_BOOTABLE); - PRINT_CONSTANT (OSTREE_METADATA_KEY_LINUX); - PRINT_CONSTANT (OSTREE_META_KEY_DEPLOY_COLLECTION_ID); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_COMMIT); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_COMMIT_META); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_DIR_META); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_DIR_TREE); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_FILE); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_FILE_XATTRS); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_FILE_XATTRS_LINK); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_PAYLOAD_LINK); - PRINT_CONSTANT ((gint)OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT); - PRINT_CONSTANT (OSTREE_ORIGIN_TRANSIENT_GROUP); - PRINT_CONSTANT (OSTREE_PATH_BOOTED); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_FILTER_ALLOW); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_FILTER_SKIP); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_MODE_NONE); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_MODE_USER); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_OVERWRITE_ADD_FILES); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_OVERWRITE_NONE); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_FILES); - PRINT_CONSTANT ((gint)OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_IDENTICAL); - PRINT_CONSTANT ((gint)OSTREE_REPO_COMMIT_FILTER_ALLOW); - PRINT_CONSTANT ((gint)OSTREE_REPO_COMMIT_FILTER_SKIP); - PRINT_CONSTANT ((gint)OSTREE_REPO_COMMIT_ITER_RESULT_DIR); - PRINT_CONSTANT ((gint)OSTREE_REPO_COMMIT_ITER_RESULT_END); - PRINT_CONSTANT ((gint)OSTREE_REPO_COMMIT_ITER_RESULT_ERROR); - PRINT_CONSTANT ((gint)OSTREE_REPO_COMMIT_ITER_RESULT_FILE); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CONSUME); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_ERROR_ON_UNLABELED); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_STATE_NORMAL); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_STATE_PARTIAL); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_TRAVERSE_FLAG_COMMIT_ONLY); - PRINT_CONSTANT ((guint)OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_OBJECTS_ALL); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_OBJECTS_LOOSE); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_OBJECTS_NO_PARENTS); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_OBJECTS_PACKED); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_REFS_EXT_ALIASES); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_REMOTES); - PRINT_CONSTANT ((guint)OSTREE_REPO_LIST_REFS_EXT_NONE); - PRINT_CONSTANT ((gint)OSTREE_REPO_LOCK_EXCLUSIVE); - PRINT_CONSTANT ((gint)OSTREE_REPO_LOCK_SHARED); - PRINT_CONSTANT (OSTREE_REPO_METADATA_REF); - PRINT_CONSTANT ((gint)OSTREE_REPO_MODE_ARCHIVE); - PRINT_CONSTANT ((gint)OSTREE_REPO_MODE_ARCHIVE_Z2); - PRINT_CONSTANT ((gint)OSTREE_REPO_MODE_BARE); - PRINT_CONSTANT ((gint)OSTREE_REPO_MODE_BARE_SPLIT_XATTRS); - PRINT_CONSTANT ((gint)OSTREE_REPO_MODE_BARE_USER); - PRINT_CONSTANT ((gint)OSTREE_REPO_MODE_BARE_USER_ONLY); - PRINT_CONSTANT ((guint)OSTREE_REPO_PRUNE_FLAGS_COMMIT_ONLY); - PRINT_CONSTANT ((guint)OSTREE_REPO_PRUNE_FLAGS_NONE); - PRINT_CONSTANT ((guint)OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE); - PRINT_CONSTANT ((guint)OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY); - PRINT_CONSTANT ((guint)OSTREE_REPO_PULL_FLAGS_BAREUSERONLY_FILES); - PRINT_CONSTANT ((guint)OSTREE_REPO_PULL_FLAGS_COMMIT_ONLY); - PRINT_CONSTANT ((guint)OSTREE_REPO_PULL_FLAGS_MIRROR); - PRINT_CONSTANT ((guint)OSTREE_REPO_PULL_FLAGS_NONE); - PRINT_CONSTANT ((guint)OSTREE_REPO_PULL_FLAGS_TRUSTED_HTTP); - PRINT_CONSTANT ((guint)OSTREE_REPO_PULL_FLAGS_UNTRUSTED); - PRINT_CONSTANT ((gint)OSTREE_REPO_REMOTE_CHANGE_ADD); - PRINT_CONSTANT ((gint)OSTREE_REPO_REMOTE_CHANGE_ADD_IF_NOT_EXISTS); - PRINT_CONSTANT ((gint)OSTREE_REPO_REMOTE_CHANGE_DELETE); - PRINT_CONSTANT ((gint)OSTREE_REPO_REMOTE_CHANGE_DELETE_IF_EXISTS); - PRINT_CONSTANT ((gint)OSTREE_REPO_REMOTE_CHANGE_REPLACE); - PRINT_CONSTANT ((guint)OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY); - PRINT_CONSTANT ((guint)OSTREE_REPO_RESOLVE_REV_EXT_NONE); - PRINT_CONSTANT ((guint)OSTREE_REPO_VERIFY_FLAGS_NONE); - PRINT_CONSTANT ((guint)OSTREE_REPO_VERIFY_FLAGS_NO_GPG); - PRINT_CONSTANT ((guint)OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI); - PRINT_CONSTANT ((guint)OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL); - PRINT_CONSTANT ((guint)OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING); - PRINT_CONSTANT ((guint)OSTREE_SEPOLICY_RESTORECON_FLAGS_NONE); - PRINT_CONSTANT (OSTREE_SHA256_DIGEST_LEN); - PRINT_CONSTANT (OSTREE_SHA256_STRING_LEN); - PRINT_CONSTANT (OSTREE_SIGN_NAME_ED25519); - PRINT_CONSTANT ((gint)OSTREE_STATIC_DELTA_GENERATE_OPT_LOWLATENCY); - PRINT_CONSTANT ((gint)OSTREE_STATIC_DELTA_GENERATE_OPT_MAJOR); - PRINT_CONSTANT ((gint)OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE); - PRINT_CONSTANT (OSTREE_SUMMARY_GVARIANT_STRING); - PRINT_CONSTANT (OSTREE_SUMMARY_SIG_GVARIANT_STRING); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE); - PRINT_CONSTANT ((guint)OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC); - PRINT_CONSTANT (OSTREE_TIMESTAMP); - PRINT_CONSTANT (OSTREE_TREE_GVARIANT_STRING); - return 0; +int main() { + PRINT_CONSTANT((guint) OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS); + PRINT_CONSTANT((guint) OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS); + PRINT_CONSTANT((guint) OSTREE_CHECKSUM_FLAGS_NONE); + PRINT_CONSTANT(OSTREE_COMMIT_GVARIANT_STRING); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_ARCHITECTURE); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_COLLECTION_BINDING); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_ENDOFLIFE); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_REF_BINDING); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_SOURCE_TITLE); + PRINT_CONSTANT(OSTREE_COMMIT_META_KEY_VERSION); + PRINT_CONSTANT((gint) OSTREE_DEPLOYMENT_UNLOCKED_DEVELOPMENT); + PRINT_CONSTANT((gint) OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX); + PRINT_CONSTANT((gint) OSTREE_DEPLOYMENT_UNLOCKED_NONE); + PRINT_CONSTANT((gint) OSTREE_DEPLOYMENT_UNLOCKED_TRANSIENT); + PRINT_CONSTANT((guint) OSTREE_DIFF_FLAGS_IGNORE_XATTRS); + PRINT_CONSTANT((guint) OSTREE_DIFF_FLAGS_NONE); + PRINT_CONSTANT(OSTREE_DIRMETA_GVARIANT_STRING); + PRINT_CONSTANT(OSTREE_FILEMETA_GVARIANT_STRING); + PRINT_CONSTANT((gint) OSTREE_GPG_ERROR_EXPIRED_KEY); + PRINT_CONSTANT((gint) OSTREE_GPG_ERROR_EXPIRED_SIGNATURE); + PRINT_CONSTANT((gint) OSTREE_GPG_ERROR_INVALID_SIGNATURE); + PRINT_CONSTANT((gint) OSTREE_GPG_ERROR_MISSING_KEY); + PRINT_CONSTANT((gint) OSTREE_GPG_ERROR_NO_SIGNATURE); + PRINT_CONSTANT((gint) OSTREE_GPG_ERROR_REVOKED_KEY); + PRINT_CONSTANT(OSTREE_GPG_KEY_GVARIANT_STRING); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_EXP_TIMESTAMP); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT_PRIMARY); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_HASH_ALGO_NAME); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXPIRED); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP_PRIMARY); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_MISSING); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_REVOKED); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_PUBKEY_ALGO_NAME); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_SIG_EXPIRED); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_TIMESTAMP); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_USER_EMAIL); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_USER_NAME); + PRINT_CONSTANT((gint) OSTREE_GPG_SIGNATURE_ATTR_VALID); + PRINT_CONSTANT((guint) OSTREE_GPG_SIGNATURE_FORMAT_DEFAULT); + PRINT_CONSTANT(OSTREE_MAX_METADATA_SIZE); + PRINT_CONSTANT(OSTREE_MAX_METADATA_WARN_SIZE); + PRINT_CONSTANT(OSTREE_METADATA_KEY_BOOTABLE); + PRINT_CONSTANT(OSTREE_METADATA_KEY_LINUX); + PRINT_CONSTANT(OSTREE_META_KEY_DEPLOY_COLLECTION_ID); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_COMMIT); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_COMMIT_META); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_DIR_META); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_DIR_TREE); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_FILE); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_FILE_XATTRS); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_FILE_XATTRS_LINK); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_PAYLOAD_LINK); + PRINT_CONSTANT((gint) OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT); + PRINT_CONSTANT(OSTREE_ORIGIN_TRANSIENT_GROUP); + PRINT_CONSTANT(OSTREE_PATH_BOOTED); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_FILTER_ALLOW); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_FILTER_SKIP); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_MODE_NONE); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_MODE_USER); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_OVERWRITE_ADD_FILES); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_OVERWRITE_NONE); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_FILES); + PRINT_CONSTANT((gint) OSTREE_REPO_CHECKOUT_OVERWRITE_UNION_IDENTICAL); + PRINT_CONSTANT((gint) OSTREE_REPO_COMMIT_FILTER_ALLOW); + PRINT_CONSTANT((gint) OSTREE_REPO_COMMIT_FILTER_SKIP); + PRINT_CONSTANT((gint) OSTREE_REPO_COMMIT_ITER_RESULT_DIR); + PRINT_CONSTANT((gint) OSTREE_REPO_COMMIT_ITER_RESULT_END); + PRINT_CONSTANT((gint) OSTREE_REPO_COMMIT_ITER_RESULT_ERROR); + PRINT_CONSTANT((gint) OSTREE_REPO_COMMIT_ITER_RESULT_FILE); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CONSUME); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_ERROR_ON_UNLABELED); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SELINUX_LABEL_V1); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_STATE_NORMAL); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_STATE_PARTIAL); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_TRAVERSE_FLAG_COMMIT_ONLY); + PRINT_CONSTANT((guint) OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_OBJECTS_ALL); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_OBJECTS_LOOSE); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_OBJECTS_NO_PARENTS); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_OBJECTS_PACKED); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_REFS_EXT_ALIASES); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_REMOTES); + PRINT_CONSTANT((guint) OSTREE_REPO_LIST_REFS_EXT_NONE); + PRINT_CONSTANT((gint) OSTREE_REPO_LOCK_EXCLUSIVE); + PRINT_CONSTANT((gint) OSTREE_REPO_LOCK_SHARED); + PRINT_CONSTANT(OSTREE_REPO_METADATA_REF); + PRINT_CONSTANT((gint) OSTREE_REPO_MODE_ARCHIVE); + PRINT_CONSTANT((gint) OSTREE_REPO_MODE_ARCHIVE_Z2); + PRINT_CONSTANT((gint) OSTREE_REPO_MODE_BARE); + PRINT_CONSTANT((gint) OSTREE_REPO_MODE_BARE_SPLIT_XATTRS); + PRINT_CONSTANT((gint) OSTREE_REPO_MODE_BARE_USER); + PRINT_CONSTANT((gint) OSTREE_REPO_MODE_BARE_USER_ONLY); + PRINT_CONSTANT((guint) OSTREE_REPO_PRUNE_FLAGS_COMMIT_ONLY); + PRINT_CONSTANT((guint) OSTREE_REPO_PRUNE_FLAGS_NONE); + PRINT_CONSTANT((guint) OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE); + PRINT_CONSTANT((guint) OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY); + PRINT_CONSTANT((guint) OSTREE_REPO_PULL_FLAGS_BAREUSERONLY_FILES); + PRINT_CONSTANT((guint) OSTREE_REPO_PULL_FLAGS_COMMIT_ONLY); + PRINT_CONSTANT((guint) OSTREE_REPO_PULL_FLAGS_MIRROR); + PRINT_CONSTANT((guint) OSTREE_REPO_PULL_FLAGS_NONE); + PRINT_CONSTANT((guint) OSTREE_REPO_PULL_FLAGS_TRUSTED_HTTP); + PRINT_CONSTANT((guint) OSTREE_REPO_PULL_FLAGS_UNTRUSTED); + PRINT_CONSTANT((gint) OSTREE_REPO_REMOTE_CHANGE_ADD); + PRINT_CONSTANT((gint) OSTREE_REPO_REMOTE_CHANGE_ADD_IF_NOT_EXISTS); + PRINT_CONSTANT((gint) OSTREE_REPO_REMOTE_CHANGE_DELETE); + PRINT_CONSTANT((gint) OSTREE_REPO_REMOTE_CHANGE_DELETE_IF_EXISTS); + PRINT_CONSTANT((gint) OSTREE_REPO_REMOTE_CHANGE_REPLACE); + PRINT_CONSTANT((guint) OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY); + PRINT_CONSTANT((guint) OSTREE_REPO_RESOLVE_REV_EXT_NONE); + PRINT_CONSTANT((guint) OSTREE_REPO_VERIFY_FLAGS_NONE); + PRINT_CONSTANT((guint) OSTREE_REPO_VERIFY_FLAGS_NO_GPG); + PRINT_CONSTANT((guint) OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI); + PRINT_CONSTANT((guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL); + PRINT_CONSTANT((guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING); + PRINT_CONSTANT((guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_NONE); + PRINT_CONSTANT(OSTREE_SHA256_DIGEST_LEN); + PRINT_CONSTANT(OSTREE_SHA256_STRING_LEN); + PRINT_CONSTANT(OSTREE_SIGN_NAME_ED25519); + PRINT_CONSTANT((gint) OSTREE_STATIC_DELTA_GENERATE_OPT_LOWLATENCY); + PRINT_CONSTANT((gint) OSTREE_STATIC_DELTA_GENERATE_OPT_MAJOR); + PRINT_CONSTANT((gint) OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE); + PRINT_CONSTANT(OSTREE_SUMMARY_GVARIANT_STRING); + PRINT_CONSTANT(OSTREE_SUMMARY_SIG_GVARIANT_STRING); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE); + PRINT_CONSTANT((guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC); + PRINT_CONSTANT(OSTREE_TIMESTAMP); + PRINT_CONSTANT(OSTREE_TREE_GVARIANT_STRING); + return 0; } diff --git a/rust-bindings/sys/tests/layout.c b/rust-bindings/sys/tests/layout.c index b1c8f939..0def4cc7 100644 --- a/rust-bindings/sys/tests/layout.c +++ b/rust-bindings/sys/tests/layout.c @@ -6,113 +6,60 @@ #include #include -int -main () -{ - printf ("%s;%zu;%zu\n", "OstreeAsyncProgressClass", sizeof (OstreeAsyncProgressClass), - alignof (OstreeAsyncProgressClass)); - printf ("%s;%zu;%zu\n", "OstreeChecksumFlags", sizeof (OstreeChecksumFlags), - alignof (OstreeChecksumFlags)); - printf ("%s;%zu;%zu\n", "OstreeCollectionRef", sizeof (OstreeCollectionRef), - alignof (OstreeCollectionRef)); - printf ("%s;%zu;%zu\n", "OstreeCollectionRefv", sizeof (OstreeCollectionRefv), - alignof (OstreeCollectionRefv)); - printf ("%s;%zu;%zu\n", "OstreeCommitSizesEntry", sizeof (OstreeCommitSizesEntry), - alignof (OstreeCommitSizesEntry)); - printf ("%s;%zu;%zu\n", "OstreeContentWriterClass", sizeof (OstreeContentWriterClass), - alignof (OstreeContentWriterClass)); - printf ("%s;%zu;%zu\n", "OstreeDeploymentUnlockedState", sizeof (OstreeDeploymentUnlockedState), - alignof (OstreeDeploymentUnlockedState)); - printf ("%s;%zu;%zu\n", "OstreeDiffDirsOptions", sizeof (OstreeDiffDirsOptions), - alignof (OstreeDiffDirsOptions)); - printf ("%s;%zu;%zu\n", "OstreeDiffFlags", sizeof (OstreeDiffFlags), alignof (OstreeDiffFlags)); - printf ("%s;%zu;%zu\n", "OstreeDiffItem", sizeof (OstreeDiffItem), alignof (OstreeDiffItem)); - printf ("%s;%zu;%zu\n", "OstreeGpgError", sizeof (OstreeGpgError), alignof (OstreeGpgError)); - printf ("%s;%zu;%zu\n", "OstreeGpgSignatureAttr", sizeof (OstreeGpgSignatureAttr), - alignof (OstreeGpgSignatureAttr)); - printf ("%s;%zu;%zu\n", "OstreeGpgSignatureFormatFlags", sizeof (OstreeGpgSignatureFormatFlags), - alignof (OstreeGpgSignatureFormatFlags)); - printf ("%s;%zu;%zu\n", "OstreeMutableTreeClass", sizeof (OstreeMutableTreeClass), - alignof (OstreeMutableTreeClass)); - printf ("%s;%zu;%zu\n", "OstreeMutableTreeIter", sizeof (OstreeMutableTreeIter), - alignof (OstreeMutableTreeIter)); - printf ("%s;%zu;%zu\n", "OstreeObjectType", sizeof (OstreeObjectType), - alignof (OstreeObjectType)); - printf ("%s;%zu;%zu\n", "OstreeRepoCheckoutAtOptions", sizeof (OstreeRepoCheckoutAtOptions), - alignof (OstreeRepoCheckoutAtOptions)); - printf ("%s;%zu;%zu\n", "OstreeRepoCheckoutFilterResult", sizeof (OstreeRepoCheckoutFilterResult), - alignof (OstreeRepoCheckoutFilterResult)); - printf ("%s;%zu;%zu\n", "OstreeRepoCheckoutMode", sizeof (OstreeRepoCheckoutMode), - alignof (OstreeRepoCheckoutMode)); - printf ("%s;%zu;%zu\n", "OstreeRepoCheckoutOverwriteMode", - sizeof (OstreeRepoCheckoutOverwriteMode), alignof (OstreeRepoCheckoutOverwriteMode)); - printf ("%s;%zu;%zu\n", "OstreeRepoCommitFilterResult", sizeof (OstreeRepoCommitFilterResult), - alignof (OstreeRepoCommitFilterResult)); - printf ("%s;%zu;%zu\n", "OstreeRepoCommitIterResult", sizeof (OstreeRepoCommitIterResult), - alignof (OstreeRepoCommitIterResult)); - printf ("%s;%zu;%zu\n", "OstreeRepoCommitModifierFlags", sizeof (OstreeRepoCommitModifierFlags), - alignof (OstreeRepoCommitModifierFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoCommitState", sizeof (OstreeRepoCommitState), - alignof (OstreeRepoCommitState)); - printf ("%s;%zu;%zu\n", "OstreeRepoCommitTraverseFlags", sizeof (OstreeRepoCommitTraverseFlags), - alignof (OstreeRepoCommitTraverseFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoCommitTraverseIter", sizeof (OstreeRepoCommitTraverseIter), - alignof (OstreeRepoCommitTraverseIter)); - printf ("%s;%zu;%zu\n", "OstreeRepoFileClass", sizeof (OstreeRepoFileClass), - alignof (OstreeRepoFileClass)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderAvahiClass", sizeof (OstreeRepoFinderAvahiClass), - alignof (OstreeRepoFinderAvahiClass)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderConfigClass", sizeof (OstreeRepoFinderConfigClass), - alignof (OstreeRepoFinderConfigClass)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderInterface", sizeof (OstreeRepoFinderInterface), - alignof (OstreeRepoFinderInterface)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderMountClass", sizeof (OstreeRepoFinderMountClass), - alignof (OstreeRepoFinderMountClass)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderOverrideClass", sizeof (OstreeRepoFinderOverrideClass), - alignof (OstreeRepoFinderOverrideClass)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderResult", sizeof (OstreeRepoFinderResult), - alignof (OstreeRepoFinderResult)); - printf ("%s;%zu;%zu\n", "OstreeRepoFinderResultv", sizeof (OstreeRepoFinderResultv), - alignof (OstreeRepoFinderResultv)); - printf ("%s;%zu;%zu\n", "OstreeRepoListObjectsFlags", sizeof (OstreeRepoListObjectsFlags), - alignof (OstreeRepoListObjectsFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoListRefsExtFlags", sizeof (OstreeRepoListRefsExtFlags), - alignof (OstreeRepoListRefsExtFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoLockType", sizeof (OstreeRepoLockType), - alignof (OstreeRepoLockType)); - printf ("%s;%zu;%zu\n", "OstreeRepoMode", sizeof (OstreeRepoMode), alignof (OstreeRepoMode)); - printf ("%s;%zu;%zu\n", "OstreeRepoPruneFlags", sizeof (OstreeRepoPruneFlags), - alignof (OstreeRepoPruneFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoPruneOptions", sizeof (OstreeRepoPruneOptions), - alignof (OstreeRepoPruneOptions)); - printf ("%s;%zu;%zu\n", "OstreeRepoPullFlags", sizeof (OstreeRepoPullFlags), - alignof (OstreeRepoPullFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoRemoteChange", sizeof (OstreeRepoRemoteChange), - alignof (OstreeRepoRemoteChange)); - printf ("%s;%zu;%zu\n", "OstreeRepoResolveRevExtFlags", sizeof (OstreeRepoResolveRevExtFlags), - alignof (OstreeRepoResolveRevExtFlags)); - printf ("%s;%zu;%zu\n", "OstreeRepoTransactionStats", sizeof (OstreeRepoTransactionStats), - alignof (OstreeRepoTransactionStats)); - printf ("%s;%zu;%zu\n", "OstreeRepoVerifyFlags", sizeof (OstreeRepoVerifyFlags), - alignof (OstreeRepoVerifyFlags)); - printf ("%s;%zu;%zu\n", "OstreeSePolicyRestoreconFlags", sizeof (OstreeSePolicyRestoreconFlags), - alignof (OstreeSePolicyRestoreconFlags)); - printf ("%s;%zu;%zu\n", "OstreeSignInterface", sizeof (OstreeSignInterface), - alignof (OstreeSignInterface)); - printf ("%s;%zu;%zu\n", "OstreeStaticDeltaGenerateOpt", sizeof (OstreeStaticDeltaGenerateOpt), - alignof (OstreeStaticDeltaGenerateOpt)); - printf ("%s;%zu;%zu\n", "OstreeStaticDeltaIndexFlags", sizeof (OstreeStaticDeltaIndexFlags), - alignof (OstreeStaticDeltaIndexFlags)); - printf ("%s;%zu;%zu\n", "OstreeSysrootDeployTreeOpts", sizeof (OstreeSysrootDeployTreeOpts), - alignof (OstreeSysrootDeployTreeOpts)); - printf ("%s;%zu;%zu\n", "OstreeSysrootSimpleWriteDeploymentFlags", - sizeof (OstreeSysrootSimpleWriteDeploymentFlags), - alignof (OstreeSysrootSimpleWriteDeploymentFlags)); - printf ("%s;%zu;%zu\n", "OstreeSysrootUpgraderFlags", sizeof (OstreeSysrootUpgraderFlags), - alignof (OstreeSysrootUpgraderFlags)); - printf ("%s;%zu;%zu\n", "OstreeSysrootUpgraderPullFlags", sizeof (OstreeSysrootUpgraderPullFlags), - alignof (OstreeSysrootUpgraderPullFlags)); - printf ("%s;%zu;%zu\n", "OstreeSysrootWriteDeploymentsOpts", - sizeof (OstreeSysrootWriteDeploymentsOpts), alignof (OstreeSysrootWriteDeploymentsOpts)); - return 0; +int main() { + printf("%s;%zu;%zu\n", "OstreeAsyncProgressClass", sizeof(OstreeAsyncProgressClass), alignof(OstreeAsyncProgressClass)); + printf("%s;%zu;%zu\n", "OstreeChecksumFlags", sizeof(OstreeChecksumFlags), alignof(OstreeChecksumFlags)); + printf("%s;%zu;%zu\n", "OstreeCollectionRef", sizeof(OstreeCollectionRef), alignof(OstreeCollectionRef)); + printf("%s;%zu;%zu\n", "OstreeCollectionRefv", sizeof(OstreeCollectionRefv), alignof(OstreeCollectionRefv)); + printf("%s;%zu;%zu\n", "OstreeCommitSizesEntry", sizeof(OstreeCommitSizesEntry), alignof(OstreeCommitSizesEntry)); + printf("%s;%zu;%zu\n", "OstreeContentWriterClass", sizeof(OstreeContentWriterClass), alignof(OstreeContentWriterClass)); + printf("%s;%zu;%zu\n", "OstreeDeploymentUnlockedState", sizeof(OstreeDeploymentUnlockedState), alignof(OstreeDeploymentUnlockedState)); + printf("%s;%zu;%zu\n", "OstreeDiffDirsOptions", sizeof(OstreeDiffDirsOptions), alignof(OstreeDiffDirsOptions)); + printf("%s;%zu;%zu\n", "OstreeDiffFlags", sizeof(OstreeDiffFlags), alignof(OstreeDiffFlags)); + printf("%s;%zu;%zu\n", "OstreeDiffItem", sizeof(OstreeDiffItem), alignof(OstreeDiffItem)); + printf("%s;%zu;%zu\n", "OstreeGpgError", sizeof(OstreeGpgError), alignof(OstreeGpgError)); + printf("%s;%zu;%zu\n", "OstreeGpgSignatureAttr", sizeof(OstreeGpgSignatureAttr), alignof(OstreeGpgSignatureAttr)); + printf("%s;%zu;%zu\n", "OstreeGpgSignatureFormatFlags", sizeof(OstreeGpgSignatureFormatFlags), alignof(OstreeGpgSignatureFormatFlags)); + printf("%s;%zu;%zu\n", "OstreeMutableTreeClass", sizeof(OstreeMutableTreeClass), alignof(OstreeMutableTreeClass)); + printf("%s;%zu;%zu\n", "OstreeMutableTreeIter", sizeof(OstreeMutableTreeIter), alignof(OstreeMutableTreeIter)); + printf("%s;%zu;%zu\n", "OstreeObjectType", sizeof(OstreeObjectType), alignof(OstreeObjectType)); + printf("%s;%zu;%zu\n", "OstreeRepoCheckoutAtOptions", sizeof(OstreeRepoCheckoutAtOptions), alignof(OstreeRepoCheckoutAtOptions)); + printf("%s;%zu;%zu\n", "OstreeRepoCheckoutFilterResult", sizeof(OstreeRepoCheckoutFilterResult), alignof(OstreeRepoCheckoutFilterResult)); + printf("%s;%zu;%zu\n", "OstreeRepoCheckoutMode", sizeof(OstreeRepoCheckoutMode), alignof(OstreeRepoCheckoutMode)); + printf("%s;%zu;%zu\n", "OstreeRepoCheckoutOverwriteMode", sizeof(OstreeRepoCheckoutOverwriteMode), alignof(OstreeRepoCheckoutOverwriteMode)); + printf("%s;%zu;%zu\n", "OstreeRepoCommitFilterResult", sizeof(OstreeRepoCommitFilterResult), alignof(OstreeRepoCommitFilterResult)); + printf("%s;%zu;%zu\n", "OstreeRepoCommitIterResult", sizeof(OstreeRepoCommitIterResult), alignof(OstreeRepoCommitIterResult)); + printf("%s;%zu;%zu\n", "OstreeRepoCommitModifierFlags", sizeof(OstreeRepoCommitModifierFlags), alignof(OstreeRepoCommitModifierFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoCommitState", sizeof(OstreeRepoCommitState), alignof(OstreeRepoCommitState)); + printf("%s;%zu;%zu\n", "OstreeRepoCommitTraverseFlags", sizeof(OstreeRepoCommitTraverseFlags), alignof(OstreeRepoCommitTraverseFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoCommitTraverseIter", sizeof(OstreeRepoCommitTraverseIter), alignof(OstreeRepoCommitTraverseIter)); + printf("%s;%zu;%zu\n", "OstreeRepoFileClass", sizeof(OstreeRepoFileClass), alignof(OstreeRepoFileClass)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderAvahiClass", sizeof(OstreeRepoFinderAvahiClass), alignof(OstreeRepoFinderAvahiClass)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderConfigClass", sizeof(OstreeRepoFinderConfigClass), alignof(OstreeRepoFinderConfigClass)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderInterface", sizeof(OstreeRepoFinderInterface), alignof(OstreeRepoFinderInterface)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderMountClass", sizeof(OstreeRepoFinderMountClass), alignof(OstreeRepoFinderMountClass)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderOverrideClass", sizeof(OstreeRepoFinderOverrideClass), alignof(OstreeRepoFinderOverrideClass)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderResult", sizeof(OstreeRepoFinderResult), alignof(OstreeRepoFinderResult)); + printf("%s;%zu;%zu\n", "OstreeRepoFinderResultv", sizeof(OstreeRepoFinderResultv), alignof(OstreeRepoFinderResultv)); + printf("%s;%zu;%zu\n", "OstreeRepoListObjectsFlags", sizeof(OstreeRepoListObjectsFlags), alignof(OstreeRepoListObjectsFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoListRefsExtFlags", sizeof(OstreeRepoListRefsExtFlags), alignof(OstreeRepoListRefsExtFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoLockType", sizeof(OstreeRepoLockType), alignof(OstreeRepoLockType)); + printf("%s;%zu;%zu\n", "OstreeRepoMode", sizeof(OstreeRepoMode), alignof(OstreeRepoMode)); + printf("%s;%zu;%zu\n", "OstreeRepoPruneFlags", sizeof(OstreeRepoPruneFlags), alignof(OstreeRepoPruneFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoPruneOptions", sizeof(OstreeRepoPruneOptions), alignof(OstreeRepoPruneOptions)); + printf("%s;%zu;%zu\n", "OstreeRepoPullFlags", sizeof(OstreeRepoPullFlags), alignof(OstreeRepoPullFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoRemoteChange", sizeof(OstreeRepoRemoteChange), alignof(OstreeRepoRemoteChange)); + printf("%s;%zu;%zu\n", "OstreeRepoResolveRevExtFlags", sizeof(OstreeRepoResolveRevExtFlags), alignof(OstreeRepoResolveRevExtFlags)); + printf("%s;%zu;%zu\n", "OstreeRepoTransactionStats", sizeof(OstreeRepoTransactionStats), alignof(OstreeRepoTransactionStats)); + printf("%s;%zu;%zu\n", "OstreeRepoVerifyFlags", sizeof(OstreeRepoVerifyFlags), alignof(OstreeRepoVerifyFlags)); + printf("%s;%zu;%zu\n", "OstreeSePolicyRestoreconFlags", sizeof(OstreeSePolicyRestoreconFlags), alignof(OstreeSePolicyRestoreconFlags)); + printf("%s;%zu;%zu\n", "OstreeSignInterface", sizeof(OstreeSignInterface), alignof(OstreeSignInterface)); + printf("%s;%zu;%zu\n", "OstreeStaticDeltaGenerateOpt", sizeof(OstreeStaticDeltaGenerateOpt), alignof(OstreeStaticDeltaGenerateOpt)); + printf("%s;%zu;%zu\n", "OstreeStaticDeltaIndexFlags", sizeof(OstreeStaticDeltaIndexFlags), alignof(OstreeStaticDeltaIndexFlags)); + printf("%s;%zu;%zu\n", "OstreeSysrootDeployTreeOpts", sizeof(OstreeSysrootDeployTreeOpts), alignof(OstreeSysrootDeployTreeOpts)); + printf("%s;%zu;%zu\n", "OstreeSysrootSimpleWriteDeploymentFlags", sizeof(OstreeSysrootSimpleWriteDeploymentFlags), alignof(OstreeSysrootSimpleWriteDeploymentFlags)); + printf("%s;%zu;%zu\n", "OstreeSysrootUpgraderFlags", sizeof(OstreeSysrootUpgraderFlags), alignof(OstreeSysrootUpgraderFlags)); + printf("%s;%zu;%zu\n", "OstreeSysrootUpgraderPullFlags", sizeof(OstreeSysrootUpgraderPullFlags), alignof(OstreeSysrootUpgraderPullFlags)); + printf("%s;%zu;%zu\n", "OstreeSysrootWriteDeploymentsOpts", sizeof(OstreeSysrootWriteDeploymentsOpts), alignof(OstreeSysrootWriteDeploymentsOpts)); + return 0; }