diff --git a/rust-bindings/rust/Cargo.toml b/rust-bindings/rust/Cargo.toml index 9643fef6..8f82bc92 100644 --- a/rust-bindings/rust/Cargo.toml +++ b/rust-bindings/rust/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "ostree" readme = "README.md" repository = "https://github.com/ostreedev/ostree-rs" -version = "0.12.3" +version = "0.13.0" exclude = [ "conf/**", @@ -85,3 +85,4 @@ v2020_8 = ["v2020_7", "ffi/v2020_8"] v2021_1 = ["v2020_8", "ffi/v2021_1"] v2021_2 = ["v2021_1", "ffi/v2021_2"] v2021_3 = ["v2021_2", "ffi/v2021_3"] +v2021_4 = ["v2021_3", "ffi/v2021_4"] diff --git a/rust-bindings/rust/conf/ostree.toml b/rust-bindings/rust/conf/ostree.toml index 0e9611ff..1d72f850 100644 --- a/rust-bindings/rust/conf/ostree.toml +++ b/rust-bindings/rust/conf/ostree.toml @@ -54,6 +54,7 @@ generate = [ "OSTree.RepoPullFlags", "OSTree.RepoRemoteChange", "OSTree.RepoResolveRevExtFlags", + "OSTree.RepoVerifyFlags", "OSTree.SePolicyRestoreconFlags", "OSTree.StaticDeltaGenerateOpt", "OSTree.SysrootSimpleWriteDeploymentFlags", diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir index 25571d00..85fe46b1 100644 --- a/rust-bindings/rust/gir-files/OSTree-1.0.gir +++ b/rust-bindings/rust/gir-files/OSTree-1.0.gir @@ -551,7 +551,7 @@ Any watchers of the #OstreeAsyncProgress will be notified of the change if - + Flags influencing checksumming logic. + + Default checksumming without tweaks. + (Since: 2017.13.) + Ignore xattrs when checksumming. + (Since: 2017.13.) + + + Use canonical uid/gid/mode + values, for bare-user-only mode. (Since: 2021.4.) c:symbol-prefix="commit_sizes_entry"> Structure representing an entry in the "ostree.sizes" commit metadata. Each + line="546">Structure representing an entry in the "ostree.sizes" commit metadata. Each entry corresponds to an object in the associated commit. - + object checksum + line="548">object checksum object type + line="549">object type unpacked object size + line="550">unpacked object size compressed object size + line="551">compressed object size version="2020.1"> Create a new #OstreeCommitSizesEntry for representing an object in a + line="2449">Create a new #OstreeCommitSizesEntry for representing an object in a commit's "ostree.sizes" metadata. - + a new #OstreeCommitSizesEntry + line="2459">a new #OstreeCommitSizesEntry object checksum + line="2451">object checksum object type + line="2452">object type unpacked object size + line="2453">unpacked object size compressed object size + line="2454">compressed object size @@ -1583,19 +1602,19 @@ commit's "ostree.sizes" metadata. version="2020.1"> Create a copy of the given @entry. - + line="2479">Create a copy of the given @entry. + a new copy of @entry + line="2485">a new copy of @entry an #OstreeCommitSizesEntry + line="2481">an #OstreeCommitSizesEntry @@ -1606,8 +1625,8 @@ commit's "ostree.sizes" metadata. version="2020.1"> Free given @entry. - + line="2499">Free given @entry. + @@ -1615,7 +1634,7 @@ commit's "ostree.sizes" metadata. an #OstreeCommitSizesEntry + line="2501">an #OstreeCommitSizesEntry @@ -2264,6 +2283,12 @@ ostree_diff_dirs_with_options(). + + + + @@ -3809,7 +3834,7 @@ exhaustion attacks. version="2018.9"> GVariant type `s`. This key can be used in the repo metadata which is stored + line="1644">GVariant type `s`. This key can be used in the repo metadata which is stored in OSTREE_REPO_METADATA_REF as well as in the summary. The semantics of this are that the remote repository wants clients to update their remote config to add this collection ID (clients can't do P2P operations involving a @@ -3824,7 +3849,7 @@ Flatpak may implement it. This is a replacement for the similar metadata key implemented by flatpak, `xa.collection-id`, which is now deprecated as clients which supported it had bugs with their P2P implementations. - + version="2018.6"> The name of a ref which is used to store metadata for the entire repository, + line="1621">The name of a ref which is used to store metadata for the entire repository, such as its expected update time (`ostree.summary.expires`), name, or new GPG keys. Metadata is stored on contentless commits in the ref, and hence is signed with the commits. @@ -4456,7 +4481,7 @@ collection ID (ostree_repo_set_collection_id()). Users of OSTree may place arbitrary metadata in commits on this ref, but the keys must be namespaced by product or developer. For example, `exampleos.end-of-life`. The `ostree.` prefix is reserved. - + An accessor object for an OSTree repository located at @path + line="1267">An accessor object for an OSTree repository located at @path Path to a repository + line="1265">Path to a repository @@ -4582,7 +4607,7 @@ reference count reaches 0. If the current working directory appears to be an OSTree + line="1340">If the current working directory appears to be an OSTree repository, create a new #OstreeRepo object for accessing it. Otherwise use the path in the OSTREE_REPO environment variable (if defined) or else the default system repository located at @@ -4591,7 +4616,7 @@ Otherwise use the path in the OSTREE_REPO environment variable An accessor object for an OSTree repository located at /ostree/repo + line="1349">An accessor object for an OSTree repository located at /ostree/repo @@ -4599,26 +4624,26 @@ Otherwise use the path in the OSTREE_REPO environment variable c:identifier="ostree_repo_new_for_sysroot_path"> Creates a new #OstreeRepo instance, taking the system root path explicitly + line="1323">Creates a new #OstreeRepo instance, taking the system root path explicitly instead of assuming "/". An accessor object for the OSTree repository located at @repo_path. + line="1331">An accessor object for the OSTree repository located at @repo_path. Path to a repository + line="1325">Path to a repository Path to the system root + line="1326">Path to the system root @@ -4629,7 +4654,7 @@ instead of assuming "/". throws="1"> This is a file-descriptor relative version of ostree_repo_create(). + line="2748">This is a file-descriptor relative version of ostree_repo_create(). Create the underlying structure on disk for the repository, and call ostree_repo_open_at() on the result, preparing it for use. @@ -4645,26 +4670,26 @@ The @options dict may contain: A new OSTree repository reference + line="2770">A new OSTree repository reference Directory fd + line="2750">Directory fd Path + line="2751">Path The mode to store the repository in + line="2752">The mode to store the repository in a{sv}: See below for accepted keys + line="2753">a{sv}: See below for accepted keys Cancellable + line="2754">Cancellable @@ -4698,7 +4723,7 @@ The @options dict may contain: a repo mode as a string + line="2574">a repo mode as a string the corresponding #OstreeRepoMode + line="2575">the corresponding #OstreeRepoMode @@ -4718,27 +4743,27 @@ The @options dict may contain: throws="1"> This combines ostree_repo_new() (but using fd-relative access) with + line="1288">This combines ostree_repo_new() (but using fd-relative access) with ostree_repo_open(). Use this when you know you should be operating on an already extant repository. If you want to create one, use ostree_repo_create_at(). An accessor object for an OSTree repository located at @dfd + @path + line="1297">An accessor object for an OSTree repository located at @dfd + @path Directory fd + line="1290">Directory fd Path + line="1291">Path Convenient "changed" callback for use with + line="4934">Convenient "changed" callback for use with ostree_async_progress_new_and_connect() when pulling from a remote repository. @@ -4765,7 +4790,7 @@ number of objects. Compatibility note: this function previously assumed that @user_data was a pointer to a #GSConsole instance. This is no longer the case, and @user_data is ignored. - + @@ -4773,7 +4798,7 @@ and @user_data is ignored. Async progress + line="4936">Async progress allow-none="1"> User data + line="4937">User data @@ -4795,7 +4820,7 @@ and @user_data is ignored. line="297">This hash table is a mapping from #GVariant which can be accessed via ostree_object_name_deserialize() to a #GVariant containing either a similar #GVariant or and array of them, listing the parents of the key. - + filename="ostree-repo-traverse.c" line="282">This hash table is a set of #GVariant which can be accessed via ostree_object_name_deserialize(). - + filename="ostree-repo-traverse.c" line="348">Gets all the commits that a certain object belongs to, as recorded by a parents table gotten from ostree_repo_traverse_commit_union_with_parents. - + throws="1"> Add a GPG signature to a summary file. - + line="5305">Add a GPG signature to a summary file. + @@ -4897,13 +4922,13 @@ transaction will do nothing and return successfully. Self + line="5307">Self NULL-terminated array of GPG keys. + line="5308">NULL-terminated array of GPG keys. @@ -4914,7 +4939,7 @@ transaction will do nothing and return successfully. allow-none="1"> GPG home directory, or %NULL + line="5309">GPG home directory, or %NULL allow-none="1"> A #GCancellable + line="5310">A #GCancellable @@ -4933,8 +4958,8 @@ transaction will do nothing and return successfully. throws="1"> Append a GPG signature to a commit. - + line="5084">Append a GPG signature to a commit. + @@ -4942,19 +4967,19 @@ transaction will do nothing and return successfully. Self + line="5086">Self SHA256 of given commit to sign + line="5087">SHA256 of given commit to sign Signature data + line="5088">Signature data allow-none="1"> A #GCancellable + line="5089">A #GCancellable @@ -4974,7 +4999,7 @@ transaction will do nothing and return successfully. throws="1"> Similar to ostree_repo_checkout_tree(), but uses directory-relative + line="1329">Similar to ostree_repo_checkout_tree(), but uses directory-relative paths for the destination, uses a new `OstreeRepoCheckoutAtOptions`, and takes a commit checksum and optional subpath pair, rather than requiring use of `GFile` APIs for the caller. @@ -4985,7 +5010,7 @@ use with GObject introspection. Note in addition that unlike ostree_repo_checkout_tree(), the default is not to use the repository-internal uncompressed objects cache. - + @@ -4993,7 +5018,7 @@ cache. Repo + line="1331">Repo allow-none="1"> Options + line="1332">Options Directory FD for destination + line="1333">Directory FD for destination Directory for destination + line="1334">Directory for destination Checksum for commit + line="1335">Checksum for commit allow-none="1"> Cancellable + line="1336">Cancellable @@ -5040,10 +5065,10 @@ cache. throws="1"> Call this after finishing a succession of checkout operations; it + line="1468">Call this after finishing a succession of checkout operations; it will delete any currently-unused uncompressed objects from the cache. - + @@ -5051,7 +5076,7 @@ cache. Repo + line="1470">Repo allow-none="1"> Cancellable + line="1471">Cancellable @@ -5070,11 +5095,11 @@ cache. throws="1"> Check out @source into @destination, which must live on the + line="1247">Check out @source into @destination, which must live on the physical filesystem. @source may be any subdirectory of a given commit. The @mode and @overwrite_mode allow control over how the files are checked out. - + @@ -5082,38 +5107,38 @@ files are checked out. Repo + line="1249">Repo Options controlling all files + line="1250">Options controlling all files Whether or not to overwrite files + line="1251">Whether or not to overwrite files Place tree here + line="1252">Place tree here Source tree + line="1253">Source tree Source info + line="1254">Source info allow-none="1"> Cancellable + line="1255">Cancellable @@ -5133,7 +5158,7 @@ files are checked out. throws="1"> Similar to ostree_repo_checkout_tree(), but uses directory-relative + line="1286">Similar to ostree_repo_checkout_tree(), but uses directory-relative paths for the destination, uses a new `OstreeRepoCheckoutAtOptions`, and takes a commit checksum and optional subpath pair, rather than requiring use of `GFile` APIs for the caller. @@ -5151,7 +5176,7 @@ This function is deprecated. Use ostree_repo_checkout_at() instead. Repo + line="1288">Repo allow-none="1"> Options + line="1289">Options Directory FD for destination + line="1290">Directory FD for destination Directory for destination + line="1291">Directory for destination Checksum for commit + line="1292">Checksum for commit allow-none="1"> Cancellable + line="1293">Cancellable @@ -5248,7 +5273,7 @@ that happened during this transaction. A newly-allocated copy of the repository config + line="1468">A newly-allocated copy of the repository config @@ -5260,7 +5285,7 @@ that happened during this transaction. Create the underlying structure on disk for the repository, and call + line="2700">Create the underlying structure on disk for the repository, and call ostree_repo_open() on the result, preparing it for use. Since version 2016.8, this function will succeed on an existing @@ -5282,13 +5307,13 @@ this function on a repository initialized via ostree_repo_open_at(). An #OstreeRepo + line="2702">An #OstreeRepo The mode to store the repository in + line="2703">The mode to store the repository in allow-none="1"> Cancellable + line="2704">Cancellable @@ -5307,7 +5332,7 @@ this function on a repository initialized via ostree_repo_open_at(). throws="1"> Remove the object of type @objtype with checksum @sha256 + line="4378">Remove the object of type @objtype with checksum @sha256 from the repository. An error of type %G_IO_ERROR_NOT_FOUND is thrown if the object does not exist. @@ -5318,19 +5343,19 @@ is thrown if the object does not exist. Repo + line="4380">Repo Object type + line="4381">Object type Checksum + line="4382">Checksum allow-none="1"> Cancellable + line="4383">Cancellable @@ -5347,27 +5372,27 @@ is thrown if the object does not exist. Check whether two opened repositories are the same on disk: if their root + line="3648">Check whether two opened repositories are the same on disk: if their root directories are the same inode. If @a or @b are not open yet (due to ostree_repo_open() not being called on them yet), %FALSE will be returned. %TRUE if @a and @b are the same repository on disk, %FALSE otherwise + line="3657">%TRUE if @a and @b are the same repository on disk, %FALSE otherwise an #OstreeRepo + line="3650">an #OstreeRepo an #OstreeRepo + line="3651">an #OstreeRepo @@ -5380,7 +5405,7 @@ ostree_repo_open() not being called on them yet), %FALSE will be returned. filename="ostree-repo-libarchive.c" line="1254">Import an archive file @archive into the repository, and write its file structure to @mtree. - + @@ -5429,7 +5454,7 @@ file structure to @mtree. version="2018.6"> Find reachable remote URIs which claim to provide any of the given named + line="5426">Find reachable remote URIs which claim to provide any of the given named @refs. This will search for configured remotes (#OstreeRepoFinderConfig), mounted volumes (#OstreeRepoFinderMount) and (if enabled at compile time) local network peers (#OstreeRepoFinderAvahi). In order to use a custom @@ -5469,7 +5494,7 @@ this is not guaranteed). GPG verification of commits will be used unconditionally. This will use the thread-default #GMainContext, but will not iterate it. - + @@ -5477,13 +5502,13 @@ This will use the thread-default #GMainContext, but will not iterate it. an #OstreeRepo + line="5428">an #OstreeRepo non-empty array of collection–ref pairs to find remotes for + line="5429">non-empty array of collection–ref pairs to find remotes for @@ -5494,13 +5519,13 @@ This will use the thread-default #GMainContext, but will not iterate it. allow-none="1"> a GVariant `a{sv}` with an extensible set of flags + line="5430">a GVariant `a{sv}` with an extensible set of flags non-empty array of + line="5431">non-empty array of #OstreeRepoFinder instances to use, or %NULL to use the system defaults @@ -5512,7 +5537,7 @@ This will use the thread-default #GMainContext, but will not iterate it. allow-none="1"> an #OstreeAsyncProgress to update with the operation’s + line="5433">an #OstreeAsyncProgress to update with the operation’s progress, or %NULL @@ -5522,7 +5547,7 @@ This will use the thread-default #GMainContext, but will not iterate it. allow-none="1"> a #GCancellable, or %NULL + line="5435">a #GCancellable, or %NULL closure="6"> asynchronous completion callback + line="5436">asynchronous completion callback allow-none="1"> data to pass to @callback + line="5437">data to pass to @callback @@ -5553,13 +5578,13 @@ This will use the thread-default #GMainContext, but will not iterate it. throws="1"> Finish an asynchronous pull operation started with + line="6225">Finish an asynchronous pull operation started with ostree_repo_find_remotes_async(). - + a potentially empty array + line="6234">a potentially empty array of #OstreeRepoFinderResults, followed by a %NULL terminator element; or %NULL on error @@ -5570,13 +5595,13 @@ ostree_repo_find_remotes_async(). an #OstreeRepo + line="6227">an #OstreeRepo the asynchronous result + line="6228">the asynchronous result @@ -5587,7 +5612,7 @@ ostree_repo_find_remotes_async(). throws="1"> Verify consistency of the object; this performs checks only relevant to the + line="4494">Verify consistency of the object; this performs checks only relevant to the immediate object itself, such as checksumming. This API call will not itself traverse metadata objects for example. @@ -5598,19 +5623,19 @@ traverse metadata objects for example. Repo + line="4496">Repo Object type + line="4497">Object type Checksum + line="4498">Checksum allow-none="1"> Cancellable + line="4499">Cancellable @@ -5629,20 +5654,20 @@ traverse metadata objects for example. version="2019.2"> Get the bootloader configured. See the documentation for the + line="6488">Get the bootloader configured. See the documentation for the "sysroot.bootloader" config key. bootloader configuration for the sysroot + line="6495">bootloader configuration for the sysroot an #OstreeRepo + line="6490">an #OstreeRepo @@ -5652,19 +5677,19 @@ traverse metadata objects for example. version="2018.6"> Get the collection ID of this repository. See [collection IDs][collection-ids]. + line="6416">Get the collection ID of this repository. See [collection IDs][collection-ids]. collection ID for the repository + line="6422">collection ID for the repository an #OstreeRepo + line="6418">an #OstreeRepo @@ -5674,7 +5699,7 @@ traverse metadata objects for example. The repository configuration; do not modify + line="1454">The repository configuration; do not modify @@ -5688,13 +5713,13 @@ traverse metadata objects for example. version="2018.9"> Get the set of default repo finders configured. See the documentation for + line="6469">Get the set of default repo finders configured. See the documentation for the "core.default-repo-finders" config key. + line="6476"> %NULL-terminated array of strings. @@ -5704,7 +5729,7 @@ the "core.default-repo-finders" config key. an #OstreeRepo + line="6471">an #OstreeRepo @@ -5714,7 +5739,7 @@ the "core.default-repo-finders" config key. version="2016.4"> In some cases it's useful for applications to access the repository + line="3599">In some cases it's useful for applications to access the repository directly; for example, writing content into `repo/tmp` ensures it's on the same filesystem. Another case is detecting the mtime on the repository (to see whether a ref was written). @@ -5722,14 +5747,14 @@ repository (to see whether a ref was written). File descriptor for repository root - owned by @self + line="3608">File descriptor for repository root - owned by @self Repo + line="3601">Repo @@ -5738,19 +5763,19 @@ repository (to see whether a ref was written). c:identifier="ostree_repo_get_disable_fsync"> For more information see ostree_repo_set_disable_fsync(). + line="3546">For more information see ostree_repo_set_disable_fsync(). Whether or not fsync() is enabled for this repo. + line="3552">Whether or not fsync() is enabled for this repo. An #OstreeRepo + line="3548">An #OstreeRepo @@ -5761,7 +5786,7 @@ repository (to see whether a ref was written). throws="1"> Determine the number of bytes of free disk space that are reserved according + line="3681">Determine the number of bytes of free disk space that are reserved according to the repo config and return that number in @out_reserved_bytes. See the documentation for the core.min-free-space-size and core.min-free-space-percent repo config options. @@ -5769,14 +5794,14 @@ core.min-free-space-percent repo config options. %TRUE on success, %FALSE otherwise. + line="3692">%TRUE on success, %FALSE otherwise. Repo + line="3683">Repo transfer-ownership="full"> Location to store the result + line="3684">Location to store the result @@ -5804,20 +5829,20 @@ core.min-free-space-percent repo config options. Before this function can be used, ostree_repo_init() must have been + line="3708">Before this function can be used, ostree_repo_init() must have been called. Parent repository, or %NULL if none + line="3715">Parent repository, or %NULL if none Repo + line="3710">Repo @@ -5825,21 +5850,21 @@ called. Note that since the introduction of ostree_repo_open_at(), this function may + line="3577">Note that since the introduction of ostree_repo_open_at(), this function may return a process-specific path in `/proc` if the repository was created using that API. In general, you should avoid use of this API. Path to repo + line="3585">Path to repo Repo + line="3579">Repo @@ -5850,7 +5875,7 @@ that API. In general, you should avoid use of this API. throws="1"> OSTree remotes are represented by keyfile groups, formatted like: + line="963">OSTree remotes are represented by keyfile groups, formatted like: `[remote "remotename"]`. This function returns a value named @option_name underneath that group, and returns it as a boolean. If the option is not set, @out_value will be set to @default_value. If an @@ -5859,32 +5884,32 @@ error is returned, @out_value will be set to %FALSE. %TRUE on success, otherwise %FALSE with @error set + line="978">%TRUE on success, otherwise %FALSE with @error set A OstreeRepo + line="965">A OstreeRepo Name + line="966">Name Option + line="967">Option Value returned if @option_name is not present + line="968">Value returned if @option_name is not present transfer-ownership="full"> location to store the result. + line="969">location to store the result. @@ -5904,7 +5929,7 @@ error is returned, @out_value will be set to %FALSE. throws="1"> OSTree remotes are represented by keyfile groups, formatted like: + line="885">OSTree remotes are represented by keyfile groups, formatted like: `[remote "remotename"]`. This function returns a value named @option_name underneath that group, and returns it as a zero terminated array of strings. If the option is not set, or if an error is returned, @out_value will be set @@ -5913,26 +5938,26 @@ to %NULL. %TRUE on success, otherwise %FALSE with @error set + line="901">%TRUE on success, otherwise %FALSE with @error set A OstreeRepo + line="887">A OstreeRepo Name + line="888">Name Option + line="889">Option transfer-ownership="full"> location to store the list + line="890">location to store the list of strings. The list should be freed with g_strfreev(). @@ -5956,7 +5981,7 @@ to %NULL. throws="1"> OSTree remotes are represented by keyfile groups, formatted like: + line="807">OSTree remotes are represented by keyfile groups, formatted like: `[remote "remotename"]`. This function returns a value named @option_name underneath that group, or @default_value if the remote exists but not the option name. If an error is returned, @out_value will be set to %NULL. @@ -5964,26 +5989,26 @@ option name. If an error is returned, @out_value will be set to %NULL. %TRUE on success, otherwise %FALSE with @error set + line="821">%TRUE on success, otherwise %FALSE with @error set A OstreeRepo + line="809">A OstreeRepo Name + line="810">Name Option + line="811">Option allow-none="1"> Value returned if @option_name is not present + line="812">Value returned if @option_name is not present transfer-ownership="full"> Return location for value + line="813">Return location for value @@ -6012,16 +6037,16 @@ option name. If an error is returned, @out_value will be set to %NULL. throws="1"> Sign the given @data with the specified keys in @key_id. Similar to + line="5371">Sign the given @data with the specified keys in @key_id. Similar to ostree_repo_add_gpg_signature_summary() but can be used on any data. You can use ostree_repo_gpg_verify_data() to verify the signatures. - + @TRUE if @data has been signed successfully, + line="5388">@TRUE if @data has been signed successfully, @FALSE in case of error (@error will contain the reason). @@ -6029,25 +6054,25 @@ You can use ostree_repo_gpg_verify_data() to verify the signatures. Self + line="5373">Self Data as a #GBytes + line="5374">Data as a #GBytes Existing signatures to append to (or %NULL) + line="5375">Existing signatures to append to (or %NULL) NULL-terminated array of GPG keys. + line="5376">NULL-terminated array of GPG keys. @@ -6058,7 +6083,7 @@ You can use ostree_repo_gpg_verify_data() to verify the signatures. allow-none="1"> GPG home directory, or %NULL + line="5377">GPG home directory, or %NULL transfer-ownership="full"> in case of success will contain signature + line="5378">in case of success will contain signature allow-none="1"> A #GCancellable + line="5379">A #GCancellable @@ -6087,23 +6112,23 @@ You can use ostree_repo_gpg_verify_data() to verify the signatures. throws="1"> Verify @signatures for @data using GPG keys in the keyring for + line="5802">Verify @signatures for @data using GPG keys in the keyring for @remote_name, and return an #OstreeGpgVerifyResult. The @remote_name parameter can be %NULL. In that case it will do the verifications using GPG keys in the keyrings of all remotes. - + an #OstreeGpgVerifyResult, or %NULL on error + line="5819">an #OstreeGpgVerifyResult, or %NULL on error Repository + line="5804">Repository allow-none="1"> Name of remote + line="5805">Name of remote Data as a #GBytes + line="5806">Data as a #GBytes Signatures as a #GBytes + line="5807">Signatures as a #GBytes allow-none="1"> Path to directory GPG keyrings; overrides built-in default if given + line="5808">Path to directory GPG keyrings; overrides built-in default if given allow-none="1"> Path to additional keyring file (not a directory) + line="5809">Path to additional keyring file (not a directory) allow-none="1"> Cancellable + line="5810">Cancellable @@ -6161,32 +6186,32 @@ the verifications using GPG keys in the keyrings of all remotes. throws="1"> Set @out_have_object to %TRUE if @self contains the given object; + line="4336">Set @out_have_object to %TRUE if @self contains the given object; %FALSE otherwise. %FALSE if an unexpected error occurred, %TRUE otherwise + line="4348">%FALSE if an unexpected error occurred, %TRUE otherwise Repo + line="4338">Repo Object type + line="4339">Object type ASCII SHA256 checksum + line="4340">ASCII SHA256 checksum transfer-ownership="full"> %TRUE if repository contains object + line="4341">%TRUE if repository contains object allow-none="1"> Cancellable + line="4342">Cancellable @@ -6212,7 +6237,7 @@ the verifications using GPG keys in the keyrings of all remotes. Calculate a hash value for the given open repository, suitable for use when + line="3618">Calculate a hash value for the given open repository, suitable for use when putting it into a hash table. It is an error to call this on an #OstreeRepo which is not yet open, as a persistent hash value cannot be calculated until the repository is open and the inode of its root directory has been loaded. @@ -6222,14 +6247,14 @@ This function does no I/O. hash value for the #OstreeRepo + line="3629">hash value for the #OstreeRepo an #OstreeRepo + line="3620">an #OstreeRepo @@ -6242,7 +6267,7 @@ This function does no I/O. filename="ostree-repo-libarchive.c" line="840">Import an archive file @archive into the repository, and write its file structure to @mtree. - + @@ -6301,7 +6326,7 @@ file structure to @mtree. throws="1"> Copy object named by @objtype and @checksum into @self from the + line="4521">Copy object named by @objtype and @checksum into @self from the source repository @source. If both repositories are of the same type and on the same filesystem, this will simply be a fast Unix hard link operation. @@ -6315,25 +6340,25 @@ Otherwise, a copy will be performed. Destination repo + line="4523">Destination repo Source repo + line="4524">Source repo Object type + line="4525">Object type checksum + line="4526">checksum allow-none="1"> Cancellable + line="4527">Cancellable @@ -6353,7 +6378,7 @@ Otherwise, a copy will be performed. throws="1"> Copy object named by @objtype and @checksum into @self from the + line="4550">Copy object named by @objtype and @checksum into @self from the source repository @source. If @trusted is %TRUE and both repositories are of the same type and on the same filesystem, this will simply be a fast Unix hard link operation. @@ -6367,31 +6392,31 @@ Otherwise, a copy will be performed. Destination repo + line="4552">Destination repo Source repo + line="4553">Source repo Object type + line="4554">Object type checksum + line="4555">checksum If %TRUE, assume the source repo is valid and trusted + line="4556">If %TRUE, assume the source repo is valid and trusted allow-none="1"> Cancellable + line="4557">Cancellable @@ -6410,14 +6435,14 @@ Otherwise, a copy will be performed. %TRUE if this repository is the root-owned system global repository + line="1378">%TRUE if this repository is the root-owned system global repository Repository + line="1376">Repository @@ -6427,20 +6452,20 @@ Otherwise, a copy will be performed. throws="1"> Returns whether the repository is writable by the current user. + line="1408">Returns whether the repository is writable by the current user. If the repository is not writable, the @error indicates why. %TRUE if this repository is writable + line="1416">%TRUE if this repository is writable Repo + line="1410">Repo @@ -6465,7 +6490,7 @@ If you want to exclude refs from `refs/remotes`, use %OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_REMOTES in @flags. Similarly use %OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS to exclude refs from `refs/mirrors`. - + This function synchronously enumerates all commit objects starting + line="4744">This function synchronously enumerates all commit objects starting with @start, returning data in @out_commits. - + %TRUE on success, %FALSE on error, and @error will be set + line="4756">%TRUE on success, %FALSE on error, and @error will be set Repo + line="4746">Repo List commits starting with this checksum + line="4747">List commits starting with this checksum transfer-ownership="container"> + line="4748"> Map of serialized commit name to variant data @@ -6565,7 +6590,7 @@ Map of serialized commit name to variant data allow-none="1"> Cancellable + line="4750">Cancellable @@ -6575,28 +6600,28 @@ Map of serialized commit name to variant data throws="1"> This function synchronously enumerates all objects in the + line="4690">This function synchronously enumerates all objects in the repository, returning data in @out_objects. @out_objects maps from keys returned by ostree_object_name_serialize() to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE. - + %TRUE on success, %FALSE on error, and @error will be set + line="4704">%TRUE on success, %FALSE on error, and @error will be set Repo + line="4692">Repo Flags controlling enumeration + line="4693">Flags controlling enumeration @@ -6606,7 +6631,7 @@ to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE. transfer-ownership="container"> + line="4694"> Map of serialized object name to variant data @@ -6619,7 +6644,7 @@ Map of serialized object name to variant data allow-none="1"> Cancellable + line="4696">Cancellable @@ -6750,7 +6775,7 @@ remote name) to checksums. Differently from ostree_repo_list_refs(), the filename="ostree-repo-static-delta-core.c" line="171">This function synchronously enumerates all static delta indexes in the repository, returning its result in @out_indexes. - + @@ -6790,7 +6815,7 @@ repository, returning its result in @out_indexes. filename="ostree-repo-static-delta-core.c" line="80">This function synchronously enumerates all static deltas in the repository, returning its result in @out_deltas. - + @@ -6828,7 +6853,7 @@ repository, returning its result in @out_deltas. throws="1"> A version of ostree_repo_load_variant() specialized to commits, + line="4666">A version of ostree_repo_load_variant() specialized to commits, capable of returning extended state information. Currently the only extended state is %OSTREE_REPO_COMMIT_STATE_PARTIAL, which means that only a sub-path of the commit is available. @@ -6840,13 +6865,13 @@ means that only a sub-path of the commit is available. Repo + line="4668">Repo Commit checksum + line="4669">Commit checksum allow-none="1"> Commit + line="4670">Commit allow-none="1"> Commit state + line="4671">Commit state @@ -6876,7 +6901,7 @@ means that only a sub-path of the commit is available. Load content object, decomposing it into three parts: the actual + line="4175">Load content object, decomposing it into three parts: the actual content (for regular files), the metadata, and extended attributes. @@ -6886,13 +6911,13 @@ content (for regular files), the metadata, and extended attributes. Repo + line="4177">Repo ASCII SHA256 checksum + line="4178">ASCII SHA256 checksum allow-none="1"> File content + line="4179">File content allow-none="1"> File information + line="4180">File information allow-none="1"> Extended attributes + line="4181">Extended attributes allow-none="1"> Cancellable + line="4182">Cancellable @@ -6947,7 +6972,7 @@ content (for regular files), the metadata, and extended attributes. throws="1"> Load object as a stream; useful when copying objects between + line="4236">Load object as a stream; useful when copying objects between repositories. @@ -6957,19 +6982,19 @@ repositories. Repo + line="4238">Repo Object type + line="4239">Object type ASCII SHA256 checksum + line="4240">ASCII SHA256 checksum transfer-ownership="full"> Stream for object + line="4241">Stream for object transfer-ownership="full"> Length of @out_input + line="4242">Length of @out_input allow-none="1"> Cancellable + line="4243">Cancellable @@ -7006,7 +7031,7 @@ repositories. throws="1"> Load the metadata object @sha256 of type @objtype, storing the + line="4644">Load the metadata object @sha256 of type @objtype, storing the result in @out_variant. @@ -7016,19 +7041,19 @@ result in @out_variant. Repo + line="4646">Repo Expected object type + line="4647">Expected object type Checksum string + line="4648">Checksum string transfer-ownership="full"> Metadata object + line="4649">Metadata object @@ -7047,7 +7072,7 @@ result in @out_variant. throws="1"> Attempt to load the metadata object @sha256 of type @objtype if it + line="4620">Attempt to load the metadata object @sha256 of type @objtype if it exists, storing the result in @out_variant. If it doesn't exist, @out_variant will be set to %NULL and the function will still return TRUE. @@ -7059,19 +7084,19 @@ return TRUE. Repo + line="4622">Repo Object type + line="4623">Object type ASCII checksum + line="4624">ASCII checksum nullable="1"> Metadata + line="4625">Metadata + + Release a lock of type @lock_type from the lock state. If the lock state +becomes empty, the repository is unlocked. Otherwise, the lock state only +changes when transitioning from an exclusive lock back to a shared lock. The +requested @lock_type must be the same type that was requested in the call to +ostree_repo_lock_push(). It is a programmer error if these do not match and +the program may abort if the lock would reach an invalid state. + +ostree_repo_lock_pop() waits for the lock depending on the repository's +lock-timeout-secs configuration. When lock-timeout-secs is -1, a blocking lock is +attempted. Otherwise, the lock is removed non-blocking and +ostree_repo_lock_pop() will sleep synchronously up to lock-timeout-secs seconds +attempting to remove the lock. If the lock cannot be removed within the +timeout, a %G_IO_ERROR_WOULD_BLOCK error is returned. + +If @self is not writable by the user, then no unlocking is attempted and +%TRUE is returned. + + + %TRUE on success, otherwise %FALSE with @error set + + + + + a #OstreeRepo + + + + the type of lock to release + + + + a #GCancellable + + + + + + Takes a lock on the repository and adds it to the lock state. If @lock_type +is %OSTREE_REPO_LOCK_SHARED, a shared lock is taken. If @lock_type is +%OSTREE_REPO_LOCK_EXCLUSIVE, an exclusive lock is taken. The actual lock +state is only changed when locking a previously unlocked repository or +upgrading the lock from shared to exclusive. If the requested lock type is +unchanged or would represent a downgrade (exclusive to shared), the lock +state is not changed. + +ostree_repo_lock_push() waits for the lock depending on the repository's +lock-timeout-secs configuration. When lock-timeout-secs is -1, a blocking lock is +attempted. Otherwise, the lock is taken non-blocking and +ostree_repo_lock_push() will sleep synchronously up to lock-timeout-secs seconds +attempting to acquire the lock. If the lock cannot be acquired within the +timeout, a %G_IO_ERROR_WOULD_BLOCK error is returned. + +If @self is not writable by the user, then no locking is attempted and +%TRUE is returned. + + + %TRUE on success, otherwise %FALSE with @error set + + + + + a #OstreeRepo + + + + the type of lock to acquire + + + + a #GCancellable + + + + - + @@ -7340,7 +7472,7 @@ The %OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE flag may be specified to just determine statistics on objects that would be deleted, without actually deleting them. Locking: exclusive - + @@ -7405,7 +7537,7 @@ targeting that commit; otherwise any static delta of non existing commits are deleted. Locking: exclusive - + @@ -7440,7 +7572,7 @@ non existing commit Connect to the remote repository, fetching the specified set of + line="4822">Connect to the remote repository, fetching the specified set of refs @refs_to_fetch. For each ref that is changed, download the commit, all metadata, and all content objects, storing them safely on disk in @self. @@ -7456,7 +7588,7 @@ Warning: This API will iterate the thread default main context, which is a bug, but kept for compatibility reasons. If you want to avoid this, use g_main_context_push_thread_default() to push a new one around this call. - + @@ -7464,13 +7596,13 @@ one around this call. Repo + line="4824">Repo Name of remote + line="4825">Name of remote allow-none="1"> Optional list of refs; if %NULL, fetch all configured refs + line="4826">Optional list of refs; if %NULL, fetch all configured refs @@ -7487,7 +7619,7 @@ one around this call. Options controlling fetch behavior + line="4827">Options controlling fetch behavior allow-none="1"> Progress + line="4828">Progress allow-none="1"> Cancellable + line="4829">Cancellable @@ -7515,7 +7647,7 @@ one around this call. version="2018.6"> Pull refs from multiple remotes which have been found using + line="6273">Pull refs from multiple remotes which have been found using ostree_repo_find_remotes_async(). @results are expected to be in priority order, with the best remotes to pull @@ -7557,7 +7689,7 @@ The following @options are currently defined: not being pulled will be ignored and any ref without a keyring remote will be verified with the keyring of the remote being pulled from. Since: 2019.2 - + @@ -7565,13 +7697,13 @@ The following @options are currently defined: an #OstreeRepo + line="6275">an #OstreeRepo %NULL-terminated array of remotes to + line="6276">%NULL-terminated array of remotes to pull from, including the refs to pull from each @@ -7583,7 +7715,7 @@ The following @options are currently defined: allow-none="1"> A GVariant `a{sv}` with an extensible set of flags + line="6278">A GVariant `a{sv}` with an extensible set of flags an #OstreeAsyncProgress to update with the operation’s + line="6279">an #OstreeAsyncProgress to update with the operation’s progress, or %NULL @@ -7602,7 +7734,7 @@ The following @options are currently defined: allow-none="1"> a #GCancellable, or %NULL + line="6281">a #GCancellable, or %NULL asynchronous completion callback + line="6282">asynchronous completion callback data to pass to @callback + line="6283">data to pass to @callback @@ -7633,26 +7765,26 @@ The following @options are currently defined: throws="1"> Finish an asynchronous pull operation started with + line="6526">Finish an asynchronous pull operation started with ostree_repo_pull_from_remotes_async(). - + %TRUE on success, %FALSE otherwise + line="6535">%TRUE on success, %FALSE otherwise an #OstreeRepo + line="6528">an #OstreeRepo the asynchronous result + line="6529">the asynchronous result @@ -7662,9 +7794,9 @@ ostree_repo_pull_from_remotes_async(). throws="1"> This is similar to ostree_repo_pull(), but only fetches a single + line="4861">This is similar to ostree_repo_pull(), but only fetches a single subpath. - + @@ -7672,19 +7804,19 @@ subpath. Repo + line="4863">Repo Name of remote + line="4864">Name of remote Subdirectory path + line="4865">Subdirectory path allow-none="1"> Optional list of refs; if %NULL, fetch all configured refs + line="4866">Optional list of refs; if %NULL, fetch all configured refs @@ -7701,7 +7833,7 @@ subpath. Options controlling fetch behavior + line="4867">Options controlling fetch behavior allow-none="1"> Progress + line="4868">Progress allow-none="1"> Cancellable + line="4869">Cancellable @@ -7729,7 +7861,7 @@ subpath. throws="1"> Like ostree_repo_pull(), but supports an extensible set of flags. + line="3650">Like ostree_repo_pull(), but supports an extensible set of flags. The following are currently defined: * `refs` (`as`): Array of string refs @@ -7780,7 +7912,7 @@ The following are currently defined: is specified, `summary-bytes` must also be specified. Since: 2020.5 * `disable-verify-bindings` (`b`): Disable verification of commit bindings. Since: 2020.9 - + @@ -7788,19 +7920,19 @@ The following are currently defined: Repo + line="3652">Repo Name of remote or file:// url + line="3653">Name of remote or file:// url A GVariant a{sv} with an extensible set of flags. + line="3654">A GVariant a{sv} with an extensible set of flags. Progress + line="3655">Progress Cancellable + line="3656">Cancellable @@ -7828,7 +7960,7 @@ The following are currently defined: throws="1"> Return the size in bytes of object with checksum @sha256, after any + line="4584">Return the size in bytes of object with checksum @sha256, after any compression has been applied. @@ -7838,19 +7970,19 @@ compression has been applied. Repo + line="4586">Repo Object type + line="4587">Object type Checksum + line="4588">Checksum transfer-ownership="full"> Size in bytes object occupies physically + line="4589">Size in bytes object occupies physically allow-none="1"> Cancellable + line="4590">Cancellable @@ -7878,8 +8010,8 @@ compression has been applied. throws="1"> Load the content for @rev into @out_root. - + line="4787">Load the content for @rev into @out_root. + @@ -7887,13 +8019,13 @@ compression has been applied. Repo + line="4789">Repo Ref or ASCII checksum + line="4790">Ref or ASCII checksum transfer-ownership="full"> An #OstreeRepoFile corresponding to the root + line="4791">An #OstreeRepoFile corresponding to the root transfer-ownership="full"> The resolved commit checksum + line="4792">The resolved commit checksum allow-none="1"> Cancellable + line="4793">Cancellable @@ -7930,10 +8062,10 @@ compression has been applied. throws="1"> OSTree commits can have arbitrary metadata associated; this + line="3116">OSTree commits can have arbitrary metadata associated; this function retrieves them. If none exists, @out_metadata will be set to %NULL. - + @@ -7941,22 +8073,23 @@ to %NULL. Repo + line="3118">Repo ASCII SHA256 commit checksum + line="3119">ASCII SHA256 commit checksum + transfer-ownership="full" + nullable="1"> Metadata associated with commit in with format "a{sv}", or %NULL if none exists + line="3120">Metadata associated with commit in with format "a{sv}", or %NULL if none exists allow-none="1"> Cancellable + line="3121">Cancellable @@ -7975,7 +8108,7 @@ to %NULL. throws="1"> An OSTree repository can contain a high level "summary" file that + line="5943">An OSTree repository can contain a high level "summary" file that describes the available branches and other metadata. If the timetable for making commits and updating the summary file is fairly @@ -7993,7 +8126,7 @@ and refs in %OSTREE_SUMMARY_COLLECTION_MAP are guaranteed to be in lexicographic order. Locking: exclusive - + @@ -8001,7 +8134,7 @@ Locking: exclusive Repo + line="5945">Repo allow-none="1"> A GVariant of type a{sv}, or %NULL + line="5946">A GVariant of type a{sv}, or %NULL allow-none="1"> Cancellable + line="5947">Cancellable @@ -8030,7 +8163,7 @@ Locking: exclusive throws="1"> By default, an #OstreeRepo will cache the remote configuration and its + line="3353">By default, an #OstreeRepo will cache the remote configuration and its own repo/config data. This API can be used to reload it. @@ -8040,7 +8173,7 @@ own repo/config data. This API can be used to reload it. repo + line="3355">repo allow-none="1"> cancellable + line="3356">cancellable @@ -8059,7 +8192,7 @@ own repo/config data. This API can be used to reload it. throws="1"> Create a new remote named @name pointing to @url. If @options is + line="1677">Create a new remote named @name pointing to @url. If @options is provided, then it will be mapped to #GKeyFile entries, where the GVariant dictionary key is an option string, and the value is mapped as follows: @@ -8074,19 +8207,22 @@ mapped as follows: Repo + line="1679">Repo Name of remote + line="1680">Name of remote - + URL for remote (if URL begins with metalink=, it will be used as such) + line="1681">URL for remote (if URL begins with metalink=, it will be used as such) GVariant of type a{sv} + line="1682">GVariant of type a{sv} Cancellable + line="1683">Cancellable @@ -8114,7 +8250,7 @@ mapped as follows: throws="1"> A combined function handling the equivalent of + line="1867">A combined function handling the equivalent of ostree_repo_remote_add(), ostree_repo_remote_delete(), with more options. @@ -8125,7 +8261,7 @@ options. Repo + line="1869">Repo allow-none="1"> System root + line="1870">System root Operation to perform + line="1871">Operation to perform Name of remote + line="1872">Name of remote - + URL for remote (if URL begins with metalink=, it will be used as such) + line="1873">URL for remote (if URL begins with metalink=, it will be used as such) allow-none="1"> GVariant of type a{sv} + line="1874">GVariant of type a{sv} allow-none="1"> Cancellable + line="1875">Cancellable @@ -8180,7 +8319,7 @@ options. throws="1"> Delete the remote named @name. It is an error if the provided + line="1763">Delete the remote named @name. It is an error if the provided remote does not exist. @@ -8190,13 +8329,13 @@ remote does not exist. Repo + line="1765">Repo Name of remote + line="1766">Name of remote allow-none="1"> Cancellable + line="1767">Cancellable @@ -8215,7 +8354,7 @@ remote does not exist. throws="1"> Tries to fetch the summary file and any GPG signatures on the summary file + line="2498">Tries to fetch the summary file and any GPG signatures on the summary file over HTTP, and returns the binary data in @out_summary and @out_signatures respectively. @@ -8232,20 +8371,20 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string. %TRUE on success, %FALSE on failure + line="2523">%TRUE on success, %FALSE on failure Self + line="2500">Self name of a remote + line="2501">name of a remote allow-none="1"> return location for raw summary data, or + line="2502">return location for raw summary data, or %NULL @@ -8268,7 +8407,7 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string. allow-none="1"> return location for raw summary + line="2504">return location for raw summary signature data, or %NULL @@ -8278,7 +8417,7 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string. allow-none="1"> a #GCancellable + line="2506">a #GCancellable @@ -8289,7 +8428,7 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string. throws="1"> Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags. + line="6551">Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags. The following are currently defined: - override-url (s): Fetch summary from this URL if remote specifies no metalink in options @@ -8302,20 +8441,20 @@ The following are currently defined: %TRUE on success, %FALSE on failure + line="6573">%TRUE on success, %FALSE on failure Self + line="6553">Self name of a remote + line="6554">name of a remote A GVariant a{sv} with an extensible set of flags + line="6555">A GVariant a{sv} with an extensible set of flags return location for raw summary data, or + line="6556">return location for raw summary data, or %NULL @@ -8347,7 +8486,7 @@ The following are currently defined: allow-none="1"> return location for raw summary + line="6558">return location for raw summary signature data, or %NULL @@ -8357,7 +8496,80 @@ The following are currently defined: allow-none="1"> a #GCancellable + line="6560">a #GCancellable + + + + + + Enumerate the trusted GPG keys for the remote @name. If @name is +%NULL, the global GPG keys will be returned. The keys will be +returned in the @out_keys #GPtrArray. Each element in the array is a +#GVariant of format %OSTREE_GPG_KEY_GVARIANT_FORMAT. The @key_ids +array can be used to limit which keys are included. If @key_ids is +%NULL, then all keys are included. + + + %TRUE if the GPG keys could be enumerated, %FALSE otherwise + + + + + an #OstreeRepo + + + + name of the remote or %NULL + + + + + a %NULL-terminated array of GPG key IDs to include, or %NULL + + + + + + + return location for a #GPtrArray of the remote's trusted GPG keys, or + %NULL + + + + + + a #GCancellable, or %NULL @@ -8367,27 +8579,27 @@ The following are currently defined: throws="1"> Return whether GPG verification is enabled for the remote named @name + line="2028">Return whether GPG verification is enabled for the remote named @name through @out_gpg_verify. It is an error if the provided remote does not exist. - + %TRUE on success, %FALSE on failure + line="2039">%TRUE on success, %FALSE on failure Repo + line="2030">Repo Name of remote + line="2031">Name of remote allow-none="1"> Remote's GPG option + line="2032">Remote's GPG option @@ -8408,27 +8620,27 @@ not exist. throws="1"> Return whether GPG verification of the summary is enabled for the remote + line="2062">Return whether GPG verification of the summary is enabled for the remote named @name through @out_gpg_verify_summary. It is an error if the provided remote does not exist. - + %TRUE on success, %FALSE on failure + line="2073">%TRUE on success, %FALSE on failure Repo + line="2064">Repo Name of remote + line="2065">Name of remote allow-none="1"> Remote's GPG option + line="2066">Remote's GPG option @@ -8449,26 +8661,26 @@ remote does not exist. throws="1"> Return the URL of the remote named @name through @out_url. It is an + line="1985">Return the URL of the remote named @name through @out_url. It is an error if the provided remote does not exist. %TRUE on success, %FALSE on failure + line="1995">%TRUE on success, %FALSE on failure Repo + line="1987">Repo Name of remote + line="1988">Name of remote allow-none="1"> Remote's URL + line="1989">Remote's URL @@ -8489,31 +8701,31 @@ error if the provided remote does not exist. throws="1"> Imports one or more GPG keys from the open @source_stream, or from the + line="2085">Imports one or more GPG keys from the open @source_stream, or from the user's personal keyring if @source_stream is %NULL. The @key_ids array can optionally restrict which keys are imported. If @key_ids is %NULL, then all keys are imported. The imported keys will be used to conduct GPG verification when pulling from the remote named @name. - + %TRUE on success, %FALSE on failure + line="2104">%TRUE on success, %FALSE on failure Self + line="2087">Self name of a remote + line="2088">name of a remote allow-none="1"> a #GInputStream, or %NULL + line="2089">a #GInputStream, or %NULL allow-none="1"> a %NULL-terminated array of GPG key IDs, or %NULL + line="2090">a %NULL-terminated array of GPG key IDs, or %NULL @@ -8544,7 +8756,7 @@ from the remote named @name. allow-none="1"> return location for the number of imported + line="2091">return location for the number of imported keys, or %NULL @@ -8554,7 +8766,7 @@ from the remote named @name. allow-none="1"> a #GCancellable + line="2093">a #GCancellable @@ -8562,13 +8774,13 @@ from the remote named @name. List available remote names in an #OstreeRepo. Remote names are sorted + line="1934">List available remote names in an #OstreeRepo. Remote names are sorted alphabetically. If no remotes are available the function returns %NULL. a %NULL-terminated + line="1942">a %NULL-terminated array of remote names @@ -8578,7 +8790,7 @@ alphabetically. If no remotes are available the function returns %NULL. Repo + line="1936">Repo allow-none="1"> Number of remotes available + line="1937">Number of remotes available @@ -8782,7 +8994,7 @@ be emitted, and the first result will be returned. It is expected that the keyrings should match. If no match can be found, a %G_IO_ERROR_NOT_FOUND error will be returned. - + throws="1"> Set a custom location for the cache directory used for e.g. + line="3514">Set a custom location for the cache directory used for e.g. per-remote summary caches. Setting this manually is useful when doing operations on a system repo as a user because you don't have write permissions in the repo, where the cache is normally stored. @@ -9027,19 +9239,19 @@ write permissions in the repo, where the cache is normally stored. An #OstreeRepo + line="3516">An #OstreeRepo directory fd + line="3517">directory fd subpath in @dfd + line="3518">subpath in @dfd allow-none="1"> a #GCancellable + line="3519">a #GCancellable @@ -9059,21 +9271,21 @@ write permissions in the repo, where the cache is normally stored. throws="1"> Set or clear the collection ID of this repository. See [collection IDs][collection-ids]. + line="6433">Set or clear the collection ID of this repository. See [collection IDs][collection-ids]. The update will be made in memory, but must be written out to the repository configuration on disk using ostree_repo_write_config(). %TRUE on success, %FALSE otherwise + line="6443">%TRUE on success, %FALSE otherwise an #OstreeRepo + line="6435">an #OstreeRepo allow-none="1"> new collection ID, or %NULL to unset it + line="6436">new collection ID, or %NULL to unset it @@ -9140,7 +9352,7 @@ case where we're creating or overwriting an existing ref. c:identifier="ostree_repo_set_disable_fsync"> Disable requests to fsync() to stable storage during commits. This + line="3497">Disable requests to fsync() to stable storage during commits. This option should only be used by build system tools which are creating disposable virtual machines, or have higher level mechanisms for ensuring data consistency. @@ -9152,13 +9364,13 @@ ensuring data consistency. An #OstreeRepo + line="3499">An #OstreeRepo If %TRUE, do not fsync + line="3500">If %TRUE, do not fsync @@ -9224,8 +9436,8 @@ Multithreading: This function is MT safe. throws="1"> Add a GPG signature to a commit. - + line="5189">Add a GPG signature to a commit. + @@ -9233,19 +9445,19 @@ Multithreading: This function is MT safe. Self + line="5191">Self SHA256 of given commit to sign + line="5192">SHA256 of given commit to sign Use this GPG key id + line="5193">Use this GPG key id allow-none="1"> GPG home directory, or %NULL + line="5194">GPG home directory, or %NULL allow-none="1"> A #GCancellable + line="5195">A #GCancellable @@ -9273,9 +9485,9 @@ Multithreading: This function is MT safe. throws="1"> This function is deprecated, sign the summary file instead. + line="5278">This function is deprecated, sign the summary file instead. Add a GPG signature to a static delta. - + @@ -9283,31 +9495,31 @@ Add a GPG signature to a static delta. Self + line="5280">Self From commit + line="5281">From commit To commit + line="5282">To commit key id + line="5283">key id homedir + line="5284">homedir allow-none="1"> cancellable + line="5285">cancellable + + Validate the commit data using the commit metadata which must +contain at least one valid signature. If GPG and signapi are +both enabled, then both must find at least one valid signature. + + + + + + + Repo + + + + Name of remote + + + + Commit object data (GVariant) + + + + Commit metadata (GVariant `a{sv}`), must contain at least one valid signature + + + + Optionally disable GPG or signapi + + + + Textual description of results + + + + @@ -9330,7 +9597,7 @@ Add a GPG signature to a static delta. on disk, apply it, generating a new commit. The directory must be named with the form "FROM-TO", where both are checksums, and it must contain a file named "superblock", along with at least one part. - + @@ -9378,7 +9645,7 @@ signature verification will be mandatory before apply the static delta. The directory must be named with the form "FROM-TO", where both are checksums, and it must contain a file named "superblock", along with at least one part. - + @@ -9442,7 +9709,7 @@ are known: - filename: ay: Save delta superblock to this filename, and parts in the same directory. Default saves to repository. - sign-name: ay: Signature type to use. - sign-key-ids: as: Array of keys used to sign delta superblock. - + @@ -9518,7 +9785,7 @@ are reachable by an existing delta (if @opt_to_commit is %NULL). This is normally called automatically when the summary is updated in ostree_repo_regenerate_summary(). Locking: shared - + @@ -9560,7 +9827,7 @@ Locking: shared Verify static delta file signature. - + filename="ostree-repo-traverse.c" line="665">Create a new set @out_reachable containing all objects reachable from @commit_checksum, traversing @maxdepth parent commits. - + @@ -9806,7 +10073,7 @@ from @commit_checksum, traversing @maxdepth parent commits. filename="ostree-repo-traverse.c" line="639">Update the set @inout_reachable containing all objects reachable from @commit_checksum, traversing @maxdepth parent commits. - + @@ -9862,7 +10129,7 @@ from @commit_checksum, traversing @maxdepth parent commits. Additionally this constructs a mapping from each object to the parents of the object, which can be used to track which commits an object belongs to. - + @@ -9923,7 +10190,7 @@ belongs to. line="307">Add all commit objects directly reachable via a ref to @reachable. Locking: shared - + @@ -9965,26 +10232,26 @@ Locking: shared throws="1"> Check for a valid GPG signature on commit named by the ASCII + line="5691">Check for a valid GPG signature on commit named by the ASCII checksum @commit_checksum. - + %TRUE if there was a GPG signature from a trusted keyring, otherwise %FALSE + line="5703">%TRUE if there was a GPG signature from a trusted keyring, otherwise %FALSE Repository + line="5693">Repository ASCII SHA256 checksum + line="5694">ASCII SHA256 checksum allow-none="1"> Path to directory GPG keyrings; overrides built-in default if given + line="5695">Path to directory GPG keyrings; overrides built-in default if given allow-none="1"> Path to additional keyring file (not a directory) + line="5696">Path to additional keyring file (not a directory) allow-none="1"> Cancellable + line="5697">Cancellable @@ -10021,26 +10288,26 @@ checksum @commit_checksum. throws="1"> Read GPG signature(s) on the commit named by the ASCII checksum + line="5729">Read GPG signature(s) on the commit named by the ASCII checksum @commit_checksum and return detailed results. - + an #OstreeGpgVerifyResult, or %NULL on error + line="5741">an #OstreeGpgVerifyResult, or %NULL on error Repository + line="5731">Repository ASCII SHA256 checksum + line="5732">ASCII SHA256 checksum allow-none="1"> Path to directory GPG keyrings; overrides built-in default if given + line="5733">Path to directory GPG keyrings; overrides built-in default if given allow-none="1"> Path to additional keyring file (not a directory) + line="5734">Path to additional keyring file (not a directory) allow-none="1"> Cancellable + line="5735">Cancellable @@ -10078,33 +10345,33 @@ checksum @commit_checksum. throws="1"> Read GPG signature(s) on the commit named by the ASCII checksum + line="5765">Read GPG signature(s) on the commit named by the ASCII checksum @commit_checksum and return detailed results, based on the keyring configured for @remote. - + an #OstreeGpgVerifyResult, or %NULL on error + line="5777">an #OstreeGpgVerifyResult, or %NULL on error Repository + line="5767">Repository ASCII SHA256 checksum + line="5768">ASCII SHA256 checksum OSTree remote to use for configuration + line="5769">OSTree remote to use for configuration allow-none="1"> Cancellable + line="5770">Cancellable @@ -10123,38 +10390,38 @@ configured for @remote. throws="1"> Verify @signatures for @summary data using GPG keys in the keyring for + line="5852">Verify @signatures for @summary data using GPG keys in the keyring for @remote_name, and return an #OstreeGpgVerifyResult. - + an #OstreeGpgVerifyResult, or %NULL on error + line="5864">an #OstreeGpgVerifyResult, or %NULL on error Repo + line="5854">Repo Name of remote + line="5855">Name of remote Summary data as a #GBytes + line="5856">Summary data as a #GBytes Summary signatures as a #GBytes + line="5857">Summary signatures as a #GBytes allow-none="1"> Cancellable + line="5858">Cancellable @@ -10175,7 +10442,7 @@ configured for @remote. filename="ostree-repo-libarchive.c" line="968">Import an archive file @archive into the repository, and write its file structure to @mtree. - + @@ -10232,7 +10499,7 @@ file structure to @mtree. filename="ostree-repo-libarchive.c" line="1003">Read an archive from @fd and import it into the repository, writing its file structure to @mtree. - + @@ -10288,8 +10555,12 @@ its file structure to @mtree. Write a commit metadata object, referencing @root_contents_checksum -and @root_metadata_checksum. - +and @root_metadata_checksum. +This uses the current time as the commit timestamp, but it can be +overridden with an explicit timestamp via the +[standard](https://reproducible-builds.org/specs/source-date-epoch/) +`SOURCE_DATE_EPOCH` environment flag. + @@ -10367,10 +10638,10 @@ and @root_metadata_checksum. throws="1"> Replace any existing metadata associated with commit referred to by + line="3166">Replace any existing metadata associated with commit referred to by @checksum with @metadata. If @metadata is %NULL, then existing data will be deleted. - + @@ -10378,13 +10649,13 @@ data will be deleted. Repo + line="3168">Repo ASCII SHA256 commit checksum + line="3169">ASCII SHA256 commit checksum allow-none="1"> Metadata to associate with commit in with format "a{sv}", or %NULL to delete + line="3170">Metadata to associate with commit in with format "a{sv}", or %NULL to delete allow-none="1"> Cancellable + line="3171">Cancellable @@ -10412,9 +10683,9 @@ data will be deleted. throws="1"> Write a commit metadata object, referencing @root_contents_checksum + line="3062">Write a commit metadata object, referencing @root_contents_checksum and @root_metadata_checksum. - + @@ -10422,7 +10693,7 @@ and @root_metadata_checksum. Repo + line="3064">Repo allow-none="1"> ASCII SHA256 checksum for parent, or %NULL for none + line="3065">ASCII SHA256 checksum for parent, or %NULL for none allow-none="1"> Subject + line="3066">Subject allow-none="1"> Body + line="3067">Body allow-none="1"> GVariant of type a{sv}, or %NULL for none + line="3068">GVariant of type a{sv}, or %NULL for none The tree to point the commit to + line="3069">The tree to point the commit to The time to use to stamp the commit + line="3070">The time to use to stamp the commit transfer-ownership="full"> Resulting ASCII SHA256 checksum for commit + line="3071">Resulting ASCII SHA256 checksum for commit allow-none="1"> Cancellable + line="3072">Cancellable @@ -10498,7 +10769,7 @@ and @root_metadata_checksum. throws="1"> Save @new_config in place of this repository's config file. + line="1487">Save @new_config in place of this repository's config file. @@ -10507,13 +10778,13 @@ and @root_metadata_checksum. Repo + line="1489">Repo Overwrite the config file with this data + line="1490">Overwrite the config file with this data @@ -10740,10 +11011,10 @@ disk, for example. throws="1"> Store as objects all contents of the directory referred to by @dfd + line="4135">Store as objects all contents of the directory referred to by @dfd and @path all children into the repository @self, overlaying the resulting filesystem hierarchy into @mtree. - + @@ -10751,25 +11022,25 @@ resulting filesystem hierarchy into @mtree. Repo + line="4137">Repo Directory file descriptor + line="4138">Directory file descriptor Path + line="4139">Path Overlay directory contents into this tree + line="4140">Overlay directory contents into this tree allow-none="1"> Optional modifier + line="4141">Optional modifier @@ -10788,7 +11059,7 @@ resulting filesystem hierarchy into @mtree. allow-none="1"> Cancellable + line="4142">Cancellable @@ -10798,9 +11069,9 @@ resulting filesystem hierarchy into @mtree. throws="1"> Store objects for @dir and all children into the repository @self, + line="4094">Store objects for @dir and all children into the repository @self, overlaying the resulting filesystem hierarchy into @mtree. - + @@ -10808,19 +11079,19 @@ overlaying the resulting filesystem hierarchy into @mtree. Repo + line="4096">Repo Path to a directory + line="4097">Path to a directory Overlay directory contents into this tree + line="4098">Overlay directory contents into this tree allow-none="1"> Optional modifier + line="4099">Optional modifier @@ -10839,7 +11110,7 @@ overlaying the resulting filesystem hierarchy into @mtree. allow-none="1"> Cancellable + line="4100">Cancellable @@ -11120,10 +11391,10 @@ trusted. throws="1"> Write all metadata objects for @mtree to repo; the resulting + line="4185">Write all metadata objects for @mtree to repo; the resulting @out_file points to the %OSTREE_OBJECT_TYPE_DIR_TREE object that the @mtree represented. - + @@ -11131,13 +11402,13 @@ the @mtree represented. Repo + line="4187">Repo Mutable tree + line="4188">Mutable tree transfer-ownership="full"> An #OstreeRepoFile representing @mtree's root. + line="4189">An #OstreeRepoFile representing @mtree's root. allow-none="1"> Cancellable + line="4190">Cancellable @@ -11387,7 +11658,7 @@ this function will not check for the presence of the object beforehand. transfer-ownership="none"> Path to repository. Note that if this repository was created + line="1147">Path to repository. Note that if this repository was created via `ostree_repo_new_at()`, this value will refer to a value in the Linux kernel's `/proc/self/fd` directory. Generally, you should avoid using this property at all; you can gain a reference @@ -11401,7 +11672,7 @@ use file-descriptor relative operations. transfer-ownership="none"> Path to directory containing remote definitions. The default is `NULL`. + line="1180">Path to directory containing remote definitions. The default is `NULL`. If a `sysroot-path` property is defined, this value will default to `${sysroot_path}/etc/ostree/remotes.d`. @@ -11414,7 +11685,7 @@ This value will only be used for system repositories. transfer-ownership="none"> A system using libostree for the host has a "system" repository; this + line="1162">A system using libostree for the host has a "system" repository; this property will be set for repositories referenced via `ostree_sysroot_repo()` for example. @@ -11426,7 +11697,7 @@ object via `ostree_sysroot_repo()`. Emitted during a pull operation upon GPG verification (if enabled). + line="1198">Emitted during a pull operation upon GPG verification (if enabled). Applications can connect to this signal to output the verification results if desired. @@ -11440,13 +11711,13 @@ is called. checksum of the signed object + line="1201">checksum of the signed object an #OstreeGpgVerifyResult + line="1202">an #OstreeGpgVerifyResult @@ -11455,12 +11726,12 @@ is called. An extensible options structure controlling checkout. Ensure that + line="974">An extensible options structure controlling checkout. Ensure that you have entirely zeroed the structure, then set just the desired options. This is used by ostree_repo_checkout_at() which supercedes previous separate enumeration usage in ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at(). - + @@ -11527,12 +11798,12 @@ ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at(). version="2017.13"> This function simply assigns @cache to the `devino_to_csum_cache` member of + line="1412">This function simply assigns @cache to the `devino_to_csum_cache` member of @opts; it's only useful for introspection. Note that cache does *not* have its refcount incremented - the lifetime of @cache must be equal to or greater than that of @opts. - + @@ -11540,7 +11811,7 @@ Note that cache does *not* have its refcount incremented - the lifetime of Checkout options + line="1414">Checkout options @@ -11550,7 +11821,7 @@ Note that cache does *not* have its refcount incremented - the lifetime of allow-none="1"> Devino cache + line="1415">Devino cache @@ -11559,11 +11830,11 @@ Note that cache does *not* have its refcount incremented - the lifetime of - + #OstreeRepoCheckoutFilterResult saying whether or not to checkout this file + line="965">#OstreeRepoCheckoutFilterResult saying whether or not to checkout this file @@ -11571,13 +11842,13 @@ Note that cache does *not* have its refcount incremented - the lifetime of Repo + line="960">Repo Path to file + line="961">Path to file File information + line="962">File information User data + line="963">User data @@ -11604,37 +11875,37 @@ Note that cache does *not* have its refcount incremented - the lifetime of - + Do checkout this object + line="948">Do checkout this object Ignore this object + line="949">Ignore this object - + No special options + line="913">No special options Ignore uid/gid of files + line="914">Ignore uid/gid of files - + No special options + line="923">No special options When layering checkouts, unlink() and replace existing files, but do not modify existing directories (unless whiteouts are enabled, then directories are replaced) + line="924">When layering checkouts, unlink() and replace existing files, but do not modify existing directories (unless whiteouts are enabled, then directories are replaced) Only add new files/directories + line="925">Only add new files/directories Like UNION_FILES, but error if files are not identical (requires hardlink checkouts) + line="926">Like UNION_FILES, but error if files are not identical (requires hardlink checkouts) @@ -11779,7 +12050,7 @@ ostree_repo_checkout_tree(). - + @@ -11804,21 +12075,21 @@ ostree_repo_checkout_tree(). c:symbol-prefix="repo_commit_modifier"> A structure allowing control over commits. - + line="700">A structure allowing control over commits. + - + A new commit modifier. + line="4273">A new commit modifier. Control options for filter + line="4268">Control options for filter @@ -11831,7 +12102,7 @@ ostree_repo_checkout_tree(). destroy="3"> Function that can inspect individual files + line="4269">Function that can inspect individual files allow-none="1"> User data + line="4270">User data scope="async"> A #GDestroyNotify + line="4271">A #GDestroyNotify - + @@ -11870,7 +12141,7 @@ ostree_repo_checkout_tree(). version="2017.13"> See the documentation for + line="4424">See the documentation for `ostree_repo_devino_cache_new()`. This function can then be used for later calls to `ostree_repo_write_directory_to_mtree()` to optimize commits. @@ -11880,7 +12151,7 @@ Note if your process has multiple writers, you should use separate This function will add a reference to @cache without copying - you should avoid further mutation of the cache. - + @@ -11888,14 +12159,14 @@ should avoid further mutation of the cache. Modifier + line="4426">Modifier A hash table caching device,inode to checksums + line="4427">A hash table caching device,inode to checksums @@ -11904,7 +12175,7 @@ should avoid further mutation of the cache. c:identifier="ostree_repo_commit_modifier_set_sepolicy"> If @policy is non-%NULL, use it to look up labels to use for + line="4346">If @policy is non-%NULL, use it to look up labels to use for "security.selinux" extended attributes. Note that any policy specified this way operates in addition to any @@ -11912,7 +12183,7 @@ extended attributes provided via ostree_repo_commit_modifier_set_xattr_callback(). However if both specify a value for "security.selinux", then the one from the policy wins. - + @@ -11920,7 +12191,7 @@ policy wins. An #OstreeRepoCommitModifier + line="4348">An #OstreeRepoCommitModifier @@ -11930,7 +12201,7 @@ policy wins. allow-none="1"> Policy to use for labeling + line="4349">Policy to use for labeling @@ -11941,10 +12212,10 @@ policy wins. throws="1"> In many cases, one wants to create a "derived" commit from base commit. + line="4368">In many cases, one wants to create a "derived" commit from base commit. SELinux policy labels are part of that base commit. This API allows one to easily set up SELinux labeling from a base commit. - + @@ -11952,20 +12223,20 @@ one to easily set up SELinux labeling from a base commit. Commit modifier + line="4370">Commit modifier OSTree repo containing @rev + line="4371">OSTree repo containing @rev Find SELinux policy from this base commit + line="4372">Find SELinux policy from this base commit c:identifier="ostree_repo_commit_modifier_set_xattr_callback"> If set, this function should return extended attributes to use for + line="4323">If set, this function should return extended attributes to use for the given path. This is useful for things like ACLs and SELinux, where a build system can label the files as it's committing to the repository. - + @@ -11992,7 +12263,7 @@ repository. An #OstreeRepoCommitModifier + line="4325">An #OstreeRepoCommitModifier @@ -12003,14 +12274,14 @@ repository. destroy="1"> Function to be invoked, should return extended attributes for path + line="4326">Function to be invoked, should return extended attributes for path Destroy notification + line="4327">Destroy notification allow-none="1"> Data for @callback: + line="4328">Data for @callback: - + @@ -12039,7 +12310,11 @@ repository. - + Flags modifying commit behavior. In bare-user-only mode, @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS +and @OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS are automatically enabled. + @@ -12066,7 +12341,7 @@ repository. c:identifier="OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS"> Canonicalize permissions for bare-user-only mode. + line="681">Canonicalize permissions. - + @@ -12150,7 +12425,7 @@ by ostree_repo_load_commit(). - + @@ -12158,7 +12433,7 @@ by ostree_repo_load_commit(). - + @@ -12174,7 +12449,7 @@ by ostree_repo_load_commit(). - + @@ -12192,7 +12467,7 @@ by ostree_repo_load_commit(). line="235">Return information on the current directory. This function may only be called if %OSTREE_REPO_COMMIT_ITER_RESULT_DIR was returned from ostree_repo_commit_traverse_iter_next(). - + @@ -12240,7 +12515,7 @@ from ostree_repo_commit_traverse_iter_next(). line="214">Return information on the current file. This function may only be called if %OSTREE_REPO_COMMIT_ITER_RESULT_FILE was returned from ostree_repo_commit_traverse_iter_next(). - + @@ -12278,7 +12553,7 @@ ostree_repo_commit_traverse_iter_next(). Initialize (in place) an iterator over the root of a commit object. - + @@ -12317,7 +12592,7 @@ ostree_repo_commit_traverse_iter_next(). Initialize (in place) an iterator over a directory tree. - + @@ -12367,7 +12642,7 @@ ostree_repo_commit_traverse_iter_get_file(). If %OSTREE_REPO_COMMIT_ITER_RESULT_ERROR is returned, it is a program error to call any further API on @iter except for ostree_repo_commit_traverse_iter_clear(). - + @@ -12393,7 +12668,7 @@ ostree_repo_commit_traverse_iter_clear(). - + @@ -12416,23 +12691,23 @@ ostree_repo_commit_traverse_iter_clear(). OSTree has support for pairing ostree_repo_checkout_tree_at() using + line="1449">OSTree has support for pairing ostree_repo_checkout_tree_at() using hardlinks in combination with a later ostree_repo_write_directory_to_mtree() using a (normally modified) directory. In order for OSTree to optimally detect just the new files, use this function and fill in the `devino_to_csum_cache` member of `OstreeRepoCheckoutAtOptions`, then call ostree_repo_commit_set_devino_cache(). - + Newly allocated cache + line="1460">Newly allocated cache - + @@ -12443,7 +12718,7 @@ ostree_repo_commit_set_devino_cache(). - + @@ -12459,10 +12734,10 @@ ostree_repo_commit_set_devino_cache(). introspectable="0"> An extensible options structure controlling archive creation. Ensure that + line="838">An extensible options structure controlling archive creation. Ensure that you have entirely zeroed the structure, then set just the desired options. This is used by ostree_repo_export_tree_to_archive(). - + @@ -13692,10 +13967,10 @@ to pull from, and hence needs to be ordered before the other. introspectable="0"> An extensible options structure controlling archive import. Ensure that + line="809">An extensible options structure controlling archive import. Ensure that you have entirely zeroed the structure, then set just the desired options. This is used by ostree_repo_import_archive_to_mtree(). - + @@ -13734,7 +14009,7 @@ options. This is used by ostree_repo_import_archive_to_mtree(). version="2017.11"> Possibly change a pathname while importing an archive. If %NULL is returned, + line="784">Possibly change a pathname while importing an archive. If %NULL is returned, then @src_path will be used unchanged. Otherwise, return a new pathname which will be freed via `g_free()`. @@ -13744,7 +14019,7 @@ types, first with outer directories, then their sub-files and directories. Note that enabling pathname translation will always override the setting for `use_ostree_convention`. - + @@ -13752,7 +14027,7 @@ Note that enabling pathname translation will always override the setting for Repo + line="786">Repo Stat buffer + line="787">Stat buffer Path in the archive + line="788">Path in the archive User data + line="789">User data - + List only loose (plain file) objects + line="1045">List only loose (plain file) objects List only packed (compacted into blobs) objects + line="1046">List only packed (compacted into blobs) objects List all objects + line="1047">List all objects Only list objects in this repo, not parents + line="1048">Only list objects in this repo, not parents @@ -13842,6 +14117,26 @@ Note that enabling pathname translation will always override the setting for line="544">Exclude mirrored refs. Since: 2019.2 + + Flags controlling repository locking. + + + A "read only" lock; multiple readers are allowed. + + + A writable lock at most one writer can be active, and zero readers. + + - + No special options for pruning + line="1247">No special options for pruning Don't actually delete objects + line="1248">Don't actually delete objects Do not traverse individual commit objects, only follow refs + line="1249">Do not traverse individual commit objects, only follow refs - + @@ -13932,46 +14227,46 @@ possible modes. - + No special options for pull + line="1306">No special options for pull Write out refs suitable for mirrors and fetch all refs if none requested + line="1307">Write out refs suitable for mirrors and fetch all refs if none requested Fetch only the commit metadata + line="1308">Fetch only the commit metadata Do verify checksums of local (filesystem-accessible) repositories (defaults on for HTTP) + line="1309">Do verify checksums of local (filesystem-accessible) repositories (defaults on for HTTP) Since 2017.7. Reject writes of content objects with modes outside of 0775. + line="1310">Since 2017.7. Reject writes of content objects with modes outside of 0775. Don't verify checksums of objects HTTP repositories (Since: 2017.12) + line="1311">Don't verify checksums of objects HTTP repositories (Since: 2017.12) @@ -14106,6 +14401,32 @@ in bytes, counting only content objects. + + + + No flags + + + Skip GPG verification + + + Skip all other signature verification methods + + @@ -15967,35 +16288,35 @@ Based on ostree_repo_add_gpg_signature_summary implementation. c:type="OstreeStaticDeltaGenerateOpt"> Parameters controlling optimization of static deltas. - + line="1091">Parameters controlling optimization of static deltas. + Optimize for speed of delta creation over space + line="1093">Optimize for speed of delta creation over space Optimize for delta size (may be very slow) + line="1094">Optimize for delta size (may be very slow) Flags controlling static delta index generation. - + line="1113">Flags controlling static delta index generation. + No special flags + line="1115">No special flags Create a new #OstreeSysroot object for the sysroot at @path. If @path is %NULL, + line="203">Create a new #OstreeSysroot object for the sysroot at @path. If @path is %NULL, the current visible root file system is used, equivalent to ostree_sysroot_new_default(). An accessor object for an system root located at @path + line="212">An accessor object for an system root located at @path @@ -16024,7 +16345,7 @@ ostree_sysroot_new_default(). allow-none="1"> Path to a system root directory, or %NULL to use the + line="205">Path to a system root directory, or %NULL to use the current visible root file system @@ -16036,7 +16357,7 @@ ostree_sysroot_new_default(). An accessor for the current visible root / filesystem + line="223">An accessor for the current visible root / filesystem @@ -16046,14 +16367,14 @@ ostree_sysroot_new_default(). Path to deployment origin file + line="1342">Path to deployment origin file A deployment path + line="1340">A deployment path @@ -16161,7 +16482,7 @@ Locking: exclusive throws="1"> Older version of ostree_sysroot_stage_tree_with_options(). + line="2891">Older version of ostree_sysroot_stage_tree_with_options(). @@ -16170,7 +16491,7 @@ Locking: exclusive Sysroot + line="2893">Sysroot allow-none="1"> osname to use for merge deployment + line="2894">osname to use for merge deployment Checksum to add + line="2895">Checksum to add allow-none="1"> Origin to use for upgrades + line="2896">Origin to use for upgrades allow-none="1"> Use this deployment for merge path + line="2897">Use this deployment for merge path allow-none="1"> Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment + line="2898">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment @@ -16223,7 +16544,7 @@ Locking: exclusive transfer-ownership="full"> The new deployment path + line="2899">The new deployment path allow-none="1"> Cancellable + line="2900">Cancellable @@ -16243,7 +16564,7 @@ Locking: exclusive throws="1"> Check out deployment tree with revision @revision, performing a 3 + line="2844">Check out deployment tree with revision @revision, performing a 3 way merge with @provided_merge_deployment for configuration. When booted into the sysroot, you should use the @@ -16256,7 +16577,7 @@ ostree_sysroot_stage_tree() API instead. Sysroot + line="2846">Sysroot allow-none="1"> osname to use for merge deployment + line="2847">osname to use for merge deployment Checksum to add + line="2848">Checksum to add allow-none="1"> Origin to use for upgrades + line="2849">Origin to use for upgrades allow-none="1"> Use this deployment for merge path + line="2850">Use this deployment for merge path allow-none="1"> Options + line="2851">Options @@ -16308,7 +16629,7 @@ ostree_sysroot_stage_tree() API instead. transfer-ownership="full"> The new deployment path + line="2852">The new deployment path allow-none="1"> Cancellable + line="2853">Cancellable @@ -16327,7 +16648,7 @@ ostree_sysroot_stage_tree() API instead. throws="1"> Entirely replace the kernel arguments of @deployment with the + line="3292">Entirely replace the kernel arguments of @deployment with the values in @new_kargs. @@ -16337,19 +16658,19 @@ values in @new_kargs. Sysroot + line="3294">Sysroot A deployment + line="3295">A deployment Replace deployment's kernel arguments + line="3296">Replace deployment's kernel arguments @@ -16360,7 +16681,7 @@ values in @new_kargs. allow-none="1"> Cancellable + line="3297">Cancellable @@ -16370,7 +16691,7 @@ values in @new_kargs. throws="1"> By default, deployment directories are not mutable. This function + line="3341">By default, deployment directories are not mutable. This function will allow making them temporarily mutable, for example to allow layering additional non-OSTree content. @@ -16381,19 +16702,19 @@ layering additional non-OSTree content. Sysroot + line="3343">Sysroot A deployment + line="3344">A deployment Whether or not deployment's files can be changed + line="3345">Whether or not deployment's files can be changed allow-none="1"> Cancellable + line="3346">Cancellable @@ -16413,7 +16734,7 @@ layering additional non-OSTree content. throws="1"> By default, deployments may be subject to garbage collection. Typical uses of + line="2205">By default, deployments may be subject to garbage collection. Typical uses of libostree only retain at most 2 deployments. If @is_pinned is `TRUE`, a metadata bit will be set causing libostree to avoid automatic GC of the deployment. However, this is really an "advisory" note; it's still possible @@ -16430,19 +16751,19 @@ the staged deployment (as it's not in the bootloader entries). Sysroot + line="2207">Sysroot A deployment + line="2208">A deployment Whether or not deployment will be automatically GC'd + line="2209">Whether or not deployment will be automatically GC'd @@ -16453,7 +16774,7 @@ the staged deployment (as it's not in the bootloader entries). throws="1"> Configure the target deployment @deployment such that it + line="1999">Configure the target deployment @deployment such that it is writable. There are multiple modes, essentially differing in whether or not any changes persist across reboot. @@ -16467,19 +16788,19 @@ across reboots. Sysroot + line="2001">Sysroot Deployment + line="2002">Deployment Transition to this unlocked state + line="2003">Transition to this unlocked state @@ -16489,7 +16810,7 @@ across reboots. allow-none="1"> Cancellable + line="2004">Cancellable @@ -16499,7 +16820,7 @@ across reboots. throws="1"> Ensure that @self is set up as a valid rootfs, by creating + line="424">Ensure that @self is set up as a valid rootfs, by creating /ostree/repo, among other things. @@ -16509,7 +16830,7 @@ across reboots. Sysroot + line="426">Sysroot allow-none="1"> Cancellable + line="427">Cancellable @@ -16529,14 +16850,14 @@ across reboots. The currently booted deployment, or %NULL if none + line="1238">The currently booted deployment, or %NULL if none Sysroot + line="1236">Sysroot @@ -16559,20 +16880,20 @@ across reboots. Path to deployment root directory + line="1328">Path to deployment root directory Sysroot + line="1325">Sysroot A deployment + line="1326">A deployment @@ -16581,27 +16902,27 @@ across reboots. c:identifier="ostree_sysroot_get_deployment_dirpath"> Note this function only returns a *relative* path - if you want + line="1302">Note this function only returns a *relative* path - if you want to access, it, you must either use fd-relative api such as openat(), or concatenate it with the full ostree_sysroot_get_path(). Path to deployment root directory, relative to sysroot + line="1311">Path to deployment root directory, relative to sysroot Repo + line="1304">Repo A deployment + line="1305">A deployment @@ -16612,7 +16933,7 @@ or concatenate it with the full ostree_sysroot_get_path(). Ordered list of deployments + line="1289">Ordered list of deployments @@ -16621,7 +16942,7 @@ or concatenate it with the full ostree_sysroot_get_path(). Sysroot + line="1287">Sysroot @@ -16629,21 +16950,21 @@ or concatenate it with the full ostree_sysroot_get_path(). Access a file descriptor that refers to the root directory of this sysroot. + line="360">Access a file descriptor that refers to the root directory of this sysroot. ostree_sysroot_initialize() (or ostree_sysroot_load()) must have been invoked prior to calling this function. A file descriptor valid for the lifetime of @self + line="368">A file descriptor valid for the lifetime of @self Sysroot + line="362">Sysroot @@ -16652,20 +16973,20 @@ prior to calling this function. c:identifier="ostree_sysroot_get_merge_deployment"> Find the deployment to use as a configuration merge source; this is + line="1554">Find the deployment to use as a configuration merge source; this is the first one in the current deployment list which matches osname. Configuration merge deployment + line="1562">Configuration merge deployment Sysroot + line="1556">Sysroot allow-none="1"> Operating system group + line="1557">Operating system group @@ -16684,14 +17005,14 @@ the first one in the current deployment list which matches osname. Path to rootfs + line="262">Path to rootfs Sysroot + line="260">Sysroot @@ -16701,20 +17022,20 @@ the first one in the current deployment list which matches osname. throws="1"> Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open + line="1353">Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open (see ostree_repo_open()). %TRUE on success, %FALSE otherwise + line="1363">%TRUE on success, %FALSE otherwise Sysroot + line="1355">Sysroot allow-none="1"> Repository in sysroot @self + line="1356">Repository in sysroot @self allow-none="1"> Cancellable + line="1357">Cancellable @@ -16746,14 +17067,14 @@ the first one in the current deployment list which matches osname. The currently staged deployment, or %NULL if none + line="1273">The currently staged deployment, or %NULL if none Sysroot + line="1271">Sysroot @@ -16776,7 +17097,7 @@ the first one in the current deployment list which matches osname. throws="1"> Initialize the directory structure for an "osname", which is a + line="1750">Initialize the directory structure for an "osname", which is a group of operating system deployments, with a shared `/var`. One is required for generating a deployment. @@ -16787,13 +17108,13 @@ is required for generating a deployment. Sysroot + line="1752">Sysroot Name group of operating system checkouts + line="1753">Name group of operating system checkouts allow-none="1"> Cancellable + line="1754">Cancellable @@ -16813,7 +17134,7 @@ is required for generating a deployment. throws="1"> Subset of ostree_sysroot_load(); performs basic initialization. Notably, one + line="953">Subset of ostree_sysroot_load(); performs basic initialization. Notably, one can invoke `ostree_sysroot_get_fd()` after calling this function. It is not necessary to call this function if ostree_sysroot_load() is @@ -16826,7 +17147,7 @@ invoked. sysroot + line="955">sysroot @@ -16836,19 +17157,19 @@ invoked. version="2020.1"> Can only be invoked after `ostree_sysroot_initialize()`. + line="377">Can only be invoked after `ostree_sysroot_initialize()`. %TRUE iff the sysroot points to a booted deployment + line="383">%TRUE iff the sysroot points to a booted deployment Sysroot + line="379">Sysroot @@ -16856,7 +17177,7 @@ invoked. Load deployment list, bootversion, and subbootversion from the + line="909">Load deployment list, bootversion, and subbootversion from the rootfs @self. @@ -16866,7 +17187,7 @@ rootfs @self. Sysroot + line="911">Sysroot allow-none="1"> Cancellable + line="912">Cancellable @@ -16892,7 +17213,7 @@ rootfs @self. #OstreeSysroot + line="1168">#OstreeSysroot allow-none="1"> Cancellable + line="1170">Cancellable @@ -16915,7 +17236,7 @@ rootfs @self. Acquire an exclusive multi-process write lock for @self. This call + line="1604">Acquire an exclusive multi-process write lock for @self. This call blocks until the lock has been acquired. The lock is not reentrant. @@ -16929,7 +17250,7 @@ be released if @self is deallocated. Self + line="1606">Self @@ -16937,7 +17258,7 @@ be released if @self is deallocated. An asynchronous version of ostree_sysroot_lock(). + line="1714">An asynchronous version of ostree_sysroot_lock(). @@ -16946,7 +17267,7 @@ be released if @self is deallocated. Self + line="1716">Self allow-none="1"> Cancellable + line="1717">Cancellable closure="2"> Callback + line="1718">Callback allow-none="1"> User data + line="1719">User data @@ -16985,7 +17306,7 @@ be released if @self is deallocated. throws="1"> Call when ostree_sysroot_lock_async() is ready. + line="1733">Call when ostree_sysroot_lock_async() is ready. @@ -16994,13 +17315,13 @@ be released if @self is deallocated. Self + line="1735">Self Result + line="1736">Result @@ -17011,20 +17332,20 @@ be released if @self is deallocated. A new config file which sets @refspec as an origin + line="1593">A new config file which sets @refspec as an origin Sysroot + line="1590">Sysroot A refspec + line="1591">A refspec @@ -17063,7 +17384,7 @@ and old boot versions, but does NOT prune the repository. version="2017.7"> Find the pending and rollback deployments for @osname. Pass %NULL for @osname + line="1497">Find the pending and rollback deployments for @osname. Pass %NULL for @osname to use the booted deployment's osname. By default, pending deployment is the first deployment in the order that matches @osname, and @rollback will be the next one after the booted deployment, or the deployment after the pending if @@ -17076,7 +17397,7 @@ we're not looking at the booted deployment. Sysroot + line="1499">Sysroot allow-none="1"> "stateroot" name + line="1500">"stateroot" name allow-none="1"> The pending deployment + line="1501">The pending deployment allow-none="1"> The rollback deployment + line="1502">The rollback deployment @@ -17117,21 +17438,21 @@ we're not looking at the booted deployment. This function is a variant of ostree_sysroot_get_repo() that cannot fail, and + line="1378">This function is a variant of ostree_sysroot_get_repo() that cannot fail, and returns a cached repository. Can only be called after ostree_sysroot_initialize() or ostree_sysroot_load() has been invoked successfully. The OSTree repository in sysroot @self. + line="1386">The OSTree repository in sysroot @self. Sysroot + line="1380">Sysroot @@ -17142,19 +17463,19 @@ or ostree_sysroot_load() has been invoked successfully. throws="1"> Find the booted deployment, or return an error if not booted via OSTree. + line="1249">Find the booted deployment, or return an error if not booted via OSTree. The currently booted deployment, or an error + line="1255">The currently booted deployment, or an error Sysroot + line="1251">Sysroot @@ -17164,7 +17485,7 @@ or ostree_sysroot_load() has been invoked successfully. version="2020.1"> If this function is invoked, then libostree will assume that + line="231">If this function is invoked, then libostree will assume that a private Linux mount namespace has been created by the process. The primary use case for this is to have e.g. /sysroot mounted read-only by default. @@ -17191,7 +17512,7 @@ be invoked before or after ostree_sysroot_initialize(). throws="1"> Prepend @new_deployment to the list of deployments, commit, and + line="1814">Prepend @new_deployment to the list of deployments, commit, and cleanup. By default, all other deployments for the given @osname except the merge deployment and the booted deployment will be garbage collected. @@ -17221,7 +17542,7 @@ later, instead. Sysroot + line="1816">Sysroot allow-none="1"> OS name + line="1817">OS name Prepend this deployment to the list + line="1818">Prepend this deployment to the list allow-none="1"> Use this deployment for configuration merge + line="1819">Use this deployment for configuration merge Flags controlling behavior + line="1820">Flags controlling behavior @@ -17261,7 +17582,7 @@ later, instead. allow-none="1"> Cancellable + line="1821">Cancellable @@ -17272,7 +17593,7 @@ later, instead. throws="1"> Stage an overlay initrd to be used in an upcoming deployment. Returns a checksum which + line="2983">Stage an overlay initrd to be used in an upcoming deployment. Returns a checksum which can be passed to ostree_sysroot_deploy_tree_with_options() or ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option. @@ -17283,13 +17604,13 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option. Sysroot + line="2985">Sysroot File descriptor to overlay initrd + line="2986">File descriptor to overlay initrd Overlay initrd checksum + line="2987">Overlay initrd checksum Cancellable + line="2988">Cancellable @@ -17318,7 +17639,7 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option. throws="1"> Older version of ostree_sysroot_stage_tree_with_options(). + line="3040">Older version of ostree_sysroot_stage_tree_with_options(). @@ -17327,7 +17648,7 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option. Sysroot + line="3042">Sysroot osname to use for merge deployment + line="3043">osname to use for merge deployment Checksum to add + line="3044">Checksum to add Origin to use for upgrades + line="3045">Origin to use for upgrades Use this deployment for merge path + line="3046">Use this deployment for merge path Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment + line="3047">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment @@ -17380,7 +17701,7 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option. transfer-ownership="full"> The new deployment path + line="3048">The new deployment path Cancellable + line="3049">Cancellable @@ -17400,7 +17721,7 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option. throws="1"> Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS + line="3074">Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS shutdown time. @@ -17410,7 +17731,7 @@ shutdown time. Sysroot + line="3076">Sysroot allow-none="1"> osname to use for merge deployment + line="3077">osname to use for merge deployment Checksum to add + line="3078">Checksum to add allow-none="1"> Origin to use for upgrades + line="3079">Origin to use for upgrades allow-none="1"> Use this deployment for merge path + line="3080">Use this deployment for merge path Options + line="3081">Options @@ -17459,7 +17780,7 @@ shutdown time. transfer-ownership="full"> The new deployment path + line="3082">The new deployment path allow-none="1"> Cancellable + line="3083">Cancellable @@ -17478,7 +17799,7 @@ shutdown time. throws="1"> Try to acquire an exclusive multi-process write lock for @self. If + line="1630">Try to acquire an exclusive multi-process write lock for @self. If another process holds the lock, this function will return immediately, setting @out_acquired to %FALSE, and returning %TRUE (and no error). @@ -17493,7 +17814,7 @@ be released if @self is deallocated. Self + line="1632">Self transfer-ownership="full"> Whether or not the lock has been acquired + line="1633">Whether or not the lock has been acquired @@ -17510,7 +17831,7 @@ be released if @self is deallocated. Release any resources such as file descriptors referring to the + line="406">Release any resources such as file descriptors referring to the root directory of this sysroot. Normally, those resources are cleared by finalization, but in garbage collected languages that may not be predictable. @@ -17524,7 +17845,7 @@ This undoes the effect of `ostree_sysroot_load()`. Sysroot + line="408">Sysroot @@ -17532,7 +17853,7 @@ This undoes the effect of `ostree_sysroot_load()`. Clear the lock previously acquired with ostree_sysroot_lock(). It + line="1678">Clear the lock previously acquired with ostree_sysroot_lock(). It is safe to call this function if the lock has not been previously acquired. @@ -17543,7 +17864,7 @@ acquired. Self + line="1680">Self @@ -17769,7 +18090,7 @@ Currently, the structured data is only available via the systemd journal. - + - + - + line="403">Check that the timestamp on @to_rev is equal to or newer than @from_rev. This protects systems against man-in-the-middle attackers which provide a client with an older commit. - + @@ -17915,7 +18236,7 @@ attackers which provide a client with an older commit. filename="ostree-sysroot-upgrader.c" line="632">Write the new deployment to disk, perform a configuration merge with /etc, and update the bootloader configuration. - + @@ -17939,7 +18260,7 @@ with /etc, and update the bootloader configuration. - + - + - + - + @@ -18063,7 +18384,7 @@ If the origin remote is unchanged, @out_changed will be set to line="471">Like ostree_sysroot_upgrader_pull(), but allows retrieving just a subpath of the tree. This can be used to download metadata files from inside the tree such as package databases. - + @@ -18128,7 +18449,7 @@ from inside the tree such as package databases. Replace the origin with @origin. - + @@ -18193,10 +18514,19 @@ from inside the tree such as package databases. filename="ostree-sysroot-upgrader.h" line="37">Do not error if the origin has an unconfigured-state key + + Enable "staging" (finalization at shutdown); recommended + (Since: 2021.4) + - + @@ -18285,7 +18615,7 @@ users who had been using zero before. - + %TRUE if current libostree has at least the requested version, %FALSE otherwise + line="2719">%TRUE if current libostree has at least the requested version, %FALSE otherwise Major/year required + line="2716">Major/year required Release version required + line="2717">Release version required @@ -18432,7 +18762,7 @@ care of synchronization. Modified base64 encoding of @csum + line="1560">Modified base64 encoding of @csum The "modified" term refers to the fact that instead of '/', the '_' character is used. @@ -18442,7 +18772,7 @@ character is used. An binary checksum of length 32 + line="1558">An binary checksum of length 32 @@ -18454,7 +18784,7 @@ character is used. introspectable="0"> Overwrite the contents of @buf with modified base64 encoding of @csum. + line="1488">Overwrite the contents of @buf with modified base64 encoding of @csum. The "modified" term refers to the fact that instead of '/', the '_' character is used. @@ -18465,7 +18795,7 @@ character is used. An binary checksum of length 32 + line="1490">An binary checksum of length 32 @@ -18473,7 +18803,7 @@ character is used. Output location, must be at least 44 bytes in length + line="1491">Output location, must be at least 44 bytes in length @@ -18483,7 +18813,7 @@ character is used. introspectable="0"> Overwrite the contents of @buf with stringified version of @csum. + line="1369">Overwrite the contents of @buf with stringified version of @csum. @@ -18492,7 +18822,7 @@ character is used. An binary checksum of length 32 + line="1371">An binary checksum of length 32 @@ -18500,7 +18830,7 @@ character is used. Output location, must be at least 45 bytes in length + line="1372">Output location, must be at least 45 bytes in length @@ -18512,7 +18842,7 @@ character is used. Binary version of @checksum. + line="1462">Binary version of @checksum. @@ -18521,7 +18851,7 @@ character is used. An ASCII checksum + line="1460">An ASCII checksum @@ -18532,7 +18862,7 @@ character is used. Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL. + line="1579">Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL. @@ -18541,7 +18871,7 @@ character is used. #GVariant of type ay + line="1577">#GVariant of type ay @@ -18551,12 +18881,12 @@ character is used. throws="1"> Like ostree_checksum_bytes_peek(), but also throws @error. + line="1592">Like ostree_checksum_bytes_peek(), but also throws @error. Binary checksum data + line="1599">Binary checksum data @@ -18565,7 +18895,7 @@ character is used. #GVariant of type ay + line="1594">#GVariant of type ay @@ -18619,9 +18949,9 @@ character is used. c:identifier="ostree_checksum_file_async"> Asynchronously compute the OSTree checksum for a given file; + line="1060">Asynchronously compute the OSTree checksum for a given file; complete with ostree_checksum_file_async_finish(). - + @@ -18629,19 +18959,19 @@ complete with ostree_checksum_file_async_finish(). File path + line="1062">File path Object type + line="1063">Object type Priority for operation, see %G_IO_PRIORITY_DEFAULT + line="1064">Priority for operation, see %G_IO_PRIORITY_DEFAULT allow-none="1"> Cancellable + line="1065">Cancellable closure="5"> Invoked when operation is complete + line="1066">Invoked when operation is complete allow-none="1"> Data for @callback + line="1067">Data for @callback @@ -18680,9 +19010,9 @@ complete with ostree_checksum_file_async_finish(). throws="1"> Finish computing the OSTree checksum for a given file; see + line="1094">Finish computing the OSTree checksum for a given file; see ostree_checksum_file_async(). - + @@ -18690,13 +19020,13 @@ ostree_checksum_file_async(). File path + line="1096">File path Async result + line="1097">Async result transfer-ownership="full"> Return location for binary checksum + line="1098">Return location for binary checksum @@ -18721,7 +19051,7 @@ ostree_checksum_file_async(). line="945">Compute the OSTree checksum for a given file. This is an fd-relative version of ostree_checksum_file() which also takes flags and fills in a caller allocated buffer. - + @@ -18841,14 +19171,14 @@ allocated buffer. String form of @csum + line="1534">String form of @csum An binary checksum of length 32 + line="1532">An binary checksum of length 32 @@ -18861,14 +19191,14 @@ allocated buffer. String form of @csum_bytes + line="1548">String form of @csum_bytes #GVariant of type ay + line="1546">#GVariant of type ay @@ -18878,7 +19208,7 @@ allocated buffer. introspectable="0"> Overwrite the contents of @buf with stringified version of @csum. + line="1474">Overwrite the contents of @buf with stringified version of @csum. @@ -18887,7 +19217,7 @@ allocated buffer. An binary checksum of length 32 + line="1476">An binary checksum of length 32 @@ -18895,7 +19225,7 @@ allocated buffer. Output location, must be at least OSTREE_SHA256_STRING_LEN+1 bytes in length + line="1477">Output location, must be at least OSTREE_SHA256_STRING_LEN+1 bytes in length @@ -18904,7 +19234,7 @@ allocated buffer. c:identifier="ostree_checksum_inplace_to_bytes"> Convert @checksum from a string to binary in-place, without + line="1398">Convert @checksum from a string to binary in-place, without allocating memory. Use this function in hot code paths. @@ -18914,13 +19244,13 @@ allocating memory. Use this function in hot code paths. a SHA256 string + line="1400">a SHA256 string Output buffer with at least 32 bytes of space + line="1401">Output buffer with at least 32 bytes of space @@ -18930,7 +19260,7 @@ allocating memory. Use this function in hot code paths. Binary checksum from @checksum of length 32; free with g_free(). + line="1434">Binary checksum from @checksum of length 32; free with g_free(). @@ -18939,7 +19269,7 @@ allocating memory. Use this function in hot code paths. An ASCII checksum + line="1432">An ASCII checksum @@ -18950,14 +19280,14 @@ allocating memory. Use this function in hot code paths. New #GVariant of type ay with length 32 + line="1448">New #GVariant of type ay with length 32 An ASCII checksum + line="1446">An ASCII checksum @@ -18972,7 +19302,7 @@ allocating memory. Use this function in hot code paths. c:identifier="ostree_cmp_checksum_bytes"> Compare two binary checksums, using memcmp(). + line="1320">Compare two binary checksums, using memcmp(). @@ -18981,13 +19311,13 @@ allocating memory. Use this function in hot code paths. A binary checksum + line="1322">A binary checksum A binary checksum + line="1323">A binary checksum @@ -19103,7 +19433,7 @@ must be %NULL-terminated; it may be empty, but must not be %NULL. version="2018.2"> There are use cases where one wants a checksum just of the content of a + line="2400">There are use cases where one wants a checksum just of the content of a commit. OSTree commits by default capture the current timestamp, and may have additional metadata, which means that re-committing identical content often results in a new checksum. @@ -19114,18 +19444,18 @@ cases where nothing actually changed. The content checksums is simply defined as `SHA256(root dirtree_checksum || root_dirmeta_checksum)`, i.e. the SHA-256 of the root "dirtree" object's checksum concatenated with the root "dirmeta" checksum (both in binary form, not hexadecimal). - + A SHA-256 hex string, or %NULL if @commit_variant is not well-formed + line="2416">A SHA-256 hex string, or %NULL if @commit_variant is not well-formed A commit object + line="2402">A commit object @@ -19136,12 +19466,12 @@ root "dirmeta" checksum (both in binary form, not hexadecimal). throws="1"> Reads a commit's "ostree.sizes" metadata and returns an array of + line="2574">Reads a commit's "ostree.sizes" metadata and returns an array of #OstreeCommitSizesEntry in @out_sizes_entries. Each element represents an object in the commit. If the commit does not contain the "ostree.sizes" metadata, a %G_IO_ERROR_NOT_FOUND error will be returned. - + @@ -19149,7 +19479,7 @@ returned. variant of type %OSTREE_OBJECT_TYPE_COMMIT + line="2576">variant of type %OSTREE_OBJECT_TYPE_COMMIT allow-none="1"> + line="2577"> return location for an array of object size entries @@ -19169,11 +19499,11 @@ returned. - + Checksum of the parent commit of @commit_variant, or %NULL + line="2371">Checksum of the parent commit of @commit_variant, or %NULL if none @@ -19181,7 +19511,7 @@ if none Variant of type %OSTREE_OBJECT_TYPE_COMMIT + line="2369">Variant of type %OSTREE_OBJECT_TYPE_COMMIT @@ -19189,18 +19519,18 @@ if none - + timestamp in seconds since the Unix epoch, UTC + line="2388">timestamp in seconds since the Unix epoch, UTC Commit object + line="2386">Commit object @@ -19455,18 +19785,18 @@ converts an object content stream back into components. - + A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META + line="1146">A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META a #GFileInfo containing directory information + line="1143">a #GFileInfo containing directory information allow-none="1"> Optional extended attributes + line="1144">Optional extended attributes @@ -19621,7 +19951,7 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. Print the contents of a diff to stdout. + line="480">Print the contents of a diff to stdout. @@ -19630,19 +19960,19 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. First directory path + line="482">First directory path First directory path + line="483">First directory path Modified files + line="484">Modified files @@ -19650,7 +19980,7 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. Removed files + line="485">Removed files @@ -19658,7 +19988,7 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. Added files + line="486">Added files @@ -19675,7 +20005,7 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. Use this function with #GHashTable and ostree_object_name_serialize(). + line="1301">Use this function with #GHashTable and ostree_object_name_serialize(). @@ -19687,7 +20017,7 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. allow-none="1"> A #GVariant containing a serialized object + line="1303">A #GVariant containing a serialized object @@ -19772,7 +20102,7 @@ to the empty OstreeKernelArgs c:identifier="ostree_object_from_string"> Reverse ostree_object_to_string(). + line="1280">Reverse ostree_object_to_string(). @@ -19781,7 +20111,7 @@ to the empty OstreeKernelArgs An ASCII checksum + line="1282">An ASCII checksum transfer-ownership="full"> Parsed checksum + line="1283">Parsed checksum transfer-ownership="full"> Parsed object type + line="1284">Parsed object type @@ -19808,7 +20138,7 @@ to the empty OstreeKernelArgs c:identifier="ostree_object_name_deserialize"> Reverse ostree_object_name_serialize(). Note that @out_checksum is + line="1350">Reverse ostree_object_name_serialize(). Note that @out_checksum is only valid for the lifetime of @variant, and must not be freed. @@ -19818,7 +20148,7 @@ only valid for the lifetime of @variant, and must not be freed. A #GVariant of type (su) + line="1352">A #GVariant of type (su) transfer-ownership="none"> Pointer into string memory of @variant with checksum + line="1353">Pointer into string memory of @variant with checksum transfer-ownership="full"> Return object type + line="1354">Return object type @@ -19847,20 +20177,20 @@ only valid for the lifetime of @variant, and must not be freed. A new floating #GVariant containing checksum string and objtype + line="1339">A new floating #GVariant containing checksum string and objtype An ASCII checksum + line="1336">An ASCII checksum An object type + line="1337">An object type @@ -19870,20 +20200,20 @@ only valid for the lifetime of @variant, and must not be freed. A string containing both @checksum and a stringifed version of @objtype + line="1271">A string containing both @checksum and a stringifed version of @objtype An ASCII checksum + line="1268">An ASCII checksum Object type + line="1269">Object type @@ -19892,7 +20222,7 @@ only valid for the lifetime of @variant, and must not be freed. c:identifier="ostree_object_type_from_string"> The reverse of ostree_object_type_to_string(). + line="1239">The reverse of ostree_object_type_to_string(). @@ -19901,7 +20231,7 @@ only valid for the lifetime of @variant, and must not be freed. A stringified version of #OstreeObjectType + line="1241">A stringified version of #OstreeObjectType @@ -19910,7 +20240,7 @@ only valid for the lifetime of @variant, and must not be freed. c:identifier="ostree_object_type_to_string"> Serialize @objtype to a string; this is used for file extensions. + line="1208">Serialize @objtype to a string; this is used for file extensions. @@ -19919,7 +20249,7 @@ only valid for the lifetime of @variant, and must not be freed. an #OstreeObjectType + line="1210">an #OstreeObjectType @@ -20187,11 +20517,11 @@ at compile-time throws="1"> Split a refspec like `gnome-ostree:gnome-ostree/buildmaster` or just -`gnome-ostree/buildmaster` into two parts. In the first case, @out_remote -will be set to `gnome-ostree`, and @out_ref to `gnome-ostree/buildmaster`. + line="155">Split a refspec like `gnome-ostree:gnome-ostree/buildmain` or just +`gnome-ostree/buildmain` into two parts. In the first case, @out_remote +will be set to `gnome-ostree`, and @out_ref to `gnome-ostree/buildmain`. In the second case (a local ref), @out_remote will be %NULL, and @out_ref -will be `gnome-ostree/buildmaster`. In both cases, %TRUE will be returned. +will be `gnome-ostree/buildmain`. In both cases, %TRUE will be returned. - + @@ -20602,24 +20932,6 @@ signing engines; they will not be initialized. - - libsoup contains several help methods for processing HTML forms as -defined by <ulink -url="http://www.w3.org/TR/html401/interact/forms.html#h-17.13">the -HTML 4.01 specification</ulink>. - - - A #SoupURI represents a (parsed) URI. - -Many applications will not need to use #SoupURI directly at all; on -the client side, soup_message_new() takes a stringified URI, and on -the server side, the path and query components are provided for you -in the server callback. - @@ -20723,18 +21035,18 @@ Valid collection IDs are reverse DNS names: - + %TRUE if @checksum is a valid ASCII SHA256 checksum + line="2063">%TRUE if @checksum is a valid ASCII SHA256 checksum an ASCII string + line="2060">an ASCII string @@ -20744,20 +21056,20 @@ Valid collection IDs are reverse DNS names: throws="1"> Use this to validate the basic structure of @commit, independent of + line="2185">Use this to validate the basic structure of @commit, independent of any other objects it references. - + %TRUE if @commit is structurally valid + line="2193">%TRUE if @commit is structurally valid A commit object, %OSTREE_OBJECT_TYPE_COMMIT + line="2187">A commit object, %OSTREE_OBJECT_TYPE_COMMIT @@ -20765,18 +21077,18 @@ any other objects it references. - + %TRUE if @checksum is a valid binary SHA256 checksum + line="2049">%TRUE if @checksum is a valid binary SHA256 checksum a #GVariant of type "ay" + line="2046">a #GVariant of type "ay" @@ -20786,19 +21098,19 @@ any other objects it references. throws="1"> Use this to validate the basic structure of @dirmeta. - + line="2337">Use this to validate the basic structure of @dirmeta. + %TRUE if @dirmeta is structurally valid + line="2344">%TRUE if @dirmeta is structurally valid A dirmeta object, %OSTREE_OBJECT_TYPE_DIR_META + line="2339">A dirmeta object, %OSTREE_OBJECT_TYPE_DIR_META @@ -20808,20 +21120,20 @@ any other objects it references. throws="1"> Use this to validate the basic structure of @dirtree, independent of + line="2225">Use this to validate the basic structure of @dirtree, independent of any other objects it references. - + %TRUE if @dirtree is structurally valid + line="2233">%TRUE if @dirtree is structurally valid A dirtree object, %OSTREE_OBJECT_TYPE_DIR_TREE + line="2227">A dirtree object, %OSTREE_OBJECT_TYPE_DIR_TREE @@ -20829,18 +21141,18 @@ any other objects it references. - + %TRUE if @mode represents a valid file type and permissions + line="2322">%TRUE if @mode represents a valid file type and permissions A Unix filesystem mode + line="2319">A Unix filesystem mode @@ -20848,11 +21160,11 @@ any other objects it references. - + %TRUE if @objtype represents a valid object type + line="2031">%TRUE if @objtype represents a valid object type diff --git a/rust-bindings/rust/src/auto/constants.rs b/rust-bindings/rust/src/auto/constants.rs index b68c8fd3..56b8647a 100644 --- a/rust-bindings/rust/src/auto/constants.rs +++ b/rust-bindings/rust/src/auto/constants.rs @@ -38,6 +38,8 @@ pub static COMMIT_META_KEY_VERSION: once_cell::sync::Lazy<&'static str> = once_c pub static DIRMETA_GVARIANT_STRING: once_cell::sync::Lazy<&'static str> = once_cell::sync::Lazy::new(|| unsafe{CStr::from_ptr(ffi::OSTREE_DIRMETA_GVARIANT_STRING).to_str().unwrap()}); #[doc(alias = "OSTREE_FILEMETA_GVARIANT_STRING")] pub static FILEMETA_GVARIANT_STRING: once_cell::sync::Lazy<&'static str> = once_cell::sync::Lazy::new(|| unsafe{CStr::from_ptr(ffi::OSTREE_FILEMETA_GVARIANT_STRING).to_str().unwrap()}); +#[doc(alias = "OSTREE_GPG_KEY_GVARIANT_STRING")] +pub static GPG_KEY_GVARIANT_STRING: once_cell::sync::Lazy<&'static str> = once_cell::sync::Lazy::new(|| unsafe{CStr::from_ptr(ffi::OSTREE_GPG_KEY_GVARIANT_STRING).to_str().unwrap()}); #[cfg(any(feature = "v2021_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_1")))] #[doc(alias = "OSTREE_METADATA_KEY_BOOTABLE")] diff --git a/rust-bindings/rust/src/auto/flags.rs b/rust-bindings/rust/src/auto/flags.rs index ed273745..b9dbcbae 100644 --- a/rust-bindings/rust/src/auto/flags.rs +++ b/rust-bindings/rust/src/auto/flags.rs @@ -19,6 +19,8 @@ bitflags! { const NONE = ffi::OSTREE_CHECKSUM_FLAGS_NONE as u32; #[doc(alias = "OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS")] const IGNORE_XATTRS = ffi::OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS as u32; + #[doc(alias = "OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS")] + const CANONICAL_PERMISSIONS = ffi::OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS as u32; } } @@ -404,6 +406,48 @@ impl FromGlib for RepoResolveRevExtFlags { } } +#[cfg(any(feature = "v2021_4", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] +bitflags! { + #[doc(alias = "OstreeRepoVerifyFlags")] + pub struct RepoVerifyFlags: u32 { + #[doc(alias = "OSTREE_REPO_VERIFY_FLAGS_NONE")] + const NONE = ffi::OSTREE_REPO_VERIFY_FLAGS_NONE as u32; + #[doc(alias = "OSTREE_REPO_VERIFY_FLAGS_NO_GPG")] + const NO_GPG = ffi::OSTREE_REPO_VERIFY_FLAGS_NO_GPG as u32; + #[doc(alias = "OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI")] + const NO_SIGNAPI = ffi::OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI as u32; + } +} + +#[cfg(any(feature = "v2021_4", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] +impl fmt::Display for RepoVerifyFlags { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + ::fmt(self, f) + } +} + +#[cfg(any(feature = "v2021_4", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] +#[doc(hidden)] +impl IntoGlib for RepoVerifyFlags { + type GlibType = ffi::OstreeRepoVerifyFlags; + + fn into_glib(self) -> ffi::OstreeRepoVerifyFlags { + self.bits() + } +} + +#[cfg(any(feature = "v2021_4", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] +#[doc(hidden)] +impl FromGlib for RepoVerifyFlags { + unsafe fn from_glib(value: ffi::OstreeRepoVerifyFlags) -> Self { + Self::from_bits_truncate(value) + } +} + bitflags! { #[doc(alias = "OstreeSePolicyRestoreconFlags")] pub struct SePolicyRestoreconFlags: u32 { @@ -483,6 +527,8 @@ bitflags! { pub struct SysrootUpgraderFlags: u32 { #[doc(alias = "OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED")] const IGNORE_UNCONFIGURED = ffi::OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED as u32; + #[doc(alias = "OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE")] + const STAGE = ffi::OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE as u32; } } diff --git a/rust-bindings/rust/src/auto/mod.rs b/rust-bindings/rust/src/auto/mod.rs index 7264e795..a4816c6b 100644 --- a/rust-bindings/rust/src/auto/mod.rs +++ b/rust-bindings/rust/src/auto/mod.rs @@ -145,6 +145,9 @@ pub use self::flags::RepoListRefsExtFlags; pub use self::flags::RepoPruneFlags; pub use self::flags::RepoPullFlags; pub use self::flags::RepoResolveRevExtFlags; +#[cfg(any(feature = "v2021_4", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] +pub use self::flags::RepoVerifyFlags; pub use self::flags::SePolicyRestoreconFlags; pub use self::flags::SysrootSimpleWriteDeploymentFlags; pub use self::flags::SysrootUpgraderFlags; @@ -177,6 +180,7 @@ pub use self::constants::COMMIT_META_KEY_SOURCE_TITLE; pub use self::constants::COMMIT_META_KEY_VERSION; pub use self::constants::DIRMETA_GVARIANT_STRING; pub use self::constants::FILEMETA_GVARIANT_STRING; +pub use self::constants::GPG_KEY_GVARIANT_STRING; #[cfg(any(feature = "v2021_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_1")))] pub use self::constants::METADATA_KEY_BOOTABLE; diff --git a/rust-bindings/rust/src/auto/repo.rs b/rust-bindings/rust/src/auto/repo.rs index aafe4e55..8f1784a6 100644 --- a/rust-bindings/rust/src/auto/repo.rs +++ b/rust-bindings/rust/src/auto/repo.rs @@ -36,6 +36,9 @@ use crate::RepoRemoteChange; #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_7")))] use crate::RepoResolveRevExtFlags; use crate::RepoTransactionStats; +#[cfg(any(feature = "v2021_4", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] +use crate::RepoVerifyFlags; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] use crate::Sign; @@ -527,6 +530,20 @@ impl Repo { } } + //#[cfg(any(feature = "v2021_3", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_3")))] + //#[doc(alias = "ostree_repo_lock_pop")] + //pub fn lock_pop>(&self, lock_type: /*Ignored*/RepoLockType, cancellable: Option<&P>) -> Result<(), glib::Error> { + // unsafe { TODO: call ffi:ostree_repo_lock_pop() } + //} + + //#[cfg(any(feature = "v2021_3", feature = "dox"))] + //#[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_3")))] + //#[doc(alias = "ostree_repo_lock_push")] + //pub fn lock_push>(&self, lock_type: /*Ignored*/RepoLockType, cancellable: Option<&P>) -> Result<(), glib::Error> { + // unsafe { TODO: call ffi:ostree_repo_lock_push() } + //} + #[cfg(any(feature = "v2017_15", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))] #[doc(alias = "ostree_repo_mark_commit_partial")] @@ -650,7 +667,7 @@ impl Repo { } #[doc(alias = "ostree_repo_read_commit_detached_metadata")] - pub fn read_commit_detached_metadata>(&self, checksum: &str, cancellable: Option<&P>) -> Result { + pub fn read_commit_detached_metadata>(&self, checksum: &str, cancellable: Option<&P>) -> Result, glib::Error> { unsafe { let mut out_metadata = ptr::null_mut(); let mut error = ptr::null_mut(); @@ -680,7 +697,7 @@ impl Repo { } #[doc(alias = "ostree_repo_remote_add")] - pub fn remote_add>(&self, name: &str, url: &str, options: Option<&glib::Variant>, cancellable: Option<&P>) -> Result<(), glib::Error> { + pub fn remote_add>(&self, name: &str, url: Option<&str>, options: Option<&glib::Variant>, cancellable: Option<&P>) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); let _ = ffi::ostree_repo_remote_add(self.to_glib_none().0, name.to_glib_none().0, url.to_glib_none().0, options.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error); @@ -689,7 +706,7 @@ impl Repo { } #[doc(alias = "ostree_repo_remote_change")] - pub fn remote_change, Q: IsA>(&self, sysroot: Option<&P>, changeop: RepoRemoteChange, name: &str, url: &str, options: Option<&glib::Variant>, cancellable: Option<&Q>) -> Result<(), glib::Error> { + pub fn remote_change, Q: IsA>(&self, sysroot: Option<&P>, changeop: RepoRemoteChange, name: &str, url: Option<&str>, options: Option<&glib::Variant>, cancellable: Option<&Q>) -> Result<(), glib::Error> { unsafe { let mut error = ptr::null_mut(); let _ = ffi::ostree_repo_remote_change(self.to_glib_none().0, sysroot.map(|p| p.as_ref()).to_glib_none().0, changeop.into_glib(), name.to_glib_none().0, url.to_glib_none().0, options.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error); @@ -730,6 +747,18 @@ impl Repo { } } + #[cfg(any(feature = "v2021_4", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] + #[doc(alias = "ostree_repo_remote_get_gpg_keys")] + pub fn remote_get_gpg_keys>(&self, name: Option<&str>, key_ids: &[&str], cancellable: Option<&P>) -> Result, glib::Error> { + unsafe { + let mut out_keys = ptr::null_mut(); + let mut error = ptr::null_mut(); + let _ = ffi::ostree_repo_remote_get_gpg_keys(self.to_glib_none().0, name.to_glib_none().0, key_ids.to_glib_none().0, &mut out_keys, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error); + if error.is_null() { Ok(FromGlibPtrContainer::from_glib_container(out_keys)) } else { Err(from_glib_full(error)) } + } + } + #[doc(alias = "ostree_repo_remote_get_gpg_verify")] pub fn remote_get_gpg_verify(&self, name: &str) -> Result { unsafe { @@ -926,6 +955,18 @@ impl Repo { } } + #[cfg(any(feature = "v2021_4", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] + #[doc(alias = "ostree_repo_signature_verify_commit_data")] + pub fn signature_verify_commit_data(&self, remote_name: &str, commit_data: &glib::Bytes, commit_metadata: &glib::Bytes, flags: RepoVerifyFlags) -> Result, glib::Error> { + unsafe { + let mut out_results = ptr::null_mut(); + let mut error = ptr::null_mut(); + let _ = ffi::ostree_repo_signature_verify_commit_data(self.to_glib_none().0, remote_name.to_glib_none().0, commit_data.to_glib_none().0, commit_metadata.to_glib_none().0, flags.into_glib(), &mut out_results, &mut error); + if error.is_null() { Ok(from_glib_full(out_results)) } else { Err(from_glib_full(error)) } + } + } + #[doc(alias = "ostree_repo_static_delta_execute_offline")] pub fn static_delta_execute_offline, Q: IsA>(&self, dir_or_file: &P, skip_validation: bool, cancellable: Option<&Q>) -> Result<(), glib::Error> { unsafe { diff --git a/rust-bindings/rust/src/auto/repo_finder_result.rs b/rust-bindings/rust/src/auto/repo_finder_result.rs index 702ec52c..00c7bd0f 100644 --- a/rust-bindings/rust/src/auto/repo_finder_result.rs +++ b/rust-bindings/rust/src/auto/repo_finder_result.rs @@ -3,7 +3,7 @@ // DO NOT EDIT use std::cmp; -use glib::translate::*; +use glib::translate::ToGlibPtr; glib::wrapper! { #[derive(Debug, Hash)] diff --git a/rust-bindings/rust/sys/Cargo.toml b/rust-bindings/rust/sys/Cargo.toml index 77afa8b8..c2cd0ea7 100644 --- a/rust-bindings/rust/sys/Cargo.toml +++ b/rust-bindings/rust/sys/Cargo.toml @@ -56,6 +56,7 @@ v2020_8 = ["v2020_7"] v2021_1 = ["v2020_8"] v2021_2 = ["v2021_1"] v2021_3 = ["v2021_2"] +v2021_4 = ["v2021_3"] [lib] name = "ostree_sys" @@ -73,10 +74,8 @@ name = "ostree-sys" repository = "https://gitlab.com/fkrull/ostree-rs" version = "0.8.2" edition = "2018" - [package.metadata.docs.rs] features = ["dox"] - [package.metadata.system-deps.ostree_1] name = "ostree-1" version = "0.0" @@ -200,3 +199,6 @@ version = "2021.2" [package.metadata.system-deps.ostree_1.v2021_3] version = "2021.3" + +[package.metadata.system-deps.ostree_1.v2021_4] +version = "2021.4" diff --git a/rust-bindings/rust/sys/src/lib.rs b/rust-bindings/rust/sys/src/lib.rs index 0470d056..a7b10279 100644 --- a/rust-bindings/rust/sys/src/lib.rs +++ b/rust-bindings/rust/sys/src/lib.rs @@ -3,27 +3,21 @@ // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] -#![allow( - clippy::approx_constant, - clippy::type_complexity, - clippy::unreadable_literal, - clippy::upper_case_acronyms -)] +#![allow(clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms)] #![cfg_attr(feature = "dox", feature(doc_cfg))] -use gio_sys as gio; use glib_sys as glib; use gobject_sys as gobject; +use gio_sys as gio; mod manual; pub use manual::*; #[allow(unused_imports)] -use libc::{ - c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, - intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE, -}; +use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, + c_short, c_ushort, c_long, c_ulong, + c_void, size_t, ssize_t, intptr_t, uintptr_t, time_t, FILE}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; @@ -97,6 +91,10 @@ pub const OSTREE_REPO_COMMIT_ITER_RESULT_END: OstreeRepoCommitIterResult = 1; pub const OSTREE_REPO_COMMIT_ITER_RESULT_FILE: OstreeRepoCommitIterResult = 2; pub const OSTREE_REPO_COMMIT_ITER_RESULT_DIR: OstreeRepoCommitIterResult = 3; +pub type OstreeRepoLockType = c_int; +pub const OSTREE_REPO_LOCK_SHARED: OstreeRepoLockType = 0; +pub const OSTREE_REPO_LOCK_EXCLUSIVE: OstreeRepoLockType = 1; + pub type OstreeRepoMode = c_int; pub const OSTREE_REPO_MODE_BARE: OstreeRepoMode = 0; pub const OSTREE_REPO_MODE_ARCHIVE: OstreeRepoMode = 1; @@ -119,53 +117,37 @@ pub type OstreeStaticDeltaIndexFlags = c_int; pub const OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE: OstreeStaticDeltaIndexFlags = 0; // Constants -pub const OSTREE_COMMIT_GVARIANT_STRING: *const c_char = - b"(a{sv}aya(say)sstayay)\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_ARCHITECTURE: *const c_char = - b"ostree.architecture\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_COLLECTION_BINDING: *const c_char = - b"ostree.collection-binding\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE: *const c_char = - b"ostree.endoflife\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE: *const c_char = - b"ostree.endoflife-rebase\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_REF_BINDING: *const c_char = - b"ostree.ref-binding\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_SOURCE_TITLE: *const c_char = - b"ostree.source-title\0" as *const u8 as *const c_char; -pub const OSTREE_COMMIT_META_KEY_VERSION: *const c_char = - b"version\0" as *const u8 as *const c_char; -pub const OSTREE_DIRMETA_GVARIANT_STRING: *const c_char = - b"(uuua(ayay))\0" as *const u8 as *const c_char; -pub const OSTREE_FILEMETA_GVARIANT_STRING: *const c_char = - b"(uuua(ayay))\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_GVARIANT_STRING: *const c_char = b"(a{sv}aya(say)sstayay)\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_ARCHITECTURE: *const c_char = b"ostree.architecture\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_COLLECTION_BINDING: *const c_char = b"ostree.collection-binding\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE: *const c_char = b"ostree.endoflife\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE: *const c_char = b"ostree.endoflife-rebase\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_REF_BINDING: *const c_char = b"ostree.ref-binding\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_SOURCE_TITLE: *const c_char = b"ostree.source-title\0" as *const u8 as *const c_char; +pub const OSTREE_COMMIT_META_KEY_VERSION: *const c_char = b"version\0" as *const u8 as *const c_char; +pub const OSTREE_DIRMETA_GVARIANT_STRING: *const c_char = b"(uuua(ayay))\0" as *const u8 as *const c_char; +pub const OSTREE_FILEMETA_GVARIANT_STRING: *const c_char = b"(uuua(ayay))\0" as *const u8 as *const c_char; +pub const OSTREE_GPG_KEY_GVARIANT_STRING: *const c_char = b"(aa{sv}aa{sv}a{sv})\0" as *const u8 as *const c_char; pub const OSTREE_MAX_METADATA_SIZE: c_int = 10485760; pub const OSTREE_MAX_METADATA_WARN_SIZE: c_int = 7340032; -pub const OSTREE_METADATA_KEY_BOOTABLE: *const c_char = - b"ostree.bootable\0" as *const u8 as *const c_char; -pub const OSTREE_METADATA_KEY_LINUX: *const c_char = - b"ostree.linux\0" as *const u8 as *const c_char; -pub const OSTREE_META_KEY_DEPLOY_COLLECTION_ID: *const c_char = - b"ostree.deploy-collection-id\0" as *const u8 as *const c_char; -pub const OSTREE_ORIGIN_TRANSIENT_GROUP: *const c_char = - b"libostree-transient\0" as *const u8 as *const c_char; -pub const OSTREE_REPO_METADATA_REF: *const c_char = - b"ostree-metadata\0" as *const u8 as *const c_char; +pub const OSTREE_METADATA_KEY_BOOTABLE: *const c_char = b"ostree.bootable\0" as *const u8 as *const c_char; +pub const OSTREE_METADATA_KEY_LINUX: *const c_char = b"ostree.linux\0" as *const u8 as *const c_char; +pub const OSTREE_META_KEY_DEPLOY_COLLECTION_ID: *const c_char = b"ostree.deploy-collection-id\0" as *const u8 as *const c_char; +pub const OSTREE_ORIGIN_TRANSIENT_GROUP: *const c_char = b"libostree-transient\0" as *const u8 as *const c_char; +pub const OSTREE_REPO_METADATA_REF: *const c_char = b"ostree-metadata\0" as *const u8 as *const c_char; pub const OSTREE_SHA256_DIGEST_LEN: c_int = 32; pub const OSTREE_SHA256_STRING_LEN: c_int = 64; pub const OSTREE_SIGN_NAME_ED25519: *const c_char = b"ed25519\0" as *const u8 as *const c_char; -pub const OSTREE_SUMMARY_GVARIANT_STRING: *const c_char = - b"(a(s(taya{sv}))a{sv})\0" as *const u8 as *const c_char; -pub const OSTREE_SUMMARY_SIG_GVARIANT_STRING: *const c_char = - b"a{sv}\0" as *const u8 as *const c_char; +pub const OSTREE_SUMMARY_GVARIANT_STRING: *const c_char = b"(a(s(taya{sv}))a{sv})\0" as *const u8 as *const c_char; +pub const OSTREE_SUMMARY_SIG_GVARIANT_STRING: *const c_char = b"a{sv}\0" as *const u8 as *const c_char; pub const OSTREE_TIMESTAMP: c_int = 0; -pub const OSTREE_TREE_GVARIANT_STRING: *const c_char = - b"(a(say)a(sayay))\0" as *const u8 as *const c_char; +pub const OSTREE_TREE_GVARIANT_STRING: *const c_char = b"(a(say)a(sayay))\0" as *const u8 as *const c_char; // Flags pub type OstreeChecksumFlags = c_uint; pub const OSTREE_CHECKSUM_FLAGS_NONE: OstreeChecksumFlags = 0; pub const OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS: OstreeChecksumFlags = 1; +pub const OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS: OstreeChecksumFlags = 2; pub type OstreeDiffFlags = c_uint; pub const OSTREE_DIFF_FLAGS_NONE: OstreeDiffFlags = 0; @@ -178,8 +160,7 @@ pub type OstreeRepoCommitModifierFlags = c_uint; pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE: OstreeRepoCommitModifierFlags = 0; pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS: OstreeRepoCommitModifierFlags = 1; pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES: OstreeRepoCommitModifierFlags = 2; -pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS: OstreeRepoCommitModifierFlags = - 4; +pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS: OstreeRepoCommitModifierFlags = 4; 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; @@ -221,27 +202,27 @@ pub type OstreeRepoResolveRevExtFlags = c_uint; pub const OSTREE_REPO_RESOLVE_REV_EXT_NONE: OstreeRepoResolveRevExtFlags = 0; pub const OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY: OstreeRepoResolveRevExtFlags = 1; +pub type OstreeRepoVerifyFlags = c_uint; +pub const OSTREE_REPO_VERIFY_FLAGS_NONE: OstreeRepoVerifyFlags = 0; +pub const OSTREE_REPO_VERIFY_FLAGS_NO_GPG: OstreeRepoVerifyFlags = 1; +pub const OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI: OstreeRepoVerifyFlags = 2; + pub type OstreeSePolicyRestoreconFlags = c_uint; pub const OSTREE_SEPOLICY_RESTORECON_FLAGS_NONE: OstreeSePolicyRestoreconFlags = 0; pub const OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL: OstreeSePolicyRestoreconFlags = 1; pub const OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING: OstreeSePolicyRestoreconFlags = 2; pub type OstreeSysrootSimpleWriteDeploymentFlags = c_uint; -pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE: - OstreeSysrootSimpleWriteDeploymentFlags = 0; -pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN: - OstreeSysrootSimpleWriteDeploymentFlags = 1; -pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT: - OstreeSysrootSimpleWriteDeploymentFlags = 2; -pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN: - OstreeSysrootSimpleWriteDeploymentFlags = 4; -pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING: - OstreeSysrootSimpleWriteDeploymentFlags = 8; -pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK: - OstreeSysrootSimpleWriteDeploymentFlags = 16; +pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE: OstreeSysrootSimpleWriteDeploymentFlags = 0; +pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN: OstreeSysrootSimpleWriteDeploymentFlags = 1; +pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT: OstreeSysrootSimpleWriteDeploymentFlags = 2; +pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN: OstreeSysrootSimpleWriteDeploymentFlags = 4; +pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING: OstreeSysrootSimpleWriteDeploymentFlags = 8; +pub const OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK: OstreeSysrootSimpleWriteDeploymentFlags = 16; pub type OstreeSysrootUpgraderFlags = c_uint; pub const OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED: OstreeSysrootUpgraderFlags = 2; +pub const OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE: OstreeSysrootUpgraderFlags = 4; pub type OstreeSysrootUpgraderPullFlags = c_uint; pub const OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE: OstreeSysrootUpgraderPullFlags = 0; @@ -249,33 +230,10 @@ pub const OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER: OstreeSysrootUpgraderP pub const OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC: OstreeSysrootUpgraderPullFlags = 2; // Callbacks -pub type OstreeRepoCheckoutFilter = Option< - unsafe extern "C" fn( - *mut OstreeRepo, - *const c_char, - *mut stat, - gpointer, - ) -> OstreeRepoCheckoutFilterResult, ->; -pub type OstreeRepoCommitFilter = Option< - unsafe extern "C" fn( - *mut OstreeRepo, - *const c_char, - *mut gio::GFileInfo, - gpointer, - ) -> OstreeRepoCommitFilterResult, ->; -pub type OstreeRepoCommitModifierXattrCallback = Option< - unsafe extern "C" fn( - *mut OstreeRepo, - *const c_char, - *mut gio::GFileInfo, - gpointer, - ) -> *mut glib::GVariant, ->; -pub type OstreeRepoImportArchiveTranslatePathname = Option< - unsafe extern "C" fn(*mut OstreeRepo, *const stat, *const c_char, gpointer) -> *mut c_char, ->; +pub type OstreeRepoCheckoutFilter = Option OstreeRepoCheckoutFilterResult>; +pub type OstreeRepoCommitFilter = Option OstreeRepoCommitFilterResult>; +pub type OstreeRepoCommitModifierXattrCallback = Option *mut glib::GVariant>; +pub type OstreeRepoImportArchiveTranslatePathname = Option *mut c_char>; // Records #[repr(C)] @@ -288,9 +246,9 @@ pub struct OstreeAsyncProgressClass { impl ::std::fmt::Debug for OstreeAsyncProgressClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeAsyncProgressClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .field("changed", &self.changed) - .finish() + .field("parent_class", &self.parent_class) + .field("changed", &self.changed) + .finish() } } @@ -334,9 +292,9 @@ pub struct OstreeCollectionRef { impl ::std::fmt::Debug for OstreeCollectionRef { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeCollectionRef @ {:p}", self)) - .field("collection_id", &self.collection_id) - .field("ref_name", &self.ref_name) - .finish() + .field("collection_id", &self.collection_id) + .field("ref_name", &self.ref_name) + .finish() } } @@ -352,11 +310,11 @@ pub struct OstreeCommitSizesEntry { impl ::std::fmt::Debug for OstreeCommitSizesEntry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeCommitSizesEntry @ {:p}", self)) - .field("checksum", &self.checksum) - .field("objtype", &self.objtype) - .field("unpacked", &self.unpacked) - .field("archived", &self.archived) - .finish() + .field("checksum", &self.checksum) + .field("objtype", &self.objtype) + .field("unpacked", &self.unpacked) + .field("archived", &self.archived) + .finish() } } @@ -369,8 +327,8 @@ pub struct OstreeContentWriterClass { impl ::std::fmt::Debug for OstreeContentWriterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeContentWriterClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -388,13 +346,13 @@ pub struct OstreeDiffDirsOptions { impl ::std::fmt::Debug for OstreeDiffDirsOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeDiffDirsOptions @ {:p}", self)) - .field("owner_uid", &self.owner_uid) - .field("owner_gid", &self.owner_gid) - .field("devino_to_csum_cache", &self.devino_to_csum_cache) - .field("unused_bools", &self.unused_bools) - .field("unused_ints", &self.unused_ints) - .field("unused_ptrs", &self.unused_ptrs) - .finish() + .field("owner_uid", &self.owner_uid) + .field("owner_gid", &self.owner_gid) + .field("devino_to_csum_cache", &self.devino_to_csum_cache) + .field("unused_bools", &self.unused_bools) + .field("unused_ints", &self.unused_ints) + .field("unused_ptrs", &self.unused_ptrs) + .finish() } } @@ -413,14 +371,14 @@ pub struct OstreeDiffItem { impl ::std::fmt::Debug for OstreeDiffItem { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeDiffItem @ {:p}", self)) - .field("refcount", &self.refcount) - .field("src", &self.src) - .field("target", &self.target) - .field("src_info", &self.src_info) - .field("target_info", &self.target_info) - .field("src_checksum", &self.src_checksum) - .field("target_checksum", &self.target_checksum) - .finish() + .field("refcount", &self.refcount) + .field("src", &self.src) + .field("target", &self.target) + .field("src_info", &self.src_info) + .field("target_info", &self.target_info) + .field("src_checksum", &self.src_checksum) + .field("target_checksum", &self.target_checksum) + .finish() } } @@ -463,8 +421,8 @@ pub struct OstreeMutableTreeClass { impl ::std::fmt::Debug for OstreeMutableTreeClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeMutableTreeClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -478,9 +436,9 @@ pub struct OstreeMutableTreeIter { impl ::std::fmt::Debug for OstreeMutableTreeIter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeMutableTreeIter @ {:p}", self)) - .field("in_files", &self.in_files) - .field("iter", &self.iter) - .finish() + .field("in_files", &self.in_files) + .field("iter", &self.iter) + .finish() } } @@ -490,7 +448,7 @@ pub struct OstreeRemote(c_void); impl ::std::fmt::Debug for OstreeRemote { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRemote @ {:p}", self)) - .finish() + .finish() } } @@ -520,25 +478,25 @@ pub struct OstreeRepoCheckoutAtOptions { impl ::std::fmt::Debug for OstreeRepoCheckoutAtOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoCheckoutAtOptions @ {:p}", self)) - .field("mode", &self.mode) - .field("overwrite_mode", &self.overwrite_mode) - .field("enable_uncompressed_cache", &self.enable_uncompressed_cache) - .field("enable_fsync", &self.enable_fsync) - .field("process_whiteouts", &self.process_whiteouts) - .field("no_copy_fallback", &self.no_copy_fallback) - .field("force_copy", &self.force_copy) - .field("bareuseronly_dirs", &self.bareuseronly_dirs) - .field("force_copy_zerosized", &self.force_copy_zerosized) - .field("unused_bools", &self.unused_bools) - .field("subpath", &self.subpath) - .field("devino_to_csum_cache", &self.devino_to_csum_cache) - .field("unused_ints", &self.unused_ints) - .field("unused_ptrs", &self.unused_ptrs) - .field("filter", &self.filter) - .field("filter_user_data", &self.filter_user_data) - .field("sepolicy", &self.sepolicy) - .field("sepolicy_prefix", &self.sepolicy_prefix) - .finish() + .field("mode", &self.mode) + .field("overwrite_mode", &self.overwrite_mode) + .field("enable_uncompressed_cache", &self.enable_uncompressed_cache) + .field("enable_fsync", &self.enable_fsync) + .field("process_whiteouts", &self.process_whiteouts) + .field("no_copy_fallback", &self.no_copy_fallback) + .field("force_copy", &self.force_copy) + .field("bareuseronly_dirs", &self.bareuseronly_dirs) + .field("force_copy_zerosized", &self.force_copy_zerosized) + .field("unused_bools", &self.unused_bools) + .field("subpath", &self.subpath) + .field("devino_to_csum_cache", &self.devino_to_csum_cache) + .field("unused_ints", &self.unused_ints) + .field("unused_ptrs", &self.unused_ptrs) + .field("filter", &self.filter) + .field("filter_user_data", &self.filter_user_data) + .field("sepolicy", &self.sepolicy) + .field("sepolicy_prefix", &self.sepolicy_prefix) + .finish() } } @@ -554,10 +512,10 @@ pub struct OstreeRepoCheckoutOptions { impl ::std::fmt::Debug for OstreeRepoCheckoutOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoCheckoutOptions @ {:p}", self)) - .field("mode", &self.mode) - .field("overwrite_mode", &self.overwrite_mode) - .field("enable_uncompressed_cache", &self.enable_uncompressed_cache) - .finish() + .field("mode", &self.mode) + .field("overwrite_mode", &self.overwrite_mode) + .field("enable_uncompressed_cache", &self.enable_uncompressed_cache) + .finish() } } @@ -567,7 +525,7 @@ pub struct OstreeRepoCommitModifier(c_void); impl ::std::fmt::Debug for OstreeRepoCommitModifier { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoCommitModifier @ {:p}", self)) - .finish() + .finish() } } @@ -582,9 +540,9 @@ pub struct OstreeRepoCommitTraverseIter { impl ::std::fmt::Debug for OstreeRepoCommitTraverseIter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoCommitTraverseIter @ {:p}", self)) - .field("initialized", &self.initialized) - .field("dummy", &self.dummy) - .finish() + .field("initialized", &self.initialized) + .field("dummy", &self.dummy) + .finish() } } @@ -594,7 +552,7 @@ pub struct OstreeRepoDevInoCache(c_void); impl ::std::fmt::Debug for OstreeRepoDevInoCache { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoDevInoCache @ {:p}", self)) - .finish() + .finish() } } @@ -608,8 +566,8 @@ pub struct OstreeRepoExportArchiveOptions { impl ::std::fmt::Debug for OstreeRepoExportArchiveOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoExportArchiveOptions @ {:p}", self)) - .field("disable_xattrs", &self.disable_xattrs) - .finish() + .field("disable_xattrs", &self.disable_xattrs) + .finish() } } @@ -622,8 +580,8 @@ pub struct OstreeRepoFileClass { impl ::std::fmt::Debug for OstreeRepoFileClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFileClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -641,8 +599,8 @@ pub struct OstreeRepoFinderAvahiClass { impl ::std::fmt::Debug for OstreeRepoFinderAvahiClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderAvahiClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -655,8 +613,8 @@ pub struct OstreeRepoFinderConfigClass { impl ::std::fmt::Debug for OstreeRepoFinderConfigClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderConfigClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -664,32 +622,17 @@ impl ::std::fmt::Debug for OstreeRepoFinderConfigClass { #[derive(Copy, Clone)] pub struct OstreeRepoFinderInterface { pub g_iface: gobject::GTypeInterface, - pub resolve_async: Option< - unsafe extern "C" fn( - *mut OstreeRepoFinder, - *const *const OstreeCollectionRef, - *mut OstreeRepo, - *mut gio::GCancellable, - gio::GAsyncReadyCallback, - gpointer, - ), - >, - pub resolve_finish: Option< - unsafe extern "C" fn( - *mut OstreeRepoFinder, - *mut gio::GAsyncResult, - *mut *mut glib::GError, - ) -> *mut glib::GPtrArray, - >, + pub resolve_async: Option, + pub resolve_finish: Option *mut glib::GPtrArray>, } impl ::std::fmt::Debug for OstreeRepoFinderInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderInterface @ {:p}", self)) - .field("g_iface", &self.g_iface) - .field("resolve_async", &self.resolve_async) - .field("resolve_finish", &self.resolve_finish) - .finish() + .field("g_iface", &self.g_iface) + .field("resolve_async", &self.resolve_async) + .field("resolve_finish", &self.resolve_finish) + .finish() } } @@ -702,8 +645,8 @@ pub struct OstreeRepoFinderMountClass { impl ::std::fmt::Debug for OstreeRepoFinderMountClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderMountClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -716,8 +659,8 @@ pub struct OstreeRepoFinderOverrideClass { impl ::std::fmt::Debug for OstreeRepoFinderOverrideClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderOverrideClass @ {:p}", self)) - .field("parent_class", &self.parent_class) - .finish() + .field("parent_class", &self.parent_class) + .finish() } } @@ -736,13 +679,13 @@ pub struct OstreeRepoFinderResult { impl ::std::fmt::Debug for OstreeRepoFinderResult { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderResult @ {:p}", self)) - .field("remote", &self.remote) - .field("finder", &self.finder) - .field("priority", &self.priority) - .field("ref_to_checksum", &self.ref_to_checksum) - .field("summary_last_modified", &self.summary_last_modified) - .field("ref_to_timestamp", &self.ref_to_timestamp) - .finish() + .field("remote", &self.remote) + .field("finder", &self.finder) + .field("priority", &self.priority) + .field("ref_to_checksum", &self.ref_to_checksum) + .field("summary_last_modified", &self.summary_last_modified) + .field("ref_to_timestamp", &self.ref_to_timestamp) + .finish() } } @@ -756,11 +699,8 @@ pub struct OstreeRepoImportArchiveOptions { impl ::std::fmt::Debug for OstreeRepoImportArchiveOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoImportArchiveOptions @ {:p}", self)) - .field( - "ignore_unsupported_content", - &self.ignore_unsupported_content, - ) - .finish() + .field("ignore_unsupported_content", &self.ignore_unsupported_content) + .finish() } } @@ -777,12 +717,12 @@ pub struct OstreeRepoPruneOptions { impl ::std::fmt::Debug for OstreeRepoPruneOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoPruneOptions @ {:p}", self)) - .field("flags", &self.flags) - .field("reachable", &self.reachable) - .field("unused_bools", &self.unused_bools) - .field("unused_ints", &self.unused_ints) - .field("unused_ptrs", &self.unused_ptrs) - .finish() + .field("flags", &self.flags) + .field("reachable", &self.reachable) + .field("unused_bools", &self.unused_bools) + .field("unused_ints", &self.unused_ints) + .field("unused_ptrs", &self.unused_ptrs) + .finish() } } @@ -804,17 +744,17 @@ pub struct OstreeRepoTransactionStats { impl ::std::fmt::Debug for OstreeRepoTransactionStats { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoTransactionStats @ {:p}", self)) - .field("metadata_objects_total", &self.metadata_objects_total) - .field("metadata_objects_written", &self.metadata_objects_written) - .field("content_objects_total", &self.content_objects_total) - .field("content_objects_written", &self.content_objects_written) - .field("content_bytes_written", &self.content_bytes_written) - .field("devino_cache_hits", &self.devino_cache_hits) - .field("padding1", &self.padding1) - .field("padding2", &self.padding2) - .field("padding3", &self.padding3) - .field("padding4", &self.padding4) - .finish() + .field("metadata_objects_total", &self.metadata_objects_total) + .field("metadata_objects_written", &self.metadata_objects_written) + .field("content_objects_total", &self.content_objects_total) + .field("content_objects_written", &self.content_objects_written) + .field("content_bytes_written", &self.content_bytes_written) + .field("devino_cache_hits", &self.devino_cache_hits) + .field("padding1", &self.padding1) + .field("padding2", &self.padding2) + .field("padding3", &self.padding3) + .field("padding4", &self.padding4) + .finish() } } @@ -823,73 +763,32 @@ impl ::std::fmt::Debug for OstreeRepoTransactionStats { pub struct OstreeSignInterface { pub g_iface: gobject::GTypeInterface, pub get_name: Option *const c_char>, - pub data: Option< - unsafe extern "C" fn( - *mut OstreeSign, - *mut glib::GBytes, - *mut *mut glib::GBytes, - *mut gio::GCancellable, - *mut *mut glib::GError, - ) -> gboolean, - >, - pub data_verify: Option< - unsafe extern "C" fn( - *mut OstreeSign, - *mut glib::GBytes, - *mut glib::GVariant, - *mut *mut c_char, - *mut *mut glib::GError, - ) -> gboolean, - >, + pub data: Option gboolean>, + pub data_verify: Option gboolean>, pub metadata_key: Option *const c_char>, pub metadata_format: Option *const c_char>, - pub clear_keys: - Option gboolean>, - pub set_sk: Option< - unsafe extern "C" fn( - *mut OstreeSign, - *mut glib::GVariant, - *mut *mut glib::GError, - ) -> gboolean, - >, - pub set_pk: Option< - unsafe extern "C" fn( - *mut OstreeSign, - *mut glib::GVariant, - *mut *mut glib::GError, - ) -> gboolean, - >, - pub add_pk: Option< - unsafe extern "C" fn( - *mut OstreeSign, - *mut glib::GVariant, - *mut *mut glib::GError, - ) -> gboolean, - >, - pub load_pk: Option< - unsafe extern "C" fn( - *mut OstreeSign, - *mut glib::GVariant, - *mut *mut glib::GError, - ) -> gboolean, - >, + pub clear_keys: Option gboolean>, + pub set_sk: Option gboolean>, + pub set_pk: Option gboolean>, + pub add_pk: Option gboolean>, + pub load_pk: Option gboolean>, } impl ::std::fmt::Debug for OstreeSignInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeSignInterface @ {:p}", self)) - .field("g_iface", &self.g_iface) - .field("get_name", &self.get_name) - .field("data", &self.data) - .field("data_verify", &self.data_verify) - .field("metadata_key", &self.metadata_key) - .field("metadata_format", &self.metadata_format) - .field("clear_keys", &self.clear_keys) - .field("set_sk", &self.set_sk) - .field("set_pk", &self.set_pk) - .field("add_pk", &self.add_pk) - .field("load_pk", &self.load_pk) - .finish() + .field("g_iface", &self.g_iface) + .field("get_name", &self.get_name) + .field("data", &self.data) + .field("data_verify", &self.data_verify) + .field("metadata_key", &self.metadata_key) + .field("metadata_format", &self.metadata_format) + .field("clear_keys", &self.clear_keys) + .field("set_sk", &self.set_sk) + .field("set_pk", &self.set_pk) + .field("add_pk", &self.add_pk) + .field("load_pk", &self.load_pk) + .finish() } } @@ -906,12 +805,12 @@ 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 @ {:p}", self)) - .field("unused_bools", &self.unused_bools) - .field("unused_ints", &self.unused_ints) - .field("override_kernel_argv", &self.override_kernel_argv) - .field("overlay_initrds", &self.overlay_initrds) - .field("unused_ptrs", &self.unused_ptrs) - .finish() + .field("unused_bools", &self.unused_bools) + .field("unused_ints", &self.unused_ints) + .field("override_kernel_argv", &self.override_kernel_argv) + .field("overlay_initrds", &self.overlay_initrds) + .field("unused_ptrs", &self.unused_ptrs) + .finish() } } @@ -927,11 +826,11 @@ pub struct OstreeSysrootWriteDeploymentsOpts { impl ::std::fmt::Debug for OstreeSysrootWriteDeploymentsOpts { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeSysrootWriteDeploymentsOpts @ {:p}", self)) - .field("do_postclean", &self.do_postclean) - .field("unused_bools", &self.unused_bools) - .field("unused_ints", &self.unused_ints) - .field("unused_ptrs", &self.unused_ptrs) - .finish() + .field("do_postclean", &self.do_postclean) + .field("unused_bools", &self.unused_bools) + .field("unused_ints", &self.unused_ints) + .field("unused_ptrs", &self.unused_ptrs) + .finish() } } @@ -952,7 +851,7 @@ pub struct OstreeAsyncProgress(c_void); impl ::std::fmt::Debug for OstreeAsyncProgress { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeAsyncProgress @ {:p}", self)) - .finish() + .finish() } } @@ -962,7 +861,7 @@ pub struct OstreeBootconfigParser(c_void); impl ::std::fmt::Debug for OstreeBootconfigParser { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeBootconfigParser @ {:p}", self)) - .finish() + .finish() } } @@ -972,7 +871,7 @@ pub struct OstreeContentWriter(c_void); impl ::std::fmt::Debug for OstreeContentWriter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeContentWriter @ {:p}", self)) - .finish() + .finish() } } @@ -982,7 +881,7 @@ pub struct OstreeDeployment(c_void); impl ::std::fmt::Debug for OstreeDeployment { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeDeployment @ {:p}", self)) - .finish() + .finish() } } @@ -992,7 +891,7 @@ pub struct OstreeGpgVerifyResult(c_void); impl ::std::fmt::Debug for OstreeGpgVerifyResult { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeGpgVerifyResult @ {:p}", self)) - .finish() + .finish() } } @@ -1002,7 +901,7 @@ pub struct OstreeMutableTree(c_void); impl ::std::fmt::Debug for OstreeMutableTree { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeMutableTree @ {:p}", self)) - .finish() + .finish() } } @@ -1011,7 +910,8 @@ pub struct OstreeRepo(c_void); impl ::std::fmt::Debug for OstreeRepo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { - f.debug_struct(&format!("OstreeRepo @ {:p}", self)).finish() + f.debug_struct(&format!("OstreeRepo @ {:p}", self)) + .finish() } } @@ -1021,7 +921,7 @@ pub struct OstreeRepoFile(c_void); impl ::std::fmt::Debug for OstreeRepoFile { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFile @ {:p}", self)) - .finish() + .finish() } } @@ -1031,7 +931,7 @@ pub struct OstreeRepoFinderAvahi(c_void); impl ::std::fmt::Debug for OstreeRepoFinderAvahi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderAvahi @ {:p}", self)) - .finish() + .finish() } } @@ -1041,7 +941,7 @@ pub struct OstreeRepoFinderConfig(c_void); impl ::std::fmt::Debug for OstreeRepoFinderConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderConfig @ {:p}", self)) - .finish() + .finish() } } @@ -1051,7 +951,7 @@ pub struct OstreeRepoFinderMount(c_void); impl ::std::fmt::Debug for OstreeRepoFinderMount { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderMount @ {:p}", self)) - .finish() + .finish() } } @@ -1061,7 +961,7 @@ pub struct OstreeRepoFinderOverride(c_void); impl ::std::fmt::Debug for OstreeRepoFinderOverride { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeRepoFinderOverride @ {:p}", self)) - .finish() + .finish() } } @@ -1071,7 +971,7 @@ pub struct OstreeSePolicy(c_void); impl ::std::fmt::Debug for OstreeSePolicy { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeSePolicy @ {:p}", self)) - .finish() + .finish() } } @@ -1081,7 +981,7 @@ pub struct OstreeSysroot(c_void); impl ::std::fmt::Debug for OstreeSysroot { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeSysroot @ {:p}", self)) - .finish() + .finish() } } @@ -1091,7 +991,7 @@ pub struct OstreeSysrootUpgrader(c_void); impl ::std::fmt::Debug for OstreeSysrootUpgrader { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("OstreeSysrootUpgrader @ {:p}", self)) - .finish() + .finish() } } @@ -1114,6 +1014,7 @@ impl ::std::fmt::Debug for OstreeSign { } } + #[link(name = "ostree-1")] extern "C" { @@ -1130,10 +1031,7 @@ extern "C" { pub fn ostree_collection_ref_get_type() -> GType; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_collection_ref_new( - collection_id: *const c_char, - ref_name: *const c_char, - ) -> *mut OstreeCollectionRef; + pub fn ostree_collection_ref_new(collection_id: *const c_char, ref_name: *const c_char) -> *mut OstreeCollectionRef; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] pub fn ostree_collection_ref_dup(ref_: *const OstreeCollectionRef) -> *mut OstreeCollectionRef; @@ -1142,9 +1040,7 @@ extern "C" { pub fn ostree_collection_ref_free(ref_: *mut OstreeCollectionRef); #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_collection_ref_dupv( - refs: *const *const OstreeCollectionRef, - ) -> *mut *mut OstreeCollectionRef; + pub fn ostree_collection_ref_dupv(refs: *const *const OstreeCollectionRef) -> *mut *mut OstreeCollectionRef; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] pub fn ostree_collection_ref_equal(ref1: gconstpointer, ref2: gconstpointer) -> gboolean; @@ -1163,17 +1059,10 @@ extern "C" { pub fn ostree_commit_sizes_entry_get_type() -> GType; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] - pub fn ostree_commit_sizes_entry_new( - checksum: *const c_char, - objtype: OstreeObjectType, - unpacked: u64, - archived: u64, - ) -> *mut OstreeCommitSizesEntry; + pub fn ostree_commit_sizes_entry_new(checksum: *const c_char, objtype: OstreeObjectType, unpacked: u64, archived: u64) -> *mut OstreeCommitSizesEntry; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] - pub fn ostree_commit_sizes_entry_copy( - entry: *const OstreeCommitSizesEntry, - ) -> *mut OstreeCommitSizesEntry; + pub fn ostree_commit_sizes_entry_copy(entry: *const OstreeCommitSizesEntry) -> *mut OstreeCommitSizesEntry; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] pub fn ostree_commit_sizes_entry_free(entry: *mut OstreeCommitSizesEntry); @@ -1196,46 +1085,23 @@ extern "C" { pub fn ostree_kernel_args_append_argv(kargs: *mut OstreeKernelArgs, argv: *mut *mut c_char); #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] - pub fn ostree_kernel_args_append_argv_filtered( - kargs: *mut OstreeKernelArgs, - argv: *mut *mut c_char, - prefixes: *mut *mut c_char, - ); + pub fn ostree_kernel_args_append_argv_filtered(kargs: *mut OstreeKernelArgs, argv: *mut *mut c_char, prefixes: *mut *mut c_char); #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] - pub fn ostree_kernel_args_append_proc_cmdline( - kargs: *mut OstreeKernelArgs, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_kernel_args_delete( - kargs: *mut OstreeKernelArgs, - arg: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_kernel_args_append_proc_cmdline(kargs: *mut OstreeKernelArgs, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_kernel_args_delete(kargs: *mut OstreeKernelArgs, arg: *const c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] - pub fn ostree_kernel_args_delete_key_entry( - kargs: *mut OstreeKernelArgs, - key: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_kernel_args_delete_key_entry(kargs: *mut OstreeKernelArgs, key: *const c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] pub fn ostree_kernel_args_free(kargs: *mut OstreeKernelArgs); #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] - pub fn ostree_kernel_args_get_last_value( - kargs: *mut OstreeKernelArgs, - key: *const c_char, - ) -> *const c_char; + pub fn ostree_kernel_args_get_last_value(kargs: *mut OstreeKernelArgs, key: *const c_char) -> *const c_char; #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] - pub fn ostree_kernel_args_new_replace( - kargs: *mut OstreeKernelArgs, - arg: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_kernel_args_new_replace(kargs: *mut OstreeKernelArgs, arg: *const c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2019_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_3")))] pub fn ostree_kernel_args_parse_append(kargs: *mut OstreeKernelArgs, options: *const c_char); @@ -1288,85 +1154,33 @@ extern "C" { //========================================================================= #[cfg(any(feature = "v2017_13", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_13")))] - pub fn ostree_repo_checkout_at_options_set_devino( - opts: *mut OstreeRepoCheckoutAtOptions, - cache: *mut OstreeRepoDevInoCache, - ); + pub fn ostree_repo_checkout_at_options_set_devino(opts: *mut OstreeRepoCheckoutAtOptions, cache: *mut OstreeRepoDevInoCache); //========================================================================= // OstreeRepoCommitModifier //========================================================================= pub fn ostree_repo_commit_modifier_get_type() -> GType; - pub fn ostree_repo_commit_modifier_new( - flags: OstreeRepoCommitModifierFlags, - commit_filter: OstreeRepoCommitFilter, - user_data: gpointer, - destroy_notify: glib::GDestroyNotify, - ) -> *mut OstreeRepoCommitModifier; - pub fn ostree_repo_commit_modifier_ref( - modifier: *mut OstreeRepoCommitModifier, - ) -> *mut OstreeRepoCommitModifier; + pub fn ostree_repo_commit_modifier_new(flags: OstreeRepoCommitModifierFlags, commit_filter: OstreeRepoCommitFilter, user_data: gpointer, destroy_notify: glib::GDestroyNotify) -> *mut OstreeRepoCommitModifier; + pub fn ostree_repo_commit_modifier_ref(modifier: *mut OstreeRepoCommitModifier) -> *mut OstreeRepoCommitModifier; #[cfg(any(feature = "v2017_13", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_13")))] - pub fn ostree_repo_commit_modifier_set_devino_cache( - modifier: *mut OstreeRepoCommitModifier, - cache: *mut OstreeRepoDevInoCache, - ); - pub fn ostree_repo_commit_modifier_set_sepolicy( - modifier: *mut OstreeRepoCommitModifier, - sepolicy: *mut OstreeSePolicy, - ); + pub fn ostree_repo_commit_modifier_set_devino_cache(modifier: *mut OstreeRepoCommitModifier, cache: *mut OstreeRepoDevInoCache); + pub fn ostree_repo_commit_modifier_set_sepolicy(modifier: *mut OstreeRepoCommitModifier, sepolicy: *mut OstreeSePolicy); #[cfg(any(feature = "v2020_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_4")))] - pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit( - modifier: *mut OstreeRepoCommitModifier, - repo: *mut OstreeRepo, - rev: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_commit_modifier_set_xattr_callback( - modifier: *mut OstreeRepoCommitModifier, - callback: OstreeRepoCommitModifierXattrCallback, - destroy: glib::GDestroyNotify, - user_data: gpointer, - ); + pub fn ostree_repo_commit_modifier_set_sepolicy_from_commit(modifier: *mut OstreeRepoCommitModifier, repo: *mut OstreeRepo, rev: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_commit_modifier_set_xattr_callback(modifier: *mut OstreeRepoCommitModifier, callback: OstreeRepoCommitModifierXattrCallback, destroy: glib::GDestroyNotify, user_data: gpointer); pub fn ostree_repo_commit_modifier_unref(modifier: *mut OstreeRepoCommitModifier); //========================================================================= // OstreeRepoCommitTraverseIter //========================================================================= pub fn ostree_repo_commit_traverse_iter_clear(iter: *mut OstreeRepoCommitTraverseIter); - pub fn ostree_repo_commit_traverse_iter_get_dir( - iter: *mut OstreeRepoCommitTraverseIter, - out_name: *mut *mut c_char, - out_content_checksum: *mut *mut c_char, - out_meta_checksum: *mut *mut c_char, - ); - pub fn ostree_repo_commit_traverse_iter_get_file( - iter: *mut OstreeRepoCommitTraverseIter, - out_name: *mut *mut c_char, - out_checksum: *mut *mut c_char, - ); - pub fn ostree_repo_commit_traverse_iter_init_commit( - iter: *mut OstreeRepoCommitTraverseIter, - repo: *mut OstreeRepo, - commit: *mut glib::GVariant, - flags: OstreeRepoCommitTraverseFlags, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_commit_traverse_iter_init_dirtree( - iter: *mut OstreeRepoCommitTraverseIter, - repo: *mut OstreeRepo, - dirtree: *mut glib::GVariant, - flags: OstreeRepoCommitTraverseFlags, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_commit_traverse_iter_next( - iter: *mut OstreeRepoCommitTraverseIter, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> OstreeRepoCommitIterResult; + pub fn ostree_repo_commit_traverse_iter_get_dir(iter: *mut OstreeRepoCommitTraverseIter, out_name: *mut *mut c_char, out_content_checksum: *mut *mut c_char, out_meta_checksum: *mut *mut c_char); + pub fn ostree_repo_commit_traverse_iter_get_file(iter: *mut OstreeRepoCommitTraverseIter, out_name: *mut *mut c_char, out_checksum: *mut *mut c_char); + pub fn ostree_repo_commit_traverse_iter_init_commit(iter: *mut OstreeRepoCommitTraverseIter, repo: *mut OstreeRepo, commit: *mut glib::GVariant, flags: OstreeRepoCommitTraverseFlags, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_commit_traverse_iter_init_dirtree(iter: *mut OstreeRepoCommitTraverseIter, repo: *mut OstreeRepo, dirtree: *mut glib::GVariant, flags: OstreeRepoCommitTraverseFlags, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_commit_traverse_iter_next(iter: *mut OstreeRepoCommitTraverseIter, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> OstreeRepoCommitIterResult; pub fn ostree_repo_commit_traverse_iter_cleanup(p: *mut c_void); //========================================================================= @@ -1374,9 +1188,7 @@ extern "C" { //========================================================================= pub fn ostree_repo_devino_cache_get_type() -> GType; pub fn ostree_repo_devino_cache_new() -> *mut OstreeRepoDevInoCache; - pub fn ostree_repo_devino_cache_ref( - cache: *mut OstreeRepoDevInoCache, - ) -> *mut OstreeRepoDevInoCache; + pub fn ostree_repo_devino_cache_ref(cache: *mut OstreeRepoDevInoCache) -> *mut OstreeRepoDevInoCache; pub fn ostree_repo_devino_cache_unref(cache: *mut OstreeRepoDevInoCache); //========================================================================= @@ -1387,25 +1199,13 @@ extern "C" { pub fn ostree_repo_finder_result_get_type() -> GType; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_result_new( - remote: *mut OstreeRemote, - finder: *mut OstreeRepoFinder, - priority: c_int, - ref_to_checksum: *mut glib::GHashTable, - ref_to_timestamp: *mut glib::GHashTable, - summary_last_modified: u64, - ) -> *mut OstreeRepoFinderResult; + pub fn ostree_repo_finder_result_new(remote: *mut OstreeRemote, finder: *mut OstreeRepoFinder, priority: c_int, ref_to_checksum: *mut glib::GHashTable, ref_to_timestamp: *mut glib::GHashTable, summary_last_modified: u64) -> *mut OstreeRepoFinderResult; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_result_compare( - a: *const OstreeRepoFinderResult, - b: *const OstreeRepoFinderResult, - ) -> c_int; + pub fn ostree_repo_finder_result_compare(a: *const OstreeRepoFinderResult, b: *const OstreeRepoFinderResult) -> c_int; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_result_dup( - result: *mut OstreeRepoFinderResult, - ) -> *mut OstreeRepoFinderResult; + pub fn ostree_repo_finder_result_dup(result: *mut OstreeRepoFinderResult) -> *mut OstreeRepoFinderResult; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] pub fn ostree_repo_finder_result_free(result: *mut OstreeRepoFinderResult); @@ -1423,16 +1223,10 @@ extern "C" { //========================================================================= pub fn ostree_async_progress_get_type() -> GType; pub fn ostree_async_progress_new() -> *mut OstreeAsyncProgress; - pub fn ostree_async_progress_new_and_connect( - changed: *mut gpointer, - user_data: gpointer, - ) -> *mut OstreeAsyncProgress; + pub fn ostree_async_progress_new_and_connect(changed: *mut gpointer, user_data: gpointer) -> *mut OstreeAsyncProgress; #[cfg(any(feature = "v2019_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_6")))] - pub fn ostree_async_progress_copy_state( - self_: *mut OstreeAsyncProgress, - dest: *mut OstreeAsyncProgress, - ); + pub fn ostree_async_progress_copy_state(self_: *mut OstreeAsyncProgress, dest: *mut OstreeAsyncProgress); pub fn ostree_async_progress_finish(self_: *mut OstreeAsyncProgress); #[cfg(any(feature = "v2017_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))] @@ -1440,98 +1234,41 @@ extern "C" { #[cfg(any(feature = "v2017_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))] pub fn ostree_async_progress_get_status(self_: *mut OstreeAsyncProgress) -> *mut c_char; - pub fn ostree_async_progress_get_uint( - self_: *mut OstreeAsyncProgress, - key: *const c_char, - ) -> c_uint; - pub fn ostree_async_progress_get_uint64( - self_: *mut OstreeAsyncProgress, - key: *const c_char, - ) -> u64; + pub fn ostree_async_progress_get_uint(self_: *mut OstreeAsyncProgress, key: *const c_char) -> c_uint; + pub fn ostree_async_progress_get_uint64(self_: *mut OstreeAsyncProgress, key: *const c_char) -> u64; #[cfg(any(feature = "v2017_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))] - pub fn ostree_async_progress_get_variant( - self_: *mut OstreeAsyncProgress, - key: *const c_char, - ) -> *mut glib::GVariant; + pub fn ostree_async_progress_get_variant(self_: *mut OstreeAsyncProgress, key: *const c_char) -> *mut glib::GVariant; #[cfg(any(feature = "v2017_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))] pub fn ostree_async_progress_set(self_: *mut OstreeAsyncProgress, ...); #[cfg(any(feature = "v2017_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))] pub fn ostree_async_progress_set_status(self_: *mut OstreeAsyncProgress, status: *const c_char); - pub fn ostree_async_progress_set_uint( - self_: *mut OstreeAsyncProgress, - key: *const c_char, - value: c_uint, - ); - pub fn ostree_async_progress_set_uint64( - self_: *mut OstreeAsyncProgress, - key: *const c_char, - value: u64, - ); + pub fn ostree_async_progress_set_uint(self_: *mut OstreeAsyncProgress, key: *const c_char, value: c_uint); + pub fn ostree_async_progress_set_uint64(self_: *mut OstreeAsyncProgress, key: *const c_char, value: u64); #[cfg(any(feature = "v2017_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_6")))] - pub fn ostree_async_progress_set_variant( - self_: *mut OstreeAsyncProgress, - key: *const c_char, - value: *mut glib::GVariant, - ); + pub fn ostree_async_progress_set_variant(self_: *mut OstreeAsyncProgress, key: *const c_char, value: *mut glib::GVariant); //========================================================================= // OstreeBootconfigParser //========================================================================= pub fn ostree_bootconfig_parser_get_type() -> GType; pub fn ostree_bootconfig_parser_new() -> *mut OstreeBootconfigParser; - pub fn ostree_bootconfig_parser_clone( - self_: *mut OstreeBootconfigParser, - ) -> *mut OstreeBootconfigParser; - pub fn ostree_bootconfig_parser_get( - self_: *mut OstreeBootconfigParser, - key: *const c_char, - ) -> *const c_char; + pub fn ostree_bootconfig_parser_clone(self_: *mut OstreeBootconfigParser) -> *mut OstreeBootconfigParser; + pub fn ostree_bootconfig_parser_get(self_: *mut OstreeBootconfigParser, key: *const c_char) -> *const c_char; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_bootconfig_parser_get_overlay_initrds( - self_: *mut OstreeBootconfigParser, - ) -> *mut *mut c_char; - pub fn ostree_bootconfig_parser_parse( - self_: *mut OstreeBootconfigParser, - path: *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_bootconfig_parser_parse_at( - self_: *mut OstreeBootconfigParser, - dfd: c_int, - path: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_bootconfig_parser_set( - self_: *mut OstreeBootconfigParser, - key: *const c_char, - value: *const c_char, - ); + pub fn ostree_bootconfig_parser_get_overlay_initrds(self_: *mut OstreeBootconfigParser) -> *mut *mut c_char; + pub fn ostree_bootconfig_parser_parse(self_: *mut OstreeBootconfigParser, path: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_bootconfig_parser_parse_at(self_: *mut OstreeBootconfigParser, dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_bootconfig_parser_set(self_: *mut OstreeBootconfigParser, key: *const c_char, value: *const c_char); #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_bootconfig_parser_set_overlay_initrds( - self_: *mut OstreeBootconfigParser, - initrds: *mut *mut c_char, - ); - pub fn ostree_bootconfig_parser_write( - self_: *mut OstreeBootconfigParser, - output: *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_bootconfig_parser_write_at( - self_: *mut OstreeBootconfigParser, - dfd: c_int, - path: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_bootconfig_parser_set_overlay_initrds(self_: *mut OstreeBootconfigParser, initrds: *mut *mut c_char); + pub fn ostree_bootconfig_parser_write(self_: *mut OstreeBootconfigParser, output: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_bootconfig_parser_write_at(self_: *mut OstreeBootconfigParser, dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // OstreeChecksumInputStream @@ -1543,37 +1280,22 @@ extern "C" { // OstreeContentWriter //========================================================================= pub fn ostree_content_writer_get_type() -> GType; - pub fn ostree_content_writer_finish( - self_: *mut OstreeContentWriter, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut c_char; + pub fn ostree_content_writer_finish(self_: *mut OstreeContentWriter, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut c_char; //========================================================================= // OstreeDeployment //========================================================================= pub fn ostree_deployment_get_type() -> GType; - pub fn ostree_deployment_new( - index: c_int, - osname: *const c_char, - csum: *const c_char, - deployserial: c_int, - bootcsum: *const c_char, - bootserial: c_int, - ) -> *mut OstreeDeployment; + pub fn ostree_deployment_new(index: c_int, osname: *const c_char, csum: *const c_char, deployserial: c_int, bootcsum: *const c_char, bootserial: c_int) -> *mut OstreeDeployment; #[cfg(any(feature = "v2018_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))] pub fn ostree_deployment_origin_remove_transient_state(origin: *mut glib::GKeyFile); #[cfg(any(feature = "v2016_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))] - pub fn ostree_deployment_unlocked_state_to_string( - state: OstreeDeploymentUnlockedState, - ) -> *const c_char; + pub fn ostree_deployment_unlocked_state_to_string(state: OstreeDeploymentUnlockedState) -> *const c_char; pub fn ostree_deployment_clone(self_: *mut OstreeDeployment) -> *mut OstreeDeployment; pub fn ostree_deployment_equal(ap: gconstpointer, bp: gconstpointer) -> gboolean; - pub fn ostree_deployment_get_bootconfig( - self_: *mut OstreeDeployment, - ) -> *mut OstreeBootconfigParser; + pub fn ostree_deployment_get_bootconfig(self_: *mut OstreeDeployment) -> *mut OstreeBootconfigParser; pub fn ostree_deployment_get_bootcsum(self_: *mut OstreeDeployment) -> *const c_char; pub fn ostree_deployment_get_bootserial(self_: *mut OstreeDeployment) -> c_int; pub fn ostree_deployment_get_csum(self_: *mut OstreeDeployment) -> *const c_char; @@ -1584,9 +1306,7 @@ extern "C" { pub fn ostree_deployment_get_osname(self_: *mut OstreeDeployment) -> *const c_char; #[cfg(any(feature = "v2016_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))] - pub fn ostree_deployment_get_unlocked( - self_: *mut OstreeDeployment, - ) -> OstreeDeploymentUnlockedState; + pub fn ostree_deployment_get_unlocked(self_: *mut OstreeDeployment) -> OstreeDeploymentUnlockedState; pub fn ostree_deployment_hash(v: gconstpointer) -> c_uint; #[cfg(any(feature = "v2018_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))] @@ -1594,10 +1314,7 @@ extern "C" { #[cfg(any(feature = "v2018_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))] pub fn ostree_deployment_is_staged(self_: *mut OstreeDeployment) -> gboolean; - pub fn ostree_deployment_set_bootconfig( - self_: *mut OstreeDeployment, - bootconfig: *mut OstreeBootconfigParser, - ); + pub fn ostree_deployment_set_bootconfig(self_: *mut OstreeDeployment, bootconfig: *mut OstreeBootconfigParser); pub fn ostree_deployment_set_bootserial(self_: *mut OstreeDeployment, index: c_int); pub fn ostree_deployment_set_index(self_: *mut OstreeDeployment, index: c_int); pub fn ostree_deployment_set_origin(self_: *mut OstreeDeployment, origin: *mut glib::GKeyFile); @@ -1606,42 +1323,16 @@ extern "C" { // OstreeGpgVerifyResult //========================================================================= pub fn ostree_gpg_verify_result_get_type() -> GType; - pub fn ostree_gpg_verify_result_describe_variant( - variant: *mut glib::GVariant, - output_buffer: *mut glib::GString, - line_prefix: *const c_char, - flags: OstreeGpgSignatureFormatFlags, - ); + pub fn ostree_gpg_verify_result_describe_variant(variant: *mut glib::GVariant, output_buffer: *mut glib::GString, line_prefix: *const c_char, flags: OstreeGpgSignatureFormatFlags); pub fn ostree_gpg_verify_result_count_all(result: *mut OstreeGpgVerifyResult) -> c_uint; pub fn ostree_gpg_verify_result_count_valid(result: *mut OstreeGpgVerifyResult) -> c_uint; - pub fn ostree_gpg_verify_result_describe( - result: *mut OstreeGpgVerifyResult, - signature_index: c_uint, - output_buffer: *mut glib::GString, - line_prefix: *const c_char, - flags: OstreeGpgSignatureFormatFlags, - ); - pub fn ostree_gpg_verify_result_get( - result: *mut OstreeGpgVerifyResult, - signature_index: c_uint, - attrs: *mut OstreeGpgSignatureAttr, - n_attrs: c_uint, - ) -> *mut glib::GVariant; - pub fn ostree_gpg_verify_result_get_all( - result: *mut OstreeGpgVerifyResult, - signature_index: c_uint, - ) -> *mut glib::GVariant; - pub fn ostree_gpg_verify_result_lookup( - result: *mut OstreeGpgVerifyResult, - key_id: *const c_char, - out_signature_index: *mut c_uint, - ) -> gboolean; + pub fn ostree_gpg_verify_result_describe(result: *mut OstreeGpgVerifyResult, signature_index: c_uint, output_buffer: *mut glib::GString, line_prefix: *const c_char, flags: OstreeGpgSignatureFormatFlags); + pub fn ostree_gpg_verify_result_get(result: *mut OstreeGpgVerifyResult, signature_index: c_uint, attrs: *mut OstreeGpgSignatureAttr, n_attrs: c_uint) -> *mut glib::GVariant; + pub fn ostree_gpg_verify_result_get_all(result: *mut OstreeGpgVerifyResult, signature_index: c_uint) -> *mut glib::GVariant; + pub fn ostree_gpg_verify_result_lookup(result: *mut OstreeGpgVerifyResult, key_id: *const c_char, out_signature_index: *mut c_uint) -> gboolean; #[cfg(any(feature = "v2016_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))] - pub fn ostree_gpg_verify_result_require_valid_signature( - result: *mut OstreeGpgVerifyResult, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_gpg_verify_result_require_valid_signature(result: *mut OstreeGpgVerifyResult, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // OstreeMutableTree @@ -1650,82 +1341,27 @@ extern "C" { pub fn ostree_mutable_tree_new() -> *mut OstreeMutableTree; #[cfg(any(feature = "v2018_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))] - pub fn ostree_mutable_tree_new_from_checksum( - repo: *mut OstreeRepo, - contents_checksum: *const c_char, - metadata_checksum: *const c_char, - ) -> *mut OstreeMutableTree; + pub fn ostree_mutable_tree_new_from_checksum(repo: *mut OstreeRepo, contents_checksum: *const c_char, metadata_checksum: *const c_char) -> *mut OstreeMutableTree; #[cfg(any(feature = "v2018_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))] - pub fn ostree_mutable_tree_check_error( - self_: *mut OstreeMutableTree, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_mutable_tree_ensure_dir( - self_: *mut OstreeMutableTree, - name: *const c_char, - out_subdir: *mut *mut OstreeMutableTree, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_mutable_tree_ensure_parent_dirs( - self_: *mut OstreeMutableTree, - split_path: *mut glib::GPtrArray, - metadata_checksum: *const c_char, - out_parent: *mut *mut OstreeMutableTree, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_mutable_tree_check_error(self_: *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_mutable_tree_ensure_dir(self_: *mut OstreeMutableTree, name: *const c_char, out_subdir: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_mutable_tree_ensure_parent_dirs(self_: *mut OstreeMutableTree, split_path: *mut glib::GPtrArray, metadata_checksum: *const c_char, out_parent: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))] - pub fn ostree_mutable_tree_fill_empty_from_dirtree( - self_: *mut OstreeMutableTree, - repo: *mut OstreeRepo, - contents_checksum: *const c_char, - metadata_checksum: *const c_char, - ) -> gboolean; - pub fn ostree_mutable_tree_get_contents_checksum( - self_: *mut OstreeMutableTree, - ) -> *const c_char; + pub fn ostree_mutable_tree_fill_empty_from_dirtree(self_: *mut OstreeMutableTree, repo: *mut OstreeRepo, contents_checksum: *const c_char, metadata_checksum: *const c_char) -> gboolean; + pub fn ostree_mutable_tree_get_contents_checksum(self_: *mut OstreeMutableTree) -> *const c_char; pub fn ostree_mutable_tree_get_files(self_: *mut OstreeMutableTree) -> *mut glib::GHashTable; - pub fn ostree_mutable_tree_get_metadata_checksum( - self_: *mut OstreeMutableTree, - ) -> *const c_char; + pub fn ostree_mutable_tree_get_metadata_checksum(self_: *mut OstreeMutableTree) -> *const c_char; pub fn ostree_mutable_tree_get_subdirs(self_: *mut OstreeMutableTree) -> *mut glib::GHashTable; - pub fn ostree_mutable_tree_lookup( - self_: *mut OstreeMutableTree, - name: *const c_char, - out_file_checksum: *mut *mut c_char, - out_subdir: *mut *mut OstreeMutableTree, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_mutable_tree_lookup(self_: *mut OstreeMutableTree, name: *const c_char, out_file_checksum: *mut *mut c_char, out_subdir: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_9", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_9")))] - pub fn ostree_mutable_tree_remove( - self_: *mut OstreeMutableTree, - name: *const c_char, - allow_noent: gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_mutable_tree_replace_file( - self_: *mut OstreeMutableTree, - name: *const c_char, - checksum: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_mutable_tree_set_contents_checksum( - self_: *mut OstreeMutableTree, - checksum: *const c_char, - ); - pub fn ostree_mutable_tree_set_metadata_checksum( - self_: *mut OstreeMutableTree, - checksum: *const c_char, - ); - pub fn ostree_mutable_tree_walk( - self_: *mut OstreeMutableTree, - split_path: *mut glib::GPtrArray, - start: c_uint, - out_subdir: *mut *mut OstreeMutableTree, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_mutable_tree_remove(self_: *mut OstreeMutableTree, name: *const c_char, allow_noent: gboolean, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_mutable_tree_replace_file(self_: *mut OstreeMutableTree, name: *const c_char, checksum: *const c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_mutable_tree_set_contents_checksum(self_: *mut OstreeMutableTree, checksum: *const c_char); + pub fn ostree_mutable_tree_set_metadata_checksum(self_: *mut OstreeMutableTree, checksum: *const c_char); + pub fn ostree_mutable_tree_walk(self_: *mut OstreeMutableTree, split_path: *mut glib::GPtrArray, start: c_uint, out_subdir: *mut *mut OstreeMutableTree, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // OstreeRepo @@ -1733,160 +1369,48 @@ extern "C" { pub fn ostree_repo_get_type() -> GType; pub fn ostree_repo_new(path: *mut gio::GFile) -> *mut OstreeRepo; pub fn ostree_repo_new_default() -> *mut OstreeRepo; - pub fn ostree_repo_new_for_sysroot_path( - repo_path: *mut gio::GFile, - sysroot_path: *mut gio::GFile, - ) -> *mut OstreeRepo; + pub fn ostree_repo_new_for_sysroot_path(repo_path: *mut gio::GFile, sysroot_path: *mut gio::GFile) -> *mut OstreeRepo; #[cfg(any(feature = "v2017_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))] - pub fn ostree_repo_create_at( - dfd: c_int, - path: *const c_char, - mode: OstreeRepoMode, - options: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeRepo; - pub fn ostree_repo_mode_from_string( - mode: *const c_char, - out_mode: *mut OstreeRepoMode, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_create_at(dfd: c_int, path: *const c_char, mode: OstreeRepoMode, options: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeRepo; + pub fn ostree_repo_mode_from_string(mode: *const c_char, out_mode: *mut OstreeRepoMode, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))] - pub fn ostree_repo_open_at( - dfd: c_int, - path: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeRepo; - pub fn ostree_repo_pull_default_console_progress_changed( - progress: *mut OstreeAsyncProgress, - user_data: gpointer, - ); + pub fn ostree_repo_open_at(dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeRepo; + pub fn ostree_repo_pull_default_console_progress_changed(progress: *mut OstreeAsyncProgress, user_data: gpointer); #[cfg(any(feature = "v2018_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))] pub fn ostree_repo_traverse_new_parents() -> *mut glib::GHashTable; pub fn ostree_repo_traverse_new_reachable() -> *mut glib::GHashTable; #[cfg(any(feature = "v2018_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))] - pub fn ostree_repo_traverse_parents_get_commits( - parents: *mut glib::GHashTable, - object: *mut glib::GVariant, - ) -> *mut *mut c_char; - pub fn ostree_repo_abort_transaction( - self_: *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_add_gpg_signature_summary( - self_: *mut OstreeRepo, - key_id: *mut *const c_char, - homedir: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_append_gpg_signature( - self_: *mut OstreeRepo, - commit_checksum: *const c_char, - signature_bytes: *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_traverse_parents_get_commits(parents: *mut glib::GHashTable, object: *mut glib::GVariant) -> *mut *mut c_char; + pub fn ostree_repo_abort_transaction(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_add_gpg_signature_summary(self_: *mut OstreeRepo, key_id: *mut *const c_char, homedir: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_append_gpg_signature(self_: *mut OstreeRepo, commit_checksum: *const c_char, signature_bytes: *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_8", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_8")))] - pub fn ostree_repo_checkout_at( - self_: *mut OstreeRepo, - options: *mut OstreeRepoCheckoutAtOptions, - destination_dfd: c_int, - destination_path: *const c_char, - commit: *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, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_checkout_tree( - self_: *mut OstreeRepo, - mode: OstreeRepoCheckoutMode, - overwrite_mode: OstreeRepoCheckoutOverwriteMode, - destination: *mut gio::GFile, - source: *mut OstreeRepoFile, - source_info: *mut gio::GFileInfo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_checkout_tree_at( - self_: *mut OstreeRepo, - options: *mut OstreeRepoCheckoutOptions, - destination_dfd: c_int, - destination_path: *const c_char, - commit: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_commit_transaction( - self_: *mut OstreeRepo, - out_stats: *mut OstreeRepoTransactionStats, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_checkout_at(self_: *mut OstreeRepo, options: *mut OstreeRepoCheckoutAtOptions, destination_dfd: c_int, destination_path: *const c_char, commit: *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, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_checkout_tree(self_: *mut OstreeRepo, mode: OstreeRepoCheckoutMode, overwrite_mode: OstreeRepoCheckoutOverwriteMode, destination: *mut gio::GFile, source: *mut OstreeRepoFile, source_info: *mut gio::GFileInfo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_checkout_tree_at(self_: *mut OstreeRepo, options: *mut OstreeRepoCheckoutOptions, destination_dfd: c_int, destination_path: *const c_char, commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_commit_transaction(self_: *mut OstreeRepo, out_stats: *mut OstreeRepoTransactionStats, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_repo_copy_config(self_: *mut OstreeRepo) -> *mut glib::GKeyFile; - pub fn ostree_repo_create( - self_: *mut OstreeRepo, - mode: OstreeRepoMode, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_delete_object( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - sha256: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_create(self_: *mut OstreeRepo, mode: OstreeRepoMode, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_delete_object(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_12")))] pub fn ostree_repo_equal(a: *mut OstreeRepo, b: *mut OstreeRepo) -> gboolean; - pub fn ostree_repo_export_tree_to_archive( - self_: *mut OstreeRepo, - opts: *mut OstreeRepoExportArchiveOptions, - root: *mut OstreeRepoFile, - archive: *mut c_void, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_export_tree_to_archive(self_: *mut OstreeRepo, opts: *mut OstreeRepoExportArchiveOptions, root: *mut OstreeRepoFile, archive: *mut c_void, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_find_remotes_async( - self_: *mut OstreeRepo, - refs: *const *const OstreeCollectionRef, - options: *mut glib::GVariant, - finders: *mut *mut OstreeRepoFinder, - progress: *mut OstreeAsyncProgress, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); + pub fn ostree_repo_find_remotes_async(self_: *mut OstreeRepo, refs: *const *const OstreeCollectionRef, options: *mut glib::GVariant, finders: *mut *mut OstreeRepoFinder, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_find_remotes_finish( - self_: *mut OstreeRepo, - result: *mut gio::GAsyncResult, - error: *mut *mut glib::GError, - ) -> *mut *mut OstreeRepoFinderResult; + pub fn ostree_repo_find_remotes_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> *mut *mut OstreeRepoFinderResult; #[cfg(any(feature = "v2017_15", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))] - pub fn ostree_repo_fsck_object( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - sha256: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_fsck_object(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2019_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_2")))] pub fn ostree_repo_get_bootloader(self_: *mut OstreeRepo) -> *const c_char; @@ -1903,899 +1427,214 @@ extern "C" { pub fn ostree_repo_get_disable_fsync(self_: *mut OstreeRepo) -> gboolean; #[cfg(any(feature = "v2018_9", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_9")))] - pub fn ostree_repo_get_min_free_space_bytes( - self_: *mut OstreeRepo, - out_reserved_bytes: *mut u64, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_get_min_free_space_bytes(self_: *mut OstreeRepo, out_reserved_bytes: *mut u64, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_repo_get_mode(self_: *mut OstreeRepo) -> OstreeRepoMode; pub fn ostree_repo_get_parent(self_: *mut OstreeRepo) -> *mut OstreeRepo; pub fn ostree_repo_get_path(self_: *mut OstreeRepo) -> *mut gio::GFile; #[cfg(any(feature = "v2016_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))] - pub fn ostree_repo_get_remote_boolean_option( - self_: *mut OstreeRepo, - remote_name: *const c_char, - option_name: *const c_char, - default_value: gboolean, - out_value: *mut gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_get_remote_boolean_option(self_: *mut OstreeRepo, remote_name: *const c_char, option_name: *const c_char, default_value: gboolean, out_value: *mut gboolean, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))] - pub fn ostree_repo_get_remote_list_option( - self_: *mut OstreeRepo, - remote_name: *const c_char, - option_name: *const c_char, - out_value: *mut *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_get_remote_list_option(self_: *mut OstreeRepo, remote_name: *const c_char, option_name: *const c_char, out_value: *mut *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))] - pub fn ostree_repo_get_remote_option( - self_: *mut OstreeRepo, - remote_name: *const c_char, - option_name: *const c_char, - default_value: *const c_char, - out_value: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_get_remote_option(self_: *mut OstreeRepo, remote_name: *const c_char, option_name: *const c_char, default_value: *const c_char, out_value: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_8", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_8")))] - pub fn ostree_repo_gpg_sign_data( - self_: *mut OstreeRepo, - data: *mut glib::GBytes, - old_signatures: *mut glib::GBytes, - key_id: *mut *const c_char, - homedir: *const c_char, - out_signatures: *mut *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_gpg_sign_data(self_: *mut OstreeRepo, data: *mut glib::GBytes, old_signatures: *mut glib::GBytes, key_id: *mut *const c_char, homedir: *const c_char, out_signatures: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))] - pub fn ostree_repo_gpg_verify_data( - self_: *mut OstreeRepo, - remote_name: *const c_char, - data: *mut glib::GBytes, - signatures: *mut glib::GBytes, - keyringdir: *mut gio::GFile, - extra_keyring: *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeGpgVerifyResult; - pub fn ostree_repo_has_object( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - checksum: *const c_char, - out_have_object: *mut gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_gpg_verify_data(self_: *mut OstreeRepo, remote_name: *const c_char, data: *mut glib::GBytes, signatures: *mut glib::GBytes, keyringdir: *mut gio::GFile, extra_keyring: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult; + pub fn ostree_repo_has_object(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, out_have_object: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_12")))] pub fn ostree_repo_hash(self_: *mut OstreeRepo) -> c_uint; - pub fn ostree_repo_import_archive_to_mtree( - self_: *mut OstreeRepo, - opts: *mut OstreeRepoImportArchiveOptions, - archive: *mut c_void, - mtree: *mut OstreeMutableTree, - modifier: *mut OstreeRepoCommitModifier, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_import_object_from( - self_: *mut OstreeRepo, - source: *mut OstreeRepo, - objtype: OstreeObjectType, - checksum: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_import_archive_to_mtree(self_: *mut OstreeRepo, opts: *mut OstreeRepoImportArchiveOptions, archive: *mut c_void, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_import_object_from(self_: *mut OstreeRepo, source: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))] - pub fn ostree_repo_import_object_from_with_trust( - self_: *mut OstreeRepo, - source: *mut OstreeRepo, - objtype: OstreeObjectType, - checksum: *const c_char, - trusted: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_import_object_from_with_trust(self_: *mut OstreeRepo, source: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, trusted: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_repo_is_system(repo: *mut OstreeRepo) -> gboolean; - pub fn ostree_repo_is_writable( - self_: *mut OstreeRepo, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_is_writable(self_: *mut OstreeRepo, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_list_collection_refs( - self_: *mut OstreeRepo, - match_collection_id: *const c_char, - out_all_refs: *mut *mut glib::GHashTable, - flags: OstreeRepoListRefsExtFlags, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_list_commit_objects_starting_with( - self_: *mut OstreeRepo, - start: *const c_char, - out_commits: *mut *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_list_objects( - self_: *mut OstreeRepo, - flags: OstreeRepoListObjectsFlags, - out_objects: *mut *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_list_refs( - self_: *mut OstreeRepo, - refspec_prefix: *const c_char, - out_all_refs: *mut *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_list_collection_refs(self_: *mut OstreeRepo, match_collection_id: *const c_char, out_all_refs: *mut *mut glib::GHashTable, flags: OstreeRepoListRefsExtFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_list_commit_objects_starting_with(self_: *mut OstreeRepo, start: *const c_char, out_commits: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_list_objects(self_: *mut OstreeRepo, flags: OstreeRepoListObjectsFlags, out_objects: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_list_refs(self_: *mut OstreeRepo, refspec_prefix: *const c_char, out_all_refs: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))] - pub fn ostree_repo_list_refs_ext( - self_: *mut OstreeRepo, - refspec_prefix: *const c_char, - out_all_refs: *mut *mut glib::GHashTable, - flags: OstreeRepoListRefsExtFlags, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_list_refs_ext(self_: *mut OstreeRepo, refspec_prefix: *const c_char, out_all_refs: *mut *mut glib::GHashTable, flags: OstreeRepoListRefsExtFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_8", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_8")))] - pub fn ostree_repo_list_static_delta_indexes( - self_: *mut OstreeRepo, - out_indexes: *mut *mut glib::GPtrArray, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_list_static_delta_names( - self_: *mut OstreeRepo, - out_deltas: *mut *mut glib::GPtrArray, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_list_static_delta_indexes(self_: *mut OstreeRepo, out_indexes: *mut *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_list_static_delta_names(self_: *mut OstreeRepo, out_deltas: *mut *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2015_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2015_7")))] - pub fn ostree_repo_load_commit( - self_: *mut OstreeRepo, - checksum: *const c_char, - out_commit: *mut *mut glib::GVariant, - out_state: *mut OstreeRepoCommitState, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_load_file( - self_: *mut OstreeRepo, - checksum: *const c_char, - out_input: *mut *mut gio::GInputStream, - out_file_info: *mut *mut gio::GFileInfo, - out_xattrs: *mut *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_load_object_stream( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - checksum: *const c_char, - out_input: *mut *mut gio::GInputStream, - out_size: *mut u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_load_variant( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - sha256: *const c_char, - out_variant: *mut *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_load_variant_if_exists( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - sha256: *const c_char, - out_variant: *mut *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_load_commit(self_: *mut OstreeRepo, checksum: *const c_char, out_commit: *mut *mut glib::GVariant, out_state: *mut OstreeRepoCommitState, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_load_file(self_: *mut OstreeRepo, checksum: *const c_char, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_load_object_stream(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, out_input: *mut *mut gio::GInputStream, out_size: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_load_variant(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_variant: *mut *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_load_variant_if_exists(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_variant: *mut *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + #[cfg(any(feature = "v2021_3", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_3")))] + pub fn ostree_repo_lock_pop(self_: *mut OstreeRepo, lock_type: OstreeRepoLockType, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + #[cfg(any(feature = "v2021_3", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_3")))] + pub fn ostree_repo_lock_push(self_: *mut OstreeRepo, lock_type: OstreeRepoLockType, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_15", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))] - pub fn ostree_repo_mark_commit_partial( - self_: *mut OstreeRepo, - checksum: *const c_char, - is_partial: gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_mark_commit_partial(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2019_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2019_4")))] - pub fn ostree_repo_mark_commit_partial_reason( - self_: *mut OstreeRepo, - checksum: *const c_char, - is_partial: gboolean, - in_state: OstreeRepoCommitState, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_open( - self_: *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_prepare_transaction( - self_: *mut OstreeRepo, - out_transaction_resume: *mut gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_prune( - self_: *mut OstreeRepo, - flags: OstreeRepoPruneFlags, - depth: c_int, - out_objects_total: *mut c_int, - out_objects_pruned: *mut c_int, - out_pruned_object_size_total: *mut u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_mark_commit_partial_reason(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, in_state: OstreeRepoCommitState, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_open(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_prepare_transaction(self_: *mut OstreeRepo, out_transaction_resume: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_prune(self_: *mut OstreeRepo, flags: OstreeRepoPruneFlags, depth: c_int, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_1")))] - pub fn ostree_repo_prune_from_reachable( - self_: *mut OstreeRepo, - options: *mut OstreeRepoPruneOptions, - out_objects_total: *mut c_int, - out_objects_pruned: *mut c_int, - out_pruned_object_size_total: *mut u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_prune_static_deltas( - self_: *mut OstreeRepo, - commit: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_pull( - self_: *mut OstreeRepo, - remote_name: *const c_char, - refs_to_fetch: *mut *mut c_char, - flags: OstreeRepoPullFlags, - progress: *mut OstreeAsyncProgress, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_prune_from_reachable(self_: *mut OstreeRepo, options: *mut OstreeRepoPruneOptions, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_prune_static_deltas(self_: *mut OstreeRepo, commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_pull(self_: *mut OstreeRepo, remote_name: *const c_char, refs_to_fetch: *mut *mut c_char, flags: OstreeRepoPullFlags, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_pull_from_remotes_async( - self_: *mut OstreeRepo, - results: *const *const OstreeRepoFinderResult, - options: *mut glib::GVariant, - progress: *mut OstreeAsyncProgress, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); + pub fn ostree_repo_pull_from_remotes_async(self_: *mut OstreeRepo, results: *const *const OstreeRepoFinderResult, options: *mut glib::GVariant, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_pull_from_remotes_finish( - self_: *mut OstreeRepo, - result: *mut gio::GAsyncResult, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_pull_one_dir( - self_: *mut OstreeRepo, - remote_name: *const c_char, - dir_to_pull: *const c_char, - refs_to_fetch: *mut *mut c_char, - flags: OstreeRepoPullFlags, - progress: *mut OstreeAsyncProgress, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_pull_with_options( - self_: *mut OstreeRepo, - remote_name_or_baseurl: *const c_char, - options: *mut glib::GVariant, - progress: *mut OstreeAsyncProgress, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_query_object_storage_size( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - sha256: *const c_char, - out_size: *mut u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_read_commit( - self_: *mut OstreeRepo, - ref_: *const c_char, - out_root: *mut *mut gio::GFile, - out_commit: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_read_commit_detached_metadata( - self_: *mut OstreeRepo, - checksum: *const c_char, - out_metadata: *mut *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_regenerate_summary( - self_: *mut OstreeRepo, - additional_metadata: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_pull_from_remotes_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_pull_one_dir(self_: *mut OstreeRepo, remote_name: *const c_char, dir_to_pull: *const c_char, refs_to_fetch: *mut *mut c_char, flags: OstreeRepoPullFlags, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_pull_with_options(self_: *mut OstreeRepo, remote_name_or_baseurl: *const c_char, options: *mut glib::GVariant, progress: *mut OstreeAsyncProgress, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_query_object_storage_size(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_size: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_read_commit(self_: *mut OstreeRepo, ref_: *const c_char, out_root: *mut *mut gio::GFile, out_commit: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_read_commit_detached_metadata(self_: *mut OstreeRepo, checksum: *const c_char, out_metadata: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_regenerate_summary(self_: *mut OstreeRepo, additional_metadata: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_2")))] - pub fn ostree_repo_reload_config( - self_: *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_add( - self_: *mut OstreeRepo, - name: *const c_char, - url: *const c_char, - options: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_change( - self_: *mut OstreeRepo, - sysroot: *mut gio::GFile, - changeop: OstreeRepoRemoteChange, - name: *const c_char, - url: *const c_char, - options: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_delete( - self_: *mut OstreeRepo, - name: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_fetch_summary( - self_: *mut OstreeRepo, - name: *const c_char, - out_summary: *mut *mut glib::GBytes, - out_signatures: *mut *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_reload_config(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_add(self_: *mut OstreeRepo, name: *const c_char, url: *const c_char, options: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_change(self_: *mut OstreeRepo, sysroot: *mut gio::GFile, changeop: OstreeRepoRemoteChange, name: *const c_char, url: *const c_char, options: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_delete(self_: *mut OstreeRepo, name: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_fetch_summary(self_: *mut OstreeRepo, name: *const c_char, out_summary: *mut *mut glib::GBytes, out_signatures: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))] - pub fn ostree_repo_remote_fetch_summary_with_options( - self_: *mut OstreeRepo, - name: *const c_char, - options: *mut glib::GVariant, - out_summary: *mut *mut glib::GBytes, - out_signatures: *mut *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_get_gpg_verify( - self_: *mut OstreeRepo, - name: *const c_char, - out_gpg_verify: *mut gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_get_gpg_verify_summary( - self_: *mut OstreeRepo, - name: *const c_char, - out_gpg_verify_summary: *mut gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_get_url( - self_: *mut OstreeRepo, - name: *const c_char, - out_url: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_gpg_import( - self_: *mut OstreeRepo, - name: *const c_char, - source_stream: *mut gio::GInputStream, - key_ids: *const *const c_char, - out_imported: *mut c_uint, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_list( - self_: *mut OstreeRepo, - out_n_remotes: *mut c_uint, - ) -> *mut *mut c_char; + pub fn ostree_repo_remote_fetch_summary_with_options(self_: *mut OstreeRepo, name: *const c_char, options: *mut glib::GVariant, out_summary: *mut *mut glib::GBytes, out_signatures: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + #[cfg(any(feature = "v2021_4", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] + pub fn ostree_repo_remote_get_gpg_keys(self_: *mut OstreeRepo, name: *const c_char, key_ids: *const *const c_char, out_keys: *mut *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_get_gpg_verify(self_: *mut OstreeRepo, name: *const c_char, out_gpg_verify: *mut gboolean, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_get_gpg_verify_summary(self_: *mut OstreeRepo, name: *const c_char, out_gpg_verify_summary: *mut gboolean, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_get_url(self_: *mut OstreeRepo, name: *const c_char, out_url: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_gpg_import(self_: *mut OstreeRepo, name: *const c_char, source_stream: *mut gio::GInputStream, key_ids: *const *const c_char, out_imported: *mut c_uint, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_list(self_: *mut OstreeRepo, out_n_remotes: *mut c_uint) -> *mut *mut c_char; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_remote_list_collection_refs( - self_: *mut OstreeRepo, - remote_name: *const c_char, - out_all_refs: *mut *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_remote_list_refs( - self_: *mut OstreeRepo, - remote_name: *const c_char, - out_all_refs: *mut *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_remote_list_collection_refs(self_: *mut OstreeRepo, remote_name: *const c_char, out_all_refs: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_remote_list_refs(self_: *mut OstreeRepo, remote_name: *const c_char, out_all_refs: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_resolve_collection_ref( - self_: *mut OstreeRepo, - ref_: *const OstreeCollectionRef, - allow_noent: gboolean, - flags: OstreeRepoResolveRevExtFlags, - out_rev: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_resolve_collection_ref(self_: *mut OstreeRepo, ref_: *const OstreeCollectionRef, allow_noent: gboolean, flags: OstreeRepoResolveRevExtFlags, out_rev: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_resolve_keyring_for_collection( - self_: *mut OstreeRepo, - collection_id: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeRemote; - pub fn ostree_repo_resolve_rev( - self_: *mut OstreeRepo, - refspec: *const c_char, - allow_noent: gboolean, - out_rev: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_resolve_keyring_for_collection(self_: *mut OstreeRepo, collection_id: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeRemote; + pub fn ostree_repo_resolve_rev(self_: *mut OstreeRepo, refspec: *const c_char, allow_noent: gboolean, out_rev: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_7")))] - pub fn ostree_repo_resolve_rev_ext( - self_: *mut OstreeRepo, - refspec: *const c_char, - allow_noent: gboolean, - flags: OstreeRepoResolveRevExtFlags, - out_rev: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_scan_hardlinks( - self_: *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_resolve_rev_ext(self_: *mut OstreeRepo, refspec: *const c_char, allow_noent: gboolean, flags: OstreeRepoResolveRevExtFlags, out_rev: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_scan_hardlinks(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))] - pub fn ostree_repo_set_alias_ref_immediate( - self_: *mut OstreeRepo, - remote: *const c_char, - ref_: *const c_char, - target: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_set_alias_ref_immediate(self_: *mut OstreeRepo, remote: *const c_char, ref_: *const c_char, target: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))] - pub fn ostree_repo_set_cache_dir( - self_: *mut OstreeRepo, - dfd: c_int, - path: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_set_cache_dir(self_: *mut OstreeRepo, dfd: c_int, path: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_set_collection_id( - self_: *mut OstreeRepo, - collection_id: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_set_collection_id(self_: *mut OstreeRepo, collection_id: *const c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_set_collection_ref_immediate( - self_: *mut OstreeRepo, - ref_: *const OstreeCollectionRef, - checksum: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_set_collection_ref_immediate(self_: *mut OstreeRepo, ref_: *const OstreeCollectionRef, checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_repo_set_disable_fsync(self_: *mut OstreeRepo, disable_fsync: gboolean); - pub fn ostree_repo_set_ref_immediate( - self_: *mut OstreeRepo, - remote: *const c_char, - ref_: *const c_char, - checksum: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_sign_commit( - self_: *mut OstreeRepo, - commit_checksum: *const c_char, - key_id: *const c_char, - homedir: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_sign_delta( - self_: *mut OstreeRepo, - from_commit: *const c_char, - to_commit: *const c_char, - key_id: *const c_char, - homedir: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_static_delta_execute_offline( - self_: *mut OstreeRepo, - dir_or_file: *mut gio::GFile, - skip_validation: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_set_ref_immediate(self_: *mut OstreeRepo, remote: *const c_char, ref_: *const c_char, checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_sign_commit(self_: *mut OstreeRepo, commit_checksum: *const c_char, key_id: *const c_char, homedir: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_sign_delta(self_: *mut OstreeRepo, from_commit: *const c_char, to_commit: *const c_char, key_id: *const c_char, homedir: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + #[cfg(any(feature = "v2021_4", feature = "dox"))] + #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_4")))] + pub fn ostree_repo_signature_verify_commit_data(self_: *mut OstreeRepo, remote_name: *const c_char, commit_data: *mut glib::GBytes, commit_metadata: *mut glib::GBytes, flags: OstreeRepoVerifyFlags, out_results: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_static_delta_execute_offline(self_: *mut OstreeRepo, dir_or_file: *mut gio::GFile, skip_validation: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_repo_static_delta_execute_offline_with_signature( - self_: *mut OstreeRepo, - dir_or_file: *mut gio::GFile, - sign: *mut OstreeSign, - skip_validation: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_static_delta_generate( - self_: *mut OstreeRepo, - opt: OstreeStaticDeltaGenerateOpt, - from: *const c_char, - to: *const c_char, - metadata: *mut glib::GVariant, - params: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_static_delta_execute_offline_with_signature(self_: *mut OstreeRepo, dir_or_file: *mut gio::GFile, sign: *mut OstreeSign, skip_validation: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_static_delta_generate(self_: *mut OstreeRepo, opt: OstreeStaticDeltaGenerateOpt, from: *const c_char, to: *const c_char, metadata: *mut glib::GVariant, params: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_8", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_8")))] - pub fn ostree_repo_static_delta_reindex( - repo: *mut OstreeRepo, - flags: OstreeStaticDeltaIndexFlags, - opt_to_commit: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_static_delta_reindex(repo: *mut OstreeRepo, flags: OstreeStaticDeltaIndexFlags, opt_to_commit: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_repo_static_delta_verify_signature( - self_: *mut OstreeRepo, - delta_id: *const c_char, - sign: *mut OstreeSign, - out_success_message: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_static_delta_verify_signature(self_: *mut OstreeRepo, delta_id: *const c_char, sign: *mut OstreeSign, out_success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_transaction_set_collection_ref( - self_: *mut OstreeRepo, - ref_: *const OstreeCollectionRef, - checksum: *const c_char, - ); - pub fn ostree_repo_transaction_set_ref( - self_: *mut OstreeRepo, - remote: *const c_char, - ref_: *const c_char, - checksum: *const c_char, - ); - pub fn ostree_repo_transaction_set_refspec( - self_: *mut OstreeRepo, - refspec: *const c_char, - checksum: *const c_char, - ); - pub fn ostree_repo_traverse_commit( - repo: *mut OstreeRepo, - commit_checksum: *const c_char, - maxdepth: c_int, - out_reachable: *mut *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_traverse_commit_union( - repo: *mut OstreeRepo, - commit_checksum: *const c_char, - maxdepth: c_int, - inout_reachable: *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_transaction_set_collection_ref(self_: *mut OstreeRepo, ref_: *const OstreeCollectionRef, checksum: *const c_char); + pub fn ostree_repo_transaction_set_ref(self_: *mut OstreeRepo, remote: *const c_char, ref_: *const c_char, checksum: *const c_char); + pub fn ostree_repo_transaction_set_refspec(self_: *mut OstreeRepo, refspec: *const c_char, checksum: *const c_char); + pub fn ostree_repo_traverse_commit(repo: *mut OstreeRepo, commit_checksum: *const c_char, maxdepth: c_int, out_reachable: *mut *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_traverse_commit_union(repo: *mut OstreeRepo, commit_checksum: *const c_char, maxdepth: c_int, inout_reachable: *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))] - pub fn ostree_repo_traverse_commit_union_with_parents( - repo: *mut OstreeRepo, - commit_checksum: *const c_char, - maxdepth: c_int, - inout_reachable: *mut glib::GHashTable, - inout_parents: *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_traverse_commit_union_with_parents(repo: *mut OstreeRepo, commit_checksum: *const c_char, maxdepth: c_int, inout_reachable: *mut glib::GHashTable, inout_parents: *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_traverse_reachable_refs( - self_: *mut OstreeRepo, - depth: c_uint, - reachable: *mut glib::GHashTable, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_verify_commit( - self_: *mut OstreeRepo, - commit_checksum: *const c_char, - keyringdir: *mut gio::GFile, - extra_keyring: *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_verify_commit_ext( - self_: *mut OstreeRepo, - commit_checksum: *const c_char, - keyringdir: *mut gio::GFile, - extra_keyring: *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeGpgVerifyResult; + pub fn ostree_repo_traverse_reachable_refs(self_: *mut OstreeRepo, depth: c_uint, reachable: *mut glib::GHashTable, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_verify_commit(self_: *mut OstreeRepo, commit_checksum: *const c_char, keyringdir: *mut gio::GFile, extra_keyring: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_verify_commit_ext(self_: *mut OstreeRepo, commit_checksum: *const c_char, keyringdir: *mut gio::GFile, extra_keyring: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult; #[cfg(any(feature = "v2016_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_14")))] - pub fn ostree_repo_verify_commit_for_remote( - self_: *mut OstreeRepo, - commit_checksum: *const c_char, - remote_name: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeGpgVerifyResult; - pub fn ostree_repo_verify_summary( - self_: *mut OstreeRepo, - remote_name: *const c_char, - summary: *mut glib::GBytes, - signatures: *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeGpgVerifyResult; - pub fn ostree_repo_write_archive_to_mtree( - self_: *mut OstreeRepo, - archive: *mut gio::GFile, - mtree: *mut OstreeMutableTree, - modifier: *mut OstreeRepoCommitModifier, - autocreate_parents: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_archive_to_mtree_from_fd( - self_: *mut OstreeRepo, - fd: c_int, - mtree: *mut OstreeMutableTree, - modifier: *mut OstreeRepoCommitModifier, - autocreate_parents: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_commit( - self_: *mut OstreeRepo, - parent: *const c_char, - subject: *const c_char, - body: *const c_char, - metadata: *mut glib::GVariant, - root: *mut OstreeRepoFile, - out_commit: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_commit_detached_metadata( - self_: *mut OstreeRepo, - checksum: *const c_char, - metadata: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_commit_with_time( - self_: *mut OstreeRepo, - parent: *const c_char, - subject: *const c_char, - body: *const c_char, - metadata: *mut glib::GVariant, - root: *mut OstreeRepoFile, - time: u64, - out_commit: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_config( - self_: *mut OstreeRepo, - new_config: *mut glib::GKeyFile, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_content( - self_: *mut OstreeRepo, - expected_checksum: *const c_char, - object_input: *mut gio::GInputStream, - length: u64, - out_csum: *mut *mut [*mut u8; 32], - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_content_async( - self_: *mut OstreeRepo, - expected_checksum: *const c_char, - object: *mut gio::GInputStream, - length: u64, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); - pub fn ostree_repo_write_content_finish( - self_: *mut OstreeRepo, - result: *mut gio::GAsyncResult, - out_csum: *mut *mut u8, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_content_trusted( - self_: *mut OstreeRepo, - checksum: *const c_char, - object_input: *mut gio::GInputStream, - length: u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_dfd_to_mtree( - self_: *mut OstreeRepo, - dfd: c_int, - path: *const c_char, - mtree: *mut OstreeMutableTree, - modifier: *mut OstreeRepoCommitModifier, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_directory_to_mtree( - self_: *mut OstreeRepo, - dir: *mut gio::GFile, - mtree: *mut OstreeMutableTree, - modifier: *mut OstreeRepoCommitModifier, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_metadata( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - expected_checksum: *const c_char, - object: *mut glib::GVariant, - out_csum: *mut *mut [*mut u8; 32], - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_metadata_async( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - expected_checksum: *const c_char, - object: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); - pub fn ostree_repo_write_metadata_finish( - self_: *mut OstreeRepo, - result: *mut gio::GAsyncResult, - out_csum: *mut *mut [c_uchar; 32], - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_metadata_stream_trusted( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - checksum: *const c_char, - object_input: *mut gio::GInputStream, - length: u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_metadata_trusted( - self_: *mut OstreeRepo, - objtype: OstreeObjectType, - checksum: *const c_char, - variant: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_write_mtree( - self_: *mut OstreeRepo, - mtree: *mut OstreeMutableTree, - out_file: *mut *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_verify_commit_for_remote(self_: *mut OstreeRepo, commit_checksum: *const c_char, remote_name: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult; + pub fn ostree_repo_verify_summary(self_: *mut OstreeRepo, remote_name: *const c_char, summary: *mut glib::GBytes, signatures: *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeGpgVerifyResult; + pub fn ostree_repo_write_archive_to_mtree(self_: *mut OstreeRepo, archive: *mut gio::GFile, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, autocreate_parents: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_archive_to_mtree_from_fd(self_: *mut OstreeRepo, fd: c_int, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, autocreate_parents: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_commit(self_: *mut OstreeRepo, parent: *const c_char, subject: *const c_char, body: *const c_char, metadata: *mut glib::GVariant, root: *mut OstreeRepoFile, out_commit: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_commit_detached_metadata(self_: *mut OstreeRepo, checksum: *const c_char, metadata: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_commit_with_time(self_: *mut OstreeRepo, parent: *const c_char, subject: *const c_char, body: *const c_char, metadata: *mut glib::GVariant, root: *mut OstreeRepoFile, time: u64, out_commit: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_config(self_: *mut OstreeRepo, new_config: *mut glib::GKeyFile, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_content(self_: *mut OstreeRepo, expected_checksum: *const c_char, object_input: *mut gio::GInputStream, length: u64, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_content_async(self_: *mut OstreeRepo, expected_checksum: *const c_char, object: *mut gio::GInputStream, length: u64, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); + pub fn ostree_repo_write_content_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, out_csum: *mut *mut u8, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_content_trusted(self_: *mut OstreeRepo, checksum: *const c_char, object_input: *mut gio::GInputStream, length: u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_dfd_to_mtree(self_: *mut OstreeRepo, dfd: c_int, path: *const c_char, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_directory_to_mtree(self_: *mut OstreeRepo, dir: *mut gio::GFile, mtree: *mut OstreeMutableTree, modifier: *mut OstreeRepoCommitModifier, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_metadata(self_: *mut OstreeRepo, objtype: OstreeObjectType, expected_checksum: *const c_char, object: *mut glib::GVariant, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_metadata_async(self_: *mut OstreeRepo, objtype: OstreeObjectType, expected_checksum: *const c_char, object: *mut glib::GVariant, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); + pub fn ostree_repo_write_metadata_finish(self_: *mut OstreeRepo, result: *mut gio::GAsyncResult, out_csum: *mut *mut [c_uchar; 32], error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_metadata_stream_trusted(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, object_input: *mut gio::GInputStream, length: u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_metadata_trusted(self_: *mut OstreeRepo, objtype: OstreeObjectType, checksum: *const c_char, variant: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_write_mtree(self_: *mut OstreeRepo, mtree: *mut OstreeMutableTree, out_file: *mut *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2021_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_2")))] - pub fn ostree_repo_write_regfile( - self_: *mut OstreeRepo, - expected_checksum: *const c_char, - uid: u32, - gid: u32, - mode: u32, - content_len: u64, - xattrs: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> *mut OstreeContentWriter; + pub fn ostree_repo_write_regfile(self_: *mut OstreeRepo, expected_checksum: *const c_char, uid: u32, gid: u32, mode: u32, content_len: u64, xattrs: *mut glib::GVariant, error: *mut *mut glib::GError) -> *mut OstreeContentWriter; #[cfg(any(feature = "v2021_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_2")))] - pub fn ostree_repo_write_regfile_inline( - self_: *mut OstreeRepo, - expected_checksum: *const c_char, - uid: u32, - gid: u32, - mode: u32, - xattrs: *mut glib::GVariant, - buf: *const u8, - len: size_t, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut c_char; + pub fn ostree_repo_write_regfile_inline(self_: *mut OstreeRepo, expected_checksum: *const c_char, uid: u32, gid: u32, mode: u32, xattrs: *mut glib::GVariant, buf: *const u8, len: size_t, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut c_char; #[cfg(any(feature = "v2021_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_2")))] - pub fn ostree_repo_write_symlink( - self_: *mut OstreeRepo, - expected_checksum: *const c_char, - uid: u32, - gid: u32, - xattrs: *mut glib::GVariant, - symlink_target: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut c_char; + pub fn ostree_repo_write_symlink(self_: *mut OstreeRepo, expected_checksum: *const c_char, uid: u32, gid: u32, xattrs: *mut glib::GVariant, symlink_target: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut c_char; //========================================================================= // OstreeRepoFile //========================================================================= pub fn ostree_repo_file_get_type() -> GType; - pub fn ostree_repo_file_ensure_resolved( - self_: *mut OstreeRepoFile, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_repo_file_ensure_resolved(self_: *mut OstreeRepoFile, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_repo_file_get_checksum(self_: *mut OstreeRepoFile) -> *const c_char; pub fn ostree_repo_file_get_repo(self_: *mut OstreeRepoFile) -> *mut OstreeRepo; pub fn ostree_repo_file_get_root(self_: *mut OstreeRepoFile) -> *mut OstreeRepoFile; - pub fn ostree_repo_file_get_xattrs( - self_: *mut OstreeRepoFile, - out_xattrs: *mut *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_file_tree_find_child( - self_: *mut OstreeRepoFile, - name: *const c_char, - is_dir: *mut gboolean, - out_container: *mut *mut glib::GVariant, - ) -> c_int; + pub fn ostree_repo_file_get_xattrs(self_: *mut OstreeRepoFile, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_file_tree_find_child(self_: *mut OstreeRepoFile, name: *const c_char, is_dir: *mut gboolean, out_container: *mut *mut glib::GVariant) -> c_int; pub fn ostree_repo_file_tree_get_contents(self_: *mut OstreeRepoFile) -> *mut glib::GVariant; - pub fn ostree_repo_file_tree_get_contents_checksum(self_: *mut OstreeRepoFile) - -> *const c_char; + pub fn ostree_repo_file_tree_get_contents_checksum(self_: *mut OstreeRepoFile) -> *const c_char; pub fn ostree_repo_file_tree_get_metadata(self_: *mut OstreeRepoFile) -> *mut glib::GVariant; - pub fn ostree_repo_file_tree_get_metadata_checksum(self_: *mut OstreeRepoFile) - -> *const c_char; - pub fn ostree_repo_file_tree_query_child( - self_: *mut OstreeRepoFile, - n: c_int, - attributes: *const c_char, - flags: gio::GFileQueryInfoFlags, - out_info: *mut *mut gio::GFileInfo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_repo_file_tree_set_metadata( - self_: *mut OstreeRepoFile, - checksum: *const c_char, - metadata: *mut glib::GVariant, - ); + pub fn ostree_repo_file_tree_get_metadata_checksum(self_: *mut OstreeRepoFile) -> *const c_char; + pub fn ostree_repo_file_tree_query_child(self_: *mut OstreeRepoFile, n: c_int, attributes: *const c_char, flags: gio::GFileQueryInfoFlags, out_info: *mut *mut gio::GFileInfo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_repo_file_tree_set_metadata(self_: *mut OstreeRepoFile, checksum: *const c_char, metadata: *mut glib::GVariant); //========================================================================= // OstreeRepoFinderAvahi @@ -2803,15 +1642,10 @@ extern "C" { pub fn ostree_repo_finder_avahi_get_type() -> GType; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_avahi_new( - context: *mut glib::GMainContext, - ) -> *mut OstreeRepoFinderAvahi; + pub fn ostree_repo_finder_avahi_new(context: *mut glib::GMainContext) -> *mut OstreeRepoFinderAvahi; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_avahi_start( - self_: *mut OstreeRepoFinderAvahi, - error: *mut *mut glib::GError, - ); + pub fn ostree_repo_finder_avahi_start(self_: *mut OstreeRepoFinderAvahi, error: *mut *mut glib::GError); #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] pub fn ostree_repo_finder_avahi_stop(self_: *mut OstreeRepoFinderAvahi); @@ -2830,9 +1664,7 @@ extern "C" { pub fn ostree_repo_finder_mount_get_type() -> GType; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_mount_new( - monitor: *mut gio::GVolumeMonitor, - ) -> *mut OstreeRepoFinderMount; + pub fn ostree_repo_finder_mount_new(monitor: *mut gio::GVolumeMonitor) -> *mut OstreeRepoFinderMount; //========================================================================= // OstreeRepoFinderOverride @@ -2843,57 +1675,25 @@ extern "C" { pub fn ostree_repo_finder_override_new() -> *mut OstreeRepoFinderOverride; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_override_add_uri( - self_: *mut OstreeRepoFinderOverride, - uri: *const c_char, - ); + pub fn ostree_repo_finder_override_add_uri(self_: *mut OstreeRepoFinderOverride, uri: *const c_char); //========================================================================= // OstreeSePolicy //========================================================================= pub fn ostree_sepolicy_get_type() -> GType; - pub fn ostree_sepolicy_new( - path: *mut gio::GFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeSePolicy; + pub fn ostree_sepolicy_new(path: *mut gio::GFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy; #[cfg(any(feature = "v2017_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))] - pub fn ostree_sepolicy_new_at( - rootfs_dfd: c_int, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeSePolicy; + pub fn ostree_sepolicy_new_at(rootfs_dfd: c_int, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSePolicy; pub fn ostree_sepolicy_fscreatecon_cleanup(unused: *mut *mut c_void); #[cfg(any(feature = "v2016_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))] pub fn ostree_sepolicy_get_csum(self_: *mut OstreeSePolicy) -> *const c_char; - pub fn ostree_sepolicy_get_label( - self_: *mut OstreeSePolicy, - relpath: *const c_char, - unix_mode: u32, - out_label: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sepolicy_get_label(self_: *mut OstreeSePolicy, relpath: *const c_char, unix_mode: u32, out_label: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_sepolicy_get_name(self_: *mut OstreeSePolicy) -> *const c_char; pub fn ostree_sepolicy_get_path(self_: *mut OstreeSePolicy) -> *mut gio::GFile; - pub fn ostree_sepolicy_restorecon( - self_: *mut OstreeSePolicy, - path: *const c_char, - info: *mut gio::GFileInfo, - target: *mut gio::GFile, - flags: OstreeSePolicyRestoreconFlags, - out_new_label: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sepolicy_setfscreatecon( - self_: *mut OstreeSePolicy, - path: *const c_char, - mode: u32, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sepolicy_restorecon(self_: *mut OstreeSePolicy, path: *const c_char, info: *mut gio::GFileInfo, target: *mut gio::GFile, flags: OstreeSePolicyRestoreconFlags, out_new_label: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sepolicy_setfscreatecon(self_: *mut OstreeSePolicy, path: *const c_char, mode: u32, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // OstreeSysroot @@ -2901,331 +1701,103 @@ extern "C" { pub fn ostree_sysroot_get_type() -> GType; pub fn ostree_sysroot_new(path: *mut gio::GFile) -> *mut OstreeSysroot; pub fn ostree_sysroot_new_default() -> *mut OstreeSysroot; - pub fn ostree_sysroot_get_deployment_origin_path( - deployment_path: *mut gio::GFile, - ) -> *mut gio::GFile; - pub fn ostree_sysroot_cleanup( - self_: *mut OstreeSysroot, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_get_deployment_origin_path(deployment_path: *mut gio::GFile) -> *mut gio::GFile; + pub fn ostree_sysroot_cleanup(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_sysroot_cleanup_prune_repo( - sysroot: *mut OstreeSysroot, - options: *mut OstreeRepoPruneOptions, - out_objects_total: *mut c_int, - out_objects_pruned: *mut c_int, - out_pruned_object_size_total: *mut u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_cleanup_prune_repo(sysroot: *mut OstreeSysroot, options: *mut OstreeRepoPruneOptions, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))] - pub fn ostree_sysroot_deploy_tree( - self_: *mut OstreeSysroot, - osname: *const c_char, - revision: *const c_char, - origin: *mut glib::GKeyFile, - provided_merge_deployment: *mut OstreeDeployment, - override_kernel_argv: *mut *mut c_char, - out_new_deployment: *mut *mut OstreeDeployment, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_deploy_tree(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, provided_merge_deployment: *mut OstreeDeployment, override_kernel_argv: *mut *mut c_char, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_sysroot_deploy_tree_with_options( - self_: *mut OstreeSysroot, - osname: *const c_char, - revision: *const c_char, - origin: *mut glib::GKeyFile, - provided_merge_deployment: *mut OstreeDeployment, - opts: *mut OstreeSysrootDeployTreeOpts, - out_new_deployment: *mut *mut OstreeDeployment, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_deployment_set_kargs( - self_: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - new_kargs: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_deployment_set_mutable( - self_: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - is_mutable: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_deploy_tree_with_options(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, provided_merge_deployment: *mut OstreeDeployment, opts: *mut OstreeSysrootDeployTreeOpts, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_deployment_set_kargs(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, new_kargs: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_deployment_set_mutable(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, is_mutable: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_3")))] - pub fn ostree_sysroot_deployment_set_pinned( - self_: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - is_pinned: gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_deployment_set_pinned(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, is_pinned: gboolean, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))] - pub fn ostree_sysroot_deployment_unlock( - self_: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - unlocked_state: OstreeDeploymentUnlockedState, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_ensure_initialized( - self_: *mut OstreeSysroot, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_get_booted_deployment(self_: *mut OstreeSysroot) - -> *mut OstreeDeployment; + pub fn ostree_sysroot_deployment_unlock(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment, unlocked_state: OstreeDeploymentUnlockedState, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_ensure_initialized(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_get_booted_deployment(self_: *mut OstreeSysroot) -> *mut OstreeDeployment; pub fn ostree_sysroot_get_bootversion(self_: *mut OstreeSysroot) -> c_int; - pub fn ostree_sysroot_get_deployment_directory( - self_: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - ) -> *mut gio::GFile; - pub fn ostree_sysroot_get_deployment_dirpath( - self_: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - ) -> *mut c_char; + pub fn ostree_sysroot_get_deployment_directory(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment) -> *mut gio::GFile; + pub fn ostree_sysroot_get_deployment_dirpath(self_: *mut OstreeSysroot, deployment: *mut OstreeDeployment) -> *mut c_char; pub fn ostree_sysroot_get_deployments(self_: *mut OstreeSysroot) -> *mut glib::GPtrArray; pub fn ostree_sysroot_get_fd(self_: *mut OstreeSysroot) -> c_int; - pub fn ostree_sysroot_get_merge_deployment( - self_: *mut OstreeSysroot, - osname: *const c_char, - ) -> *mut OstreeDeployment; + pub fn ostree_sysroot_get_merge_deployment(self_: *mut OstreeSysroot, osname: *const c_char) -> *mut OstreeDeployment; pub fn ostree_sysroot_get_path(self_: *mut OstreeSysroot) -> *mut gio::GFile; - pub fn ostree_sysroot_get_repo( - self_: *mut OstreeSysroot, - out_repo: *mut *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_get_repo(self_: *mut OstreeSysroot, out_repo: *mut *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))] - pub fn ostree_sysroot_get_staged_deployment(self_: *mut OstreeSysroot) - -> *mut OstreeDeployment; + pub fn ostree_sysroot_get_staged_deployment(self_: *mut OstreeSysroot) -> *mut OstreeDeployment; pub fn ostree_sysroot_get_subbootversion(self_: *mut OstreeSysroot) -> c_int; #[cfg(any(feature = "v2016_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))] - pub fn ostree_sysroot_init_osname( - self_: *mut OstreeSysroot, - osname: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_init_osname(self_: *mut OstreeSysroot, osname: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] - pub fn ostree_sysroot_initialize( - self_: *mut OstreeSysroot, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_initialize(self_: *mut OstreeSysroot, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] pub fn ostree_sysroot_is_booted(self_: *mut OstreeSysroot) -> gboolean; - pub fn ostree_sysroot_load( - self_: *mut OstreeSysroot, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_load(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_4")))] - pub fn ostree_sysroot_load_if_changed( - self_: *mut OstreeSysroot, - out_changed: *mut gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_lock( - self_: *mut OstreeSysroot, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_lock_async( - self_: *mut OstreeSysroot, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); - pub fn ostree_sysroot_lock_finish( - self_: *mut OstreeSysroot, - result: *mut gio::GAsyncResult, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_origin_new_from_refspec( - self_: *mut OstreeSysroot, - refspec: *const c_char, - ) -> *mut glib::GKeyFile; - pub fn ostree_sysroot_prepare_cleanup( - self_: *mut OstreeSysroot, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_load_if_changed(self_: *mut OstreeSysroot, out_changed: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_lock(self_: *mut OstreeSysroot, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_lock_async(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); + pub fn ostree_sysroot_lock_finish(self_: *mut OstreeSysroot, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_origin_new_from_refspec(self_: *mut OstreeSysroot, refspec: *const c_char) -> *mut glib::GKeyFile; + pub fn ostree_sysroot_prepare_cleanup(self_: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_7")))] - pub fn ostree_sysroot_query_deployments_for( - self_: *mut OstreeSysroot, - osname: *const c_char, - out_pending: *mut *mut OstreeDeployment, - out_rollback: *mut *mut OstreeDeployment, - ); + pub fn ostree_sysroot_query_deployments_for(self_: *mut OstreeSysroot, osname: *const c_char, out_pending: *mut *mut OstreeDeployment, out_rollback: *mut *mut OstreeDeployment); #[cfg(any(feature = "v2017_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_7")))] pub fn ostree_sysroot_repo(self_: *mut OstreeSysroot) -> *mut OstreeRepo; #[cfg(any(feature = "v2021_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_1")))] - pub fn ostree_sysroot_require_booted_deployment( - self_: *mut OstreeSysroot, - error: *mut *mut glib::GError, - ) -> *mut OstreeDeployment; + pub fn ostree_sysroot_require_booted_deployment(self_: *mut OstreeSysroot, error: *mut *mut glib::GError) -> *mut OstreeDeployment; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] pub fn ostree_sysroot_set_mount_namespace_in_use(self_: *mut OstreeSysroot); - pub fn ostree_sysroot_simple_write_deployment( - sysroot: *mut OstreeSysroot, - osname: *const c_char, - new_deployment: *mut OstreeDeployment, - merge_deployment: *mut OstreeDeployment, - flags: OstreeSysrootSimpleWriteDeploymentFlags, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_simple_write_deployment(sysroot: *mut OstreeSysroot, osname: *const c_char, new_deployment: *mut OstreeDeployment, merge_deployment: *mut OstreeDeployment, flags: OstreeSysrootSimpleWriteDeploymentFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_sysroot_stage_overlay_initrd( - self_: *mut OstreeSysroot, - fd: c_int, - out_checksum: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_stage_overlay_initrd(self_: *mut OstreeSysroot, fd: c_int, out_checksum: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_5", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_5")))] - pub fn ostree_sysroot_stage_tree( - self_: *mut OstreeSysroot, - osname: *const c_char, - revision: *const c_char, - origin: *mut glib::GKeyFile, - merge_deployment: *mut OstreeDeployment, - override_kernel_argv: *mut *mut c_char, - out_new_deployment: *mut *mut OstreeDeployment, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_stage_tree(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, merge_deployment: *mut OstreeDeployment, override_kernel_argv: *mut *mut c_char, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_7", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_7")))] - pub fn ostree_sysroot_stage_tree_with_options( - self_: *mut OstreeSysroot, - osname: *const c_char, - revision: *const c_char, - origin: *mut glib::GKeyFile, - merge_deployment: *mut OstreeDeployment, - opts: *mut OstreeSysrootDeployTreeOpts, - out_new_deployment: *mut *mut OstreeDeployment, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_try_lock( - self_: *mut OstreeSysroot, - out_acquired: *mut gboolean, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_stage_tree_with_options(self_: *mut OstreeSysroot, osname: *const c_char, revision: *const c_char, origin: *mut glib::GKeyFile, merge_deployment: *mut OstreeDeployment, opts: *mut OstreeSysrootDeployTreeOpts, out_new_deployment: *mut *mut OstreeDeployment, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_try_lock(self_: *mut OstreeSysroot, out_acquired: *mut gboolean, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_sysroot_unload(self_: *mut OstreeSysroot); pub fn ostree_sysroot_unlock(self_: *mut OstreeSysroot); - pub fn ostree_sysroot_write_deployments( - self_: *mut OstreeSysroot, - new_deployments: *mut glib::GPtrArray, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_write_deployments(self_: *mut OstreeSysroot, new_deployments: *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))] - pub fn ostree_sysroot_write_deployments_with_options( - self_: *mut OstreeSysroot, - new_deployments: *mut glib::GPtrArray, - opts: *mut OstreeSysrootWriteDeploymentsOpts, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_write_origin_file( - sysroot: *mut OstreeSysroot, - deployment: *mut OstreeDeployment, - new_origin: *mut glib::GKeyFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_write_deployments_with_options(self_: *mut OstreeSysroot, new_deployments: *mut glib::GPtrArray, opts: *mut OstreeSysrootWriteDeploymentsOpts, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_write_origin_file(sysroot: *mut OstreeSysroot, deployment: *mut OstreeDeployment, new_origin: *mut glib::GKeyFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // OstreeSysrootUpgrader //========================================================================= pub fn ostree_sysroot_upgrader_get_type() -> GType; - pub fn ostree_sysroot_upgrader_new( - sysroot: *mut OstreeSysroot, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeSysrootUpgrader; - pub fn ostree_sysroot_upgrader_new_for_os( - sysroot: *mut OstreeSysroot, - osname: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeSysrootUpgrader; - pub fn ostree_sysroot_upgrader_new_for_os_with_flags( - sysroot: *mut OstreeSysroot, - osname: *const c_char, - flags: OstreeSysrootUpgraderFlags, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> *mut OstreeSysrootUpgrader; - pub fn ostree_sysroot_upgrader_check_timestamps( - repo: *mut OstreeRepo, - from_rev: *const c_char, - to_rev: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_upgrader_deploy( - self_: *mut OstreeSysrootUpgrader, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_upgrader_dup_origin( - self_: *mut OstreeSysrootUpgrader, - ) -> *mut glib::GKeyFile; - pub fn ostree_sysroot_upgrader_get_origin( - self_: *mut OstreeSysrootUpgrader, - ) -> *mut glib::GKeyFile; - pub fn ostree_sysroot_upgrader_get_origin_description( - self_: *mut OstreeSysrootUpgrader, - ) -> *mut c_char; - pub fn ostree_sysroot_upgrader_pull( - self_: *mut OstreeSysrootUpgrader, - flags: OstreeRepoPullFlags, - upgrader_flags: OstreeSysrootUpgraderPullFlags, - progress: *mut OstreeAsyncProgress, - out_changed: *mut gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_upgrader_pull_one_dir( - self_: *mut OstreeSysrootUpgrader, - dir_to_pull: *const c_char, - flags: OstreeRepoPullFlags, - upgrader_flags: OstreeSysrootUpgraderPullFlags, - progress: *mut OstreeAsyncProgress, - out_changed: *mut gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sysroot_upgrader_set_origin( - self_: *mut OstreeSysrootUpgrader, - origin: *mut glib::GKeyFile, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sysroot_upgrader_new(sysroot: *mut OstreeSysroot, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSysrootUpgrader; + pub fn ostree_sysroot_upgrader_new_for_os(sysroot: *mut OstreeSysroot, osname: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSysrootUpgrader; + pub fn ostree_sysroot_upgrader_new_for_os_with_flags(sysroot: *mut OstreeSysroot, osname: *const c_char, flags: OstreeSysrootUpgraderFlags, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> *mut OstreeSysrootUpgrader; + pub fn ostree_sysroot_upgrader_check_timestamps(repo: *mut OstreeRepo, from_rev: *const c_char, to_rev: *const c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_upgrader_deploy(self_: *mut OstreeSysrootUpgrader, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_upgrader_dup_origin(self_: *mut OstreeSysrootUpgrader) -> *mut glib::GKeyFile; + pub fn ostree_sysroot_upgrader_get_origin(self_: *mut OstreeSysrootUpgrader) -> *mut glib::GKeyFile; + pub fn ostree_sysroot_upgrader_get_origin_description(self_: *mut OstreeSysrootUpgrader) -> *mut c_char; + pub fn ostree_sysroot_upgrader_pull(self_: *mut OstreeSysrootUpgrader, flags: OstreeRepoPullFlags, upgrader_flags: OstreeSysrootUpgraderPullFlags, progress: *mut OstreeAsyncProgress, out_changed: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_upgrader_pull_one_dir(self_: *mut OstreeSysrootUpgrader, dir_to_pull: *const c_char, flags: OstreeRepoPullFlags, upgrader_flags: OstreeSysrootUpgraderPullFlags, progress: *mut OstreeAsyncProgress, out_changed: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sysroot_upgrader_set_origin(self_: *mut OstreeSysrootUpgrader, origin: *mut glib::GKeyFile, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // OstreeRepoFinder @@ -3233,37 +1805,16 @@ extern "C" { pub fn ostree_repo_finder_get_type() -> GType; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_resolve_all_async( - finders: *const *mut OstreeRepoFinder, - refs: *const *const OstreeCollectionRef, - parent_repo: *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); + pub fn ostree_repo_finder_resolve_all_async(finders: *const *mut OstreeRepoFinder, refs: *const *const OstreeCollectionRef, parent_repo: *mut OstreeRepo, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_resolve_all_finish( - result: *mut gio::GAsyncResult, - error: *mut *mut glib::GError, - ) -> *mut glib::GPtrArray; + pub fn ostree_repo_finder_resolve_all_finish(result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> *mut glib::GPtrArray; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_resolve_async( - self_: *mut OstreeRepoFinder, - refs: *const *const OstreeCollectionRef, - parent_repo: *mut OstreeRepo, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); + pub fn ostree_repo_finder_resolve_async(self_: *mut OstreeRepoFinder, refs: *const *const OstreeCollectionRef, parent_repo: *mut OstreeRepo, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_repo_finder_resolve_finish( - self_: *mut OstreeRepoFinder, - result: *mut gio::GAsyncResult, - error: *mut *mut glib::GError, - ) -> *mut glib::GPtrArray; + pub fn ostree_repo_finder_resolve_finish(self_: *mut OstreeRepoFinder, result: *mut gio::GAsyncResult, error: *mut *mut glib::GError) -> *mut glib::GPtrArray; //========================================================================= // OstreeSign @@ -3274,143 +1825,49 @@ extern "C" { pub fn ostree_sign_get_all() -> *mut glib::GPtrArray; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_get_by_name( - name: *const c_char, - error: *mut *mut glib::GError, - ) -> *mut OstreeSign; + pub fn ostree_sign_get_by_name(name: *const c_char, error: *mut *mut glib::GError) -> *mut OstreeSign; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_add_pk( - self_: *mut OstreeSign, - public_key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_add_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_clear_keys( - self_: *mut OstreeSign, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_clear_keys(self_: *mut OstreeSign, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_commit( - self_: *mut OstreeSign, - repo: *mut OstreeRepo, - commit_checksum: *const c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_commit(self_: *mut OstreeSign, repo: *mut OstreeRepo, commit_checksum: *const c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_commit_verify( - self_: *mut OstreeSign, - repo: *mut OstreeRepo, - commit_checksum: *const c_char, - out_success_message: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_commit_verify(self_: *mut OstreeSign, repo: *mut OstreeRepo, commit_checksum: *const c_char, out_success_message: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_data( - self_: *mut OstreeSign, - data: *mut glib::GBytes, - signature: *mut *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_data(self_: *mut OstreeSign, data: *mut glib::GBytes, signature: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_data_verify( - self_: *mut OstreeSign, - data: *mut glib::GBytes, - signatures: *mut glib::GVariant, - out_success_message: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_dummy_add_pk( - self_: *mut OstreeSign, - key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_dummy_data( - self_: *mut OstreeSign, - data: *mut glib::GBytes, - signature: *mut *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_dummy_data_verify( - self_: *mut OstreeSign, - data: *mut glib::GBytes, - signatures: *mut glib::GVariant, - success_message: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_data_verify(self_: *mut OstreeSign, data: *mut glib::GBytes, signatures: *mut glib::GVariant, out_success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_dummy_add_pk(self_: *mut OstreeSign, key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_dummy_data(self_: *mut OstreeSign, data: *mut glib::GBytes, signature: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_dummy_data_verify(self_: *mut OstreeSign, data: *mut glib::GBytes, signatures: *mut glib::GVariant, success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_sign_dummy_get_name(self_: *mut OstreeSign) -> *const c_char; pub fn ostree_sign_dummy_metadata_format(self_: *mut OstreeSign) -> *const c_char; pub fn ostree_sign_dummy_metadata_key(self_: *mut OstreeSign) -> *const c_char; - pub fn ostree_sign_dummy_set_pk( - self_: *mut OstreeSign, - key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_dummy_set_sk( - self_: *mut OstreeSign, - key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_ed25519_add_pk( - self_: *mut OstreeSign, - public_key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_ed25519_clear_keys( - self_: *mut OstreeSign, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_ed25519_data( - self_: *mut OstreeSign, - data: *mut glib::GBytes, - signature: *mut *mut glib::GBytes, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_ed25519_data_verify( - self_: *mut OstreeSign, - data: *mut glib::GBytes, - signatures: *mut glib::GVariant, - out_success_message: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_dummy_set_pk(self_: *mut OstreeSign, key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_dummy_set_sk(self_: *mut OstreeSign, key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_ed25519_add_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_ed25519_clear_keys(self_: *mut OstreeSign, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_ed25519_data(self_: *mut OstreeSign, data: *mut glib::GBytes, signature: *mut *mut glib::GBytes, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_ed25519_data_verify(self_: *mut OstreeSign, data: *mut glib::GBytes, signatures: *mut glib::GVariant, out_success_message: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_sign_ed25519_get_name(self_: *mut OstreeSign) -> *const c_char; - pub fn ostree_sign_ed25519_load_pk( - self_: *mut OstreeSign, - options: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_ed25519_load_pk(self_: *mut OstreeSign, options: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_sign_ed25519_metadata_format(self_: *mut OstreeSign) -> *const c_char; pub fn ostree_sign_ed25519_metadata_key(self_: *mut OstreeSign) -> *const c_char; - pub fn ostree_sign_ed25519_set_pk( - self_: *mut OstreeSign, - public_key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_sign_ed25519_set_sk( - self_: *mut OstreeSign, - secret_key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_ed25519_set_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_sign_ed25519_set_sk(self_: *mut OstreeSign, secret_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] pub fn ostree_sign_get_name(self_: *mut OstreeSign) -> *const c_char; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_load_pk( - self_: *mut OstreeSign, - options: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_load_pk(self_: *mut OstreeSign, options: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] pub fn ostree_sign_metadata_format(self_: *mut OstreeSign) -> *const c_char; @@ -3419,40 +1876,20 @@ extern "C" { pub fn ostree_sign_metadata_key(self_: *mut OstreeSign) -> *const c_char; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_set_pk( - self_: *mut OstreeSign, - public_key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_set_pk(self_: *mut OstreeSign, public_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_set_sk( - self_: *mut OstreeSign, - secret_key: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_set_sk(self_: *mut OstreeSign, secret_key: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2020_2", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_2")))] - pub fn ostree_sign_summary( - self_: *mut OstreeSign, - repo: *mut OstreeRepo, - keys: *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_sign_summary(self_: *mut OstreeSign, repo: *mut OstreeRepo, keys: *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; //========================================================================= // Other functions //========================================================================= #[cfg(any(feature = "v2017_15", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_15")))] - pub fn ostree_break_hardlink( - dfd: c_int, - path: *const c_char, - skip_xattrs: gboolean, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_break_hardlink(dfd: c_int, path: *const c_char, skip_xattrs: gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))] pub fn ostree_check_version(required_year: c_uint, required_release: c_uint) -> gboolean; @@ -3465,52 +1902,14 @@ extern "C" { #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_8")))] pub fn ostree_checksum_b64_to_bytes(checksum: *const c_char) -> *mut [c_uchar; 32]; pub fn ostree_checksum_bytes_peek(bytes: *mut glib::GVariant) -> *const [c_uchar; 32]; - pub fn ostree_checksum_bytes_peek_validate( - bytes: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> *const [c_uchar; 32]; - pub fn ostree_checksum_file( - f: *mut gio::GFile, - objtype: OstreeObjectType, - out_csum: *mut *mut [*mut u8; 32], - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_checksum_file_async( - f: *mut gio::GFile, - objtype: OstreeObjectType, - io_priority: c_int, - cancellable: *mut gio::GCancellable, - callback: gio::GAsyncReadyCallback, - user_data: gpointer, - ); - pub fn ostree_checksum_file_async_finish( - f: *mut gio::GFile, - result: *mut gio::GAsyncResult, - out_csum: *mut *mut [*mut u8; 32], - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_checksum_bytes_peek_validate(bytes: *mut glib::GVariant, error: *mut *mut glib::GError) -> *const [c_uchar; 32]; + pub fn ostree_checksum_file(f: *mut gio::GFile, objtype: OstreeObjectType, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_checksum_file_async(f: *mut gio::GFile, objtype: OstreeObjectType, io_priority: c_int, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer); + pub fn ostree_checksum_file_async_finish(f: *mut gio::GFile, result: *mut gio::GAsyncResult, out_csum: *mut *mut [*mut u8; 32], error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_13", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_13")))] - pub fn ostree_checksum_file_at( - dfd: c_int, - path: *const c_char, - stbuf: *mut stat, - objtype: OstreeObjectType, - flags: OstreeChecksumFlags, - out_checksum: *mut *mut c_char, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_checksum_file_from_input( - file_info: *mut gio::GFileInfo, - xattrs: *mut glib::GVariant, - in_: *mut gio::GInputStream, - objtype: OstreeObjectType, - out_csum: *mut *mut [*mut u8; 32], - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_checksum_file_at(dfd: c_int, path: *const c_char, stbuf: *mut stat, objtype: OstreeObjectType, flags: OstreeChecksumFlags, out_checksum: *mut *mut c_char, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_checksum_file_from_input(file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, in_: *mut gio::GInputStream, objtype: OstreeObjectType, out_csum: *mut *mut [*mut u8; 32], cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_checksum_from_bytes(csum: *const [c_uchar; 32]) -> *mut c_char; pub fn ostree_checksum_from_bytes_v(csum_v: *mut glib::GVariant) -> *mut c_char; pub fn ostree_checksum_inplace_from_bytes(csum: *const [c_uchar; 32], buf: *mut c_char); @@ -3524,194 +1923,56 @@ extern "C" { pub fn ostree_commit_get_content_checksum(commit_variant: *mut glib::GVariant) -> *mut c_char; #[cfg(any(feature = "v2020_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2020_1")))] - pub fn ostree_commit_get_object_sizes( - commit_variant: *mut glib::GVariant, - out_sizes_entries: *mut *mut glib::GPtrArray, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_commit_get_object_sizes(commit_variant: *mut glib::GVariant, out_sizes_entries: *mut *mut glib::GPtrArray, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_commit_get_parent(commit_variant: *mut glib::GVariant) -> *mut c_char; #[cfg(any(feature = "v2016_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_3")))] pub fn ostree_commit_get_timestamp(commit_variant: *mut glib::GVariant) -> u64; #[cfg(any(feature = "v2021_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_1")))] - pub fn ostree_commit_metadata_for_bootable( - root: *mut gio::GFile, - dict: *mut glib::GVariantDict, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_content_file_parse( - compressed: gboolean, - content_path: *mut gio::GFile, - trusted: gboolean, - out_input: *mut *mut gio::GInputStream, - out_file_info: *mut *mut gio::GFileInfo, - out_xattrs: *mut *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_content_file_parse_at( - compressed: gboolean, - parent_dfd: c_int, - path: *const c_char, - trusted: gboolean, - out_input: *mut *mut gio::GInputStream, - out_file_info: *mut *mut gio::GFileInfo, - out_xattrs: *mut *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_content_stream_parse( - compressed: gboolean, - input: *mut gio::GInputStream, - input_length: u64, - trusted: gboolean, - out_input: *mut *mut gio::GInputStream, - out_file_info: *mut *mut gio::GFileInfo, - out_xattrs: *mut *mut glib::GVariant, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_create_directory_metadata( - dir_info: *mut gio::GFileInfo, - xattrs: *mut glib::GVariant, - ) -> *mut glib::GVariant; - pub fn ostree_diff_dirs( - flags: OstreeDiffFlags, - a: *mut gio::GFile, - b: *mut gio::GFile, - modified: *mut glib::GPtrArray, - removed: *mut glib::GPtrArray, - added: *mut glib::GPtrArray, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_commit_metadata_for_bootable(root: *mut gio::GFile, dict: *mut glib::GVariantDict, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_content_file_parse(compressed: gboolean, content_path: *mut gio::GFile, trusted: gboolean, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_content_file_parse_at(compressed: gboolean, parent_dfd: c_int, path: *const c_char, trusted: gboolean, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_content_stream_parse(compressed: gboolean, input: *mut gio::GInputStream, input_length: u64, trusted: gboolean, out_input: *mut *mut gio::GInputStream, out_file_info: *mut *mut gio::GFileInfo, out_xattrs: *mut *mut glib::GVariant, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_create_directory_metadata(dir_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant) -> *mut glib::GVariant; + pub fn ostree_diff_dirs(flags: OstreeDiffFlags, a: *mut gio::GFile, b: *mut gio::GFile, modified: *mut glib::GPtrArray, removed: *mut glib::GPtrArray, added: *mut glib::GPtrArray, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_4")))] - pub fn ostree_diff_dirs_with_options( - flags: OstreeDiffFlags, - a: *mut gio::GFile, - b: *mut gio::GFile, - modified: *mut glib::GPtrArray, - removed: *mut glib::GPtrArray, - added: *mut glib::GPtrArray, - options: *mut OstreeDiffDirsOptions, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_diff_print( - a: *mut gio::GFile, - b: *mut gio::GFile, - modified: *mut glib::GPtrArray, - removed: *mut glib::GPtrArray, - added: *mut glib::GPtrArray, - ); + pub fn ostree_diff_dirs_with_options(flags: OstreeDiffFlags, a: *mut gio::GFile, b: *mut gio::GFile, modified: *mut glib::GPtrArray, removed: *mut glib::GPtrArray, added: *mut glib::GPtrArray, options: *mut OstreeDiffDirsOptions, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_diff_print(a: *mut gio::GFile, b: *mut gio::GFile, modified: *mut glib::GPtrArray, removed: *mut glib::GPtrArray, added: *mut glib::GPtrArray); #[cfg(any(feature = "v2017_10", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_10")))] pub fn ostree_gpg_error_quark() -> glib::GQuark; pub fn ostree_hash_object_name(a: gconstpointer) -> c_uint; pub fn ostree_metadata_variant_type(objtype: OstreeObjectType) -> *const glib::GVariantType; - pub fn ostree_object_from_string( - str: *const c_char, - out_checksum: *mut *mut c_char, - out_objtype: *mut OstreeObjectType, - ); - pub fn ostree_object_name_deserialize( - variant: *mut glib::GVariant, - out_checksum: *mut *const c_char, - out_objtype: *mut OstreeObjectType, - ); - pub fn ostree_object_name_serialize( - checksum: *const c_char, - objtype: OstreeObjectType, - ) -> *mut glib::GVariant; - pub fn ostree_object_to_string( - checksum: *const c_char, - objtype: OstreeObjectType, - ) -> *mut c_char; + pub fn ostree_object_from_string(str: *const c_char, out_checksum: *mut *mut c_char, out_objtype: *mut OstreeObjectType); + pub fn ostree_object_name_deserialize(variant: *mut glib::GVariant, out_checksum: *mut *const c_char, out_objtype: *mut OstreeObjectType); + pub fn ostree_object_name_serialize(checksum: *const c_char, objtype: OstreeObjectType) -> *mut glib::GVariant; + pub fn ostree_object_to_string(checksum: *const c_char, objtype: OstreeObjectType) -> *mut c_char; pub fn ostree_object_type_from_string(str: *const c_char) -> OstreeObjectType; pub fn ostree_object_type_to_string(objtype: OstreeObjectType) -> *const c_char; - pub fn ostree_parse_refspec( - refspec: *const c_char, - out_remote: *mut *mut c_char, - out_ref: *mut *mut c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_parse_refspec(refspec: *const c_char, out_remote: *mut *mut c_char, out_ref: *mut *mut c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2016_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_6")))] - pub fn ostree_raw_file_to_archive_z2_stream( - input: *mut gio::GInputStream, - file_info: *mut gio::GFileInfo, - xattrs: *mut glib::GVariant, - out_input: *mut *mut gio::GInputStream, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_raw_file_to_archive_z2_stream(input: *mut gio::GInputStream, file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, out_input: *mut *mut gio::GInputStream, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_3", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_3")))] - pub fn ostree_raw_file_to_archive_z2_stream_with_options( - input: *mut gio::GInputStream, - file_info: *mut gio::GFileInfo, - xattrs: *mut glib::GVariant, - options: *mut glib::GVariant, - out_input: *mut *mut gio::GInputStream, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_raw_file_to_content_stream( - input: *mut gio::GInputStream, - file_info: *mut gio::GFileInfo, - xattrs: *mut glib::GVariant, - out_input: *mut *mut gio::GInputStream, - out_length: *mut u64, - cancellable: *mut gio::GCancellable, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_checksum_string( - sha256: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_raw_file_to_archive_z2_stream_with_options(input: *mut gio::GInputStream, file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, options: *mut glib::GVariant, out_input: *mut *mut gio::GInputStream, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_raw_file_to_content_stream(input: *mut gio::GInputStream, file_info: *mut gio::GFileInfo, xattrs: *mut glib::GVariant, out_input: *mut *mut gio::GInputStream, out_length: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_checksum_string(sha256: *const c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2018_6", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_6")))] - pub fn ostree_validate_collection_id( - collection_id: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_validate_collection_id(collection_id: *const c_char, error: *mut *mut glib::GError) -> gboolean; #[cfg(any(feature = "v2017_8", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v2017_8")))] - pub fn ostree_validate_remote_name( - remote_name: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_validate_remote_name(remote_name: *const c_char, error: *mut *mut glib::GError) -> gboolean; pub fn ostree_validate_rev(rev: *const c_char, error: *mut *mut glib::GError) -> gboolean; - pub fn ostree_validate_structureof_checksum_string( - checksum: *const c_char, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_structureof_commit( - commit: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_structureof_csum_v( - checksum: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_structureof_dirmeta( - dirmeta: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_structureof_dirtree( - dirtree: *mut glib::GVariant, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_structureof_file_mode( - mode: u32, - error: *mut *mut glib::GError, - ) -> gboolean; - pub fn ostree_validate_structureof_objtype( - objtype: c_uchar, - error: *mut *mut glib::GError, - ) -> gboolean; + pub fn ostree_validate_structureof_checksum_string(checksum: *const c_char, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_structureof_commit(commit: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_structureof_csum_v(checksum: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_structureof_dirmeta(dirmeta: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_structureof_dirtree(dirtree: *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_structureof_file_mode(mode: u32, error: *mut *mut glib::GError) -> gboolean; + pub fn ostree_validate_structureof_objtype(objtype: c_uchar, error: *mut *mut glib::GError) -> gboolean; } diff --git a/rust-bindings/rust/sys/tests/abi.rs b/rust-bindings/rust/sys/tests/abi.rs index 183c2e34..681ce997 100644 --- a/rust-bindings/rust/sys/tests/abi.rs +++ b/rust-bindings/rust/sys/tests/abi.rs @@ -3,10 +3,10 @@ // DO NOT EDIT use ostree_sys::*; +use std::mem::{align_of, size_of}; use std::env; use std::error::Error; use std::ffi::OsString; -use std::mem::{align_of, size_of}; use std::path::Path; use std::process::Command; use std::str; @@ -64,18 +64,21 @@ fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } - let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config")); + let pkg_config = env::var_os("PKG_CONFIG") + .unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(pkg_config); cmd.arg("--cflags"); cmd.args(packages); let out = cmd.output()?; if !out.status.success() { - return Err(format!("command {:?} returned {}", &cmd, out.status).into()); + return Err(format!("command {:?} returned {}", + &cmd, out.status).into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } + #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, @@ -169,7 +172,8 @@ fn cross_validate_layout_with_c() { let mut results = Results::default(); - for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter()) + for ((rust_name, rust_layout), (c_name, c_layout)) in + RUST_LAYOUTS.iter().zip(c_layouts.iter()) { if rust_name != c_name { results.record_failed(); @@ -210,386 +214,71 @@ fn get_c_output(name: &str) -> Result> { } const RUST_LAYOUTS: &[(&str, Layout)] = &[ - ( - "OstreeAsyncProgressClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeChecksumFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeCollectionRef", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeCollectionRefv", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeCommitSizesEntry", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeContentWriterClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeDeploymentUnlockedState", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeDiffDirsOptions", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeDiffFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeDiffItem", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeGpgError", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeGpgSignatureAttr", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeGpgSignatureFormatFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeMutableTreeClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeMutableTreeIter", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeObjectType", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCheckoutAtOptions", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCheckoutFilterResult", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCheckoutMode", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCheckoutOverwriteMode", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCommitFilterResult", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCommitIterResult", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCommitModifierFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCommitState", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCommitTraverseFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoCommitTraverseIter", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFileClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderAvahiClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderConfigClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderInterface", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderMountClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderOverrideClass", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderResult", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoFinderResultv", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoListObjectsFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoListRefsExtFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoMode", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoPruneFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoPruneOptions", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoPullFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoRemoteChange", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoResolveRevExtFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeRepoTransactionStats", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSePolicyRestoreconFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSignInterface", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeStaticDeltaGenerateOpt", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeStaticDeltaIndexFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSysrootDeployTreeOpts", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSysrootSimpleWriteDeploymentFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSysrootUpgraderFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSysrootUpgraderPullFlags", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), - ( - "OstreeSysrootWriteDeploymentsOpts", - Layout { - size: size_of::(), - alignment: align_of::(), - }, - ), + ("OstreeAsyncProgressClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeChecksumFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeCollectionRef", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeCollectionRefv", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeCommitSizesEntry", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeContentWriterClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeDeploymentUnlockedState", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeDiffDirsOptions", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeDiffFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeDiffItem", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeGpgError", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeGpgSignatureAttr", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeGpgSignatureFormatFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeMutableTreeClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeMutableTreeIter", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeObjectType", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCheckoutAtOptions", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCheckoutFilterResult", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCheckoutMode", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCheckoutOverwriteMode", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCommitFilterResult", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCommitIterResult", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCommitModifierFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCommitState", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCommitTraverseFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoCommitTraverseIter", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFileClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderAvahiClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderConfigClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderInterface", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderMountClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderOverrideClass", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderResult", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoFinderResultv", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoListObjectsFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoListRefsExtFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoLockType", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoMode", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoPruneFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoPruneOptions", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoPullFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoRemoteChange", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoResolveRevExtFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoTransactionStats", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeRepoVerifyFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSePolicyRestoreconFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSignInterface", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeStaticDeltaGenerateOpt", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeStaticDeltaIndexFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSysrootDeployTreeOpts", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSysrootSimpleWriteDeploymentFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSysrootUpgraderFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSysrootUpgraderPullFlags", Layout {size: size_of::(), alignment: align_of::()}), + ("OstreeSysrootWriteDeploymentsOpts", Layout {size: size_of::(), alignment: align_of::()}), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ + ("(guint) OSTREE_CHECKSUM_FLAGS_CANONICAL_PERMISSIONS", "2"), ("(guint) OSTREE_CHECKSUM_FLAGS_IGNORE_XATTRS", "1"), ("(guint) OSTREE_CHECKSUM_FLAGS_NONE", "0"), ("OSTREE_COMMIT_GVARIANT_STRING", "(a{sv}aya(say)sstayay)"), ("OSTREE_COMMIT_META_KEY_ARCHITECTURE", "ostree.architecture"), - ( - "OSTREE_COMMIT_META_KEY_COLLECTION_BINDING", - "ostree.collection-binding", - ), + ("OSTREE_COMMIT_META_KEY_COLLECTION_BINDING", "ostree.collection-binding"), ("OSTREE_COMMIT_META_KEY_ENDOFLIFE", "ostree.endoflife"), - ( - "OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE", - "ostree.endoflife-rebase", - ), + ("OSTREE_COMMIT_META_KEY_ENDOFLIFE_REBASE", "ostree.endoflife-rebase"), ("OSTREE_COMMIT_META_KEY_REF_BINDING", "ostree.ref-binding"), ("OSTREE_COMMIT_META_KEY_SOURCE_TITLE", "ostree.source-title"), ("OSTREE_COMMIT_META_KEY_VERSION", "version"), @@ -607,16 +296,14 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) OSTREE_GPG_ERROR_MISSING_KEY", "2"), ("(gint) OSTREE_GPG_ERROR_NO_SIGNATURE", "0"), ("(gint) OSTREE_GPG_ERROR_REVOKED_KEY", "5"), + ("OSTREE_GPG_KEY_GVARIANT_STRING", "(aa{sv}aa{sv}a{sv})"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_EXP_TIMESTAMP", "7"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT", "5"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT_PRIMARY", "12"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_HASH_ALGO_NAME", "9"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXPIRED", "2"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP", "13"), - ( - "(gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP_PRIMARY", - "14", - ), + ("(gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP_PRIMARY", "14"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_MISSING", "4"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_KEY_REVOKED", "3"), ("(gint) OSTREE_GPG_SIGNATURE_ATTR_PUBKEY_ALGO_NAME", "8"), @@ -630,10 +317,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("OSTREE_MAX_METADATA_WARN_SIZE", "7340032"), ("OSTREE_METADATA_KEY_BOOTABLE", "ostree.bootable"), ("OSTREE_METADATA_KEY_LINUX", "ostree.linux"), - ( - "OSTREE_META_KEY_DEPLOY_COLLECTION_ID", - "ostree.deploy-collection-id", - ), + ("OSTREE_META_KEY_DEPLOY_COLLECTION_ID", "ostree.deploy-collection-id"), ("(gint) OSTREE_OBJECT_TYPE_COMMIT", "4"), ("(gint) OSTREE_OBJECT_TYPE_COMMIT_META", "6"), ("(gint) OSTREE_OBJECT_TYPE_DIR_META", "3"), @@ -656,23 +340,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) OSTREE_REPO_COMMIT_ITER_RESULT_END", "1"), ("(gint) OSTREE_REPO_COMMIT_ITER_RESULT_ERROR", "0"), ("(gint) OSTREE_REPO_COMMIT_ITER_RESULT_FILE", "2"), - ( - "(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS", - "4", - ), + ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CANONICAL_PERMISSIONS", "4"), ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_CONSUME", "16"), - ( - "(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL", - "32", - ), - ( - "(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_ERROR_ON_UNLABELED", - "8", - ), - ( - "(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES", - "2", - ), + ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL", "32"), + ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_ERROR_ON_UNLABELED", "8"), + ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES", "2"), ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE", "0"), ("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS", "1"), ("(guint) OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL", "2"), @@ -687,6 +359,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(guint) OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_MIRRORS", "4"), ("(guint) OSTREE_REPO_LIST_REFS_EXT_EXCLUDE_REMOTES", "2"), ("(guint) OSTREE_REPO_LIST_REFS_EXT_NONE", "0"), + ("(gint) OSTREE_REPO_LOCK_EXCLUSIVE", "1"), + ("(gint) OSTREE_REPO_LOCK_SHARED", "0"), ("OSTREE_REPO_METADATA_REF", "ostree-metadata"), ("(gint) OSTREE_REPO_MODE_ARCHIVE", "1"), ("(gint) OSTREE_REPO_MODE_ARCHIVE_Z2", "1"), @@ -709,14 +383,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) OSTREE_REPO_REMOTE_CHANGE_REPLACE", "4"), ("(guint) OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY", "1"), ("(guint) OSTREE_REPO_RESOLVE_REV_EXT_NONE", "0"), - ( - "(guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL", - "1", - ), - ( - "(guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING", - "2", - ), + ("(guint) OSTREE_REPO_VERIFY_FLAGS_NONE", "0"), + ("(guint) OSTREE_REPO_VERIFY_FLAGS_NO_GPG", "1"), + ("(guint) OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI", "2"), + ("(guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL", "1"), + ("(guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING", "2"), ("(guint) OSTREE_SEPOLICY_RESTORECON_FLAGS_NONE", "0"), ("OSTREE_SHA256_DIGEST_LEN", "32"), ("OSTREE_SHA256_STRING_LEN", "64"), @@ -726,40 +397,19 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) OSTREE_STATIC_DELTA_INDEX_FLAGS_NONE", "0"), ("OSTREE_SUMMARY_GVARIANT_STRING", "(a(s(taya{sv}))a{sv})"), ("OSTREE_SUMMARY_SIG_GVARIANT_STRING", "a{sv}"), - ( - "(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE", - "0", - ), - ( - "(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT", - "2", - ), - ( - "(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN", - "4", - ), - ( - "(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN", - "1", - ), - ( - "(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING", - "8", - ), - ( - "(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK", - "16", - ), - ( - "(guint) OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED", - "2", - ), - ( - "(guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER", - "1", - ), + ("(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NONE", "0"), + ("(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NOT_DEFAULT", "2"), + ("(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN", "4"), + ("(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN", "1"), + ("(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_PENDING", "8"), + ("(guint) OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK", "16"), + ("(guint) OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED", "2"), + ("(guint) OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE", "4"), + ("(guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER", "1"), ("(guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE", "0"), ("(guint) OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC", "2"), ("OSTREE_TIMESTAMP", "0"), ("OSTREE_TREE_GVARIANT_STRING", "(a(say)a(sayay))"), ]; + + diff --git a/rust-bindings/rust/sys/tests/constant.c b/rust-bindings/rust/sys/tests/constant.c index 8ec21a8e..9ecc6c96 100644 --- a/rust-bindings/rust/sys/tests/constant.c +++ b/rust-bindings/rust/sys/tests/constant.c @@ -28,6 +28,7 @@ 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); @@ -52,6 +53,7 @@ int main() { 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); @@ -114,6 +116,8 @@ int main() { 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); @@ -136,6 +140,9 @@ int main() { 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); @@ -154,6 +161,7 @@ int main() { 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); diff --git a/rust-bindings/rust/sys/tests/layout.c b/rust-bindings/rust/sys/tests/layout.c index bfc385d3..0def4cc7 100644 --- a/rust-bindings/rust/sys/tests/layout.c +++ b/rust-bindings/rust/sys/tests/layout.c @@ -43,6 +43,7 @@ int main() { 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)); @@ -50,6 +51,7 @@ int main() { 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));