2020-08-26 22:44:57 +03:00
# Legend:
# - [IGNORE] we don't want to autogenerate this
# - [MANUAL] we have manual wrappers for this, but would prefer to autogenerate it
# - [FAIL] this is currently disabled because it generates broken code
2018-09-29 17:23:10 +03:00
[ options ]
work_mode = "normal"
library = "OSTree"
version = "1.0"
2018-10-20 12:59:07 +03:00
target_path = ".."
2018-10-18 22:58:56 +03:00
doc_target_path = "../target/vendor.md"
2018-09-29 17:23:10 +03:00
deprecate_by_min_version = true
2019-05-17 19:54:48 +03:00
single_version_file = true
generate_display_trait = true
2018-09-29 17:23:10 +03:00
girs_dir = "../gir-files"
generate = [
2018-09-29 20:14:14 +03:00
"OSTree.AsyncProgress" ,
2019-05-18 22:44:00 +03:00
"OSTree.BootconfigParser" ,
2019-05-21 21:55:21 +03:00
"OSTree.ChecksumFlags" ,
2021-04-09 18:18:36 +03:00
"OSTree.ContentWriter" ,
2020-08-26 01:45:57 +03:00
"OSTree.CommitSizesEntry" ,
2019-05-18 22:44:00 +03:00
"OSTree.Deployment" ,
"OSTree.DeploymentUnlockedState" ,
2019-05-21 21:55:21 +03:00
"OSTree.DiffFlags" ,
"OSTree.DiffItem" ,
"OSTree.GpgSignatureAttr" ,
2018-09-29 20:14:14 +03:00
"OSTree.GpgSignatureFormatFlags" ,
"OSTree.GpgVerifyResult" ,
2019-05-18 17:13:40 +03:00
"OSTree.MutableTree" ,
2018-09-29 17:23:10 +03:00
"OSTree.ObjectType" ,
2018-09-29 20:14:14 +03:00
"OSTree.Remote" ,
2019-05-31 22:56:44 +03:00
"OSTree.RepoCheckoutFilterResult" ,
2018-09-29 20:14:14 +03:00
"OSTree.RepoCheckoutMode" ,
"OSTree.RepoCheckoutOverwriteMode" ,
2019-06-13 22:54:15 +03:00
"OSTree.RepoCommitFilterResult" ,
"OSTree.RepoCommitFilter" ,
"OSTree.RepoCommitIterResult" ,
"OSTree.RepoCommitModifierFlags" ,
"OSTree.RepoCommitTraverseFlags" ,
2018-09-29 20:14:14 +03:00
"OSTree.RepoCommitModifier" ,
"OSTree.RepoCommitState" ,
"OSTree.RepoDevInoCache" ,
2019-05-18 18:18:11 +03:00
"OSTree.RepoFile" ,
2019-06-13 20:52:51 +03:00
"OSTree.RepoFinderAvahi" ,
"OSTree.RepoFinderConfig" ,
"OSTree.RepoFinderMount" ,
"OSTree.RepoFinderOverride" ,
2019-06-13 22:54:15 +03:00
"OSTree.RepoListObjectsFlags" ,
2019-05-18 17:13:40 +03:00
"OSTree.RepoListRefsExtFlags" ,
2018-09-29 20:14:14 +03:00
"OSTree.RepoMode" ,
"OSTree.RepoPruneFlags" ,
"OSTree.RepoPullFlags" ,
"OSTree.RepoRemoteChange" ,
"OSTree.RepoResolveRevExtFlags" ,
"OSTree.SePolicyRestoreconFlags" ,
"OSTree.StaticDeltaGenerateOpt" ,
2019-05-18 22:44:00 +03:00
"OSTree.SysrootSimpleWriteDeploymentFlags" ,
"OSTree.SysrootUpgrader" ,
"OSTree.SysrootUpgraderFlags" ,
"OSTree.SysrootUpgraderPullFlags" ,
2018-09-29 17:23:10 +03:00
]
2018-09-29 18:39:48 +03:00
manual = [
2019-06-13 22:54:15 +03:00
# types from glib/gio we need
2019-06-13 21:01:54 +03:00
"Gio.AsyncReadyCallback" ,
"Gio.AsyncResult" ,
2018-09-29 18:39:48 +03:00
"Gio.Cancellable" ,
"Gio.File" ,
2018-09-29 20:14:14 +03:00
"Gio.FileInfo" ,
"Gio.FileQueryInfoFlags" ,
2019-06-13 22:54:15 +03:00
"Gio.FilterInputStream" ,
2018-09-29 20:14:14 +03:00
"Gio.InputStream" ,
2021-04-09 18:18:36 +03:00
"Gio.OutputStream" ,
2019-06-13 21:01:54 +03:00
"Gio.VolumeMonitor" ,
2018-09-29 20:14:14 +03:00
"GLib.Bytes" ,
2019-06-13 22:54:15 +03:00
"GLib.Checksum" ,
"GLib.DestroyNotify" ,
2018-09-29 20:14:14 +03:00
"GLib.Error" ,
"GLib.KeyFile" ,
2019-06-13 21:01:54 +03:00
"GLib.MainContext" ,
"GLib.Quark" ,
2018-09-29 20:14:14 +03:00
"GLib.String" ,
"GLib.Variant" ,
2019-06-13 21:01:54 +03:00
"GLib.VariantType" ,
2019-05-26 20:18:12 +03:00
2020-08-26 22:44:57 +03:00
# [MANUAL] types implemented by hand
2019-08-31 14:14:08 +03:00
"OSTree.KernelArgs" ,
2019-05-26 20:18:12 +03:00
"OSTree.RepoCheckoutAtOptions" ,
2019-06-13 20:52:51 +03:00
"OSTree.RepoCheckoutFilter" ,
2021-06-23 20:12:40 +03:00
"OSTree.RepoTransactionStats" ,
2020-08-26 11:13:01 +03:00
"OSTree.SysrootWriteDeploymentsOpts" ,
2020-10-18 14:21:53 +03:00
"OSTree.SysrootDeployTreeOpts" ,
2019-06-13 20:52:51 +03:00
]
ignore = [
2019-06-13 21:18:31 +03:00
# only used for the already-deprecated checkout_tree_at function
2019-06-13 20:52:51 +03:00
"OSTree.RepoCheckoutOptions" ,
2019-06-13 22:54:15 +03:00
# types for zero-terminated arrays we probably don't want
"OSTree.CollectionRefv" ,
"OSTree.RepoFinderResultv" ,
# not part of the public interface, as far as I can tell
"OSTree.Bootloader" ,
"OSTree.BootloaderGrub2" ,
"OSTree.BootloaderInterface" ,
"OSTree.BootloaderSyslinux" ,
"OSTree.BootloaderUboot" ,
2019-10-31 17:31:18 +03:00
"OSTree.BootloaderZipl" ,
2019-06-13 22:54:15 +03:00
"OSTree.ChecksumInputStream" ,
"OSTree.ChecksumInputStreamBuilder" ,
"OSTree.CmdPrivateVTable" ,
"OSTree.GpgVerifier" ,
"OSTree.LibarchiveInputStream" ,
"OSTree.LzmaCompressor" ,
"OSTree.LzmaDecompressor" ,
"OSTree.RollsumMatches" ,
# builders we don't want
"OSTree.RepoBuilder" ,
2019-10-31 17:31:18 +03:00
"OSTree.RepoFinderMountBuilder" ,
"OSTree.SePolicyBuilder" ,
2019-06-13 22:54:15 +03:00
"OSTree.SysrootBuilder" ,
2019-10-31 17:31:18 +03:00
"OSTree.SysrootUpgraderBuilder" ,
2018-09-29 18:39:48 +03:00
]
2019-05-21 01:08:26 +03:00
[ crate_name_overrides ]
os_tree = "ostree"
2018-10-20 14:03:31 +03:00
[ [ object ] ]
name = "OSTree.CollectionRef"
2019-05-21 20:38:30 +03:00
status = "generate"
2019-05-18 14:57:50 +03:00
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] helper functions for NULL-terminated arrays
2020-08-26 23:18:00 +03:00
pattern = "^(dupv|freev)$"
2019-05-18 14:57:50 +03:00
ignore = true
2018-10-20 14:03:31 +03:00
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] clone() should already be this
2019-05-18 14:57:50 +03:00
name = "dup"
2018-10-20 14:03:31 +03:00
ignore = true
2018-09-29 17:23:10 +03:00
[ [ object ] ]
name = "OSTree.Repo"
status = "generate"
2021-04-02 16:47:02 +03:00
concurrency = "send"
2019-06-13 21:18:31 +03:00
[ [ object . function ] ]
2020-08-26 22:50:43 +03:00
# [MANUAL] we special-case the checksum value
2020-08-26 23:18:00 +03:00
pattern = "^(write_content|write_content_async|write_metadata|write_metadata_async)$"
2019-06-13 21:18:31 +03:00
ignore = true
2019-06-28 21:46:38 +03:00
2019-08-29 00:26:24 +03:00
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [FAIL] these fail because of issues with arrays of dubious lifetimes
2020-08-26 23:18:00 +03:00
pattern = "^(find_remotes_async|pull_from_remotes_async)$"
2019-08-29 00:26:24 +03:00
ignore = true
2019-05-26 15:12:55 +03:00
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] this is deprecated and supposedly unsafe for GI
2019-05-26 15:12:55 +03:00
name = "checkout_tree_at"
ignore = true
2019-05-26 20:18:12 +03:00
[ [ object . function ] ]
name = "checkout_at"
[ [ object . function . parameter ] ]
name = "options"
const = true
[ [ object . function . parameter ] ]
name = "destination_path"
string_type = "filename"
2020-04-01 21:21:48 +03:00
[ [ object ] ]
name = "OSTree.RepoFinder"
status = "generate"
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [FAIL] these fail because of issues with arrays of dubious lifetimes/NULL-terminated arrays
2020-08-26 23:18:00 +03:00
pattern = "^(resolve_async|resolve_all_async)$"
2020-04-01 21:21:48 +03:00
ignore = true
2019-05-21 21:55:21 +03:00
[ [ object ] ]
name = "OSTree.RepoFinderResult"
status = "generate"
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] array helper function
2019-05-21 21:55:21 +03:00
name = "freev"
ignore = true
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] clone() should already be this
2019-05-21 21:55:21 +03:00
name = "dup"
2018-09-29 18:39:48 +03:00
ignore = true
2018-09-29 20:14:14 +03:00
2020-08-26 02:03:41 +03:00
[ [ object ] ]
name = "OSTree.SePolicy"
status = "generate"
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] has an unused raw pointer parameter
2020-08-26 02:03:41 +03:00
name = "fscreatecon_cleanup"
ignore = true
2020-08-25 21:17:25 +03:00
[ [ object ] ]
name = "OSTree.Sign"
status = "generate"
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] these shouldn't be on this type, they belong to subclasses
2020-08-26 23:18:00 +03:00
pattern = "^(dummy_.+|ed25519_.+)$"
2020-08-25 21:17:25 +03:00
ignore = true
2020-08-26 11:13:01 +03:00
[ [ object ] ]
name = "OSTree.Sysroot"
status = "generate"
2020-10-18 14:21:53 +03:00
[ [ object . function ] ]
name = "deploy_tree_with_options"
[ [ object . function . parameter ] ]
name = "opts"
const = true
[ [ object . function ] ]
name = "stage_tree_with_options"
[ [ object . function . parameter ] ]
name = "opts"
const = true
2020-08-26 11:13:01 +03:00
[ [ object . function ] ]
name = "write_deployments_with_options"
[ [ object . function . parameter ] ]
name = "opts"
const = true
2018-09-30 16:17:26 +03:00
[ [ object ] ]
name = "OSTree.*"
status = "generate"
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [MANUAL] probably can't be autogenerated because of the custom Checksum type
2020-08-26 23:18:00 +03:00
pattern = "^(checksum_file|checksum_file_async|checksum_file_at|checksum_file_from_input)$"
2020-08-26 22:44:57 +03:00
ignore = true
[ [ object . function ] ]
# [IGNORE] low-level checksum functions, we have a custom checksum API
2020-08-26 23:18:00 +03:00
pattern = "^(cmp_checksum_bytes|checksum_from_bytes|checksum_to_bytes|checksum_inplace_from_bytes|checksum_inplace_to_bytes|checksum_b64_from_bytes|checksum_b64_to_bytes|checksum_b64_inplace_from_bytes|checksum_b64_inplace_to_bytes)$"
2020-08-26 22:44:57 +03:00
ignore = true
[ [ object . function ] ]
# [IGNORE] needs custom handling to deal with its raw pointer parameter
2020-08-26 23:18:00 +03:00
name = "hash_object_name"
2020-08-26 00:45:32 +03:00
ignore = true
[ [ object . function ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] private API
2020-08-26 23:18:00 +03:00
name = "cmd__private__"
2018-09-30 16:17:26 +03:00
ignore = true
2019-05-16 20:44:58 +03:00
[ [ object . constant ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] version-dependent constants
2020-08-26 23:18:00 +03:00
pattern = "^(VERSION|VERSION_S|YEAR_VERSION|RELEASE_VERSION)$"
2019-05-16 20:44:58 +03:00
ignore = true
2019-08-29 00:23:22 +03:00
[ [ object . constant ] ]
2020-08-26 22:44:57 +03:00
# [IGNORE] build-dependent constants
2020-08-26 23:18:00 +03:00
name = "BUILT_FEATURES"
2019-08-29 00:23:22 +03:00
ignore = true