summaryrefslogtreecommitdiff
path: root/rust-bindings/sys
diff options
context:
space:
mode:
Diffstat (limited to 'rust-bindings/sys')
-rw-r--r--rust-bindings/sys/tests/constant.c336
-rw-r--r--rust-bindings/sys/tests/layout.c165
-rw-r--r--rust-bindings/sys/tests/manual.h6
3 files changed, 281 insertions, 226 deletions
diff --git a/rust-bindings/sys/tests/constant.c b/rust-bindings/sys/tests/constant.c
index d65f4666..7b3a9d7c 100644
--- a/rust-bindings/sys/tests/constant.c
+++ b/rust-bindings/sys/tests/constant.c
@@ -6,172 +6,174 @@
#include <stdio.h>
#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_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 0def4cc7..b1c8f939 100644
--- a/rust-bindings/sys/tests/layout.c
+++ b/rust-bindings/sys/tests/layout.c
@@ -6,60 +6,113 @@
#include <stdalign.h>
#include <stdio.h>
-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;
}
diff --git a/rust-bindings/sys/tests/manual.h b/rust-bindings/sys/tests/manual.h
index 0e2e16c3..15ce6fb4 100644
--- a/rust-bindings/sys/tests/manual.h
+++ b/rust-bindings/sys/tests/manual.h
@@ -3,7 +3,7 @@
// hack to build and test on versions of libostree < 2019.2
#if !OSTREE_CHECK_VERSION(2019, 2)
-# define OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS 4
-# define OSTREE_REPO_REMOTE_CHANGE_REPLACE 4
-# define OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY 1
+#define OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS 4
+#define OSTREE_REPO_REMOTE_CHANGE_REPLACE 4
+#define OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY 1
#endif