diff --git a/rust-bindings/rust/Cargo.toml b/rust-bindings/rust/Cargo.toml
index b10c923b..0077c33b 100644
--- a/rust-bindings/rust/Cargo.toml
+++ b/rust-bindings/rust/Cargo.toml
@@ -86,3 +86,4 @@ 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"]
+v2021_5 = ["v2021_4", "ffi/v2021_5"]
diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir
index 85fe46b1..9a93767a 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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
filename="ostree-mutable-tree.c"
line="659">Creates a new OstreeMutableTree with the contents taken from the given repo
and checksums. The data will be loaded from the repo lazily as needed.
-
+
+
+ Creates a new OstreeMutableTree with the contents taken from the given commit.
+The data will be loaded from the repo lazily as needed.
+
+
+ A new tree
+
+
+
+
+ The repo which contains the objects refered by the checksums.
+
+
+
+ ref or SHA-256 checksum
+
+
+
+
data in the background; if an error occurred during a non-throwing
API call, it will have been cached. This function checks for a
cached error. The tree remains in error state.
-
+
filename="ostree-mutable-tree.c"
line="363">Returns the subdirectory of self with filename @name, creating an empty one
it if it doesn't exist.
-
+
@@ -4002,7 +4014,7 @@ it if it doesn't exist.
filename="ostree-mutable-tree.c"
line="439">Create all parent trees necessary for the given @split_path to
exist.
-
+
@@ -4048,7 +4060,7 @@ exist.
the @repo. We can do this if either @self is empty, the tree given by
@contents_checksum is empty or if both trees already have the same
@contents_checksum.
-
+
-
+
@@ -4087,7 +4099,7 @@ the contents will be loaded only when needed.
-
+
-
+
@@ -4117,7 +4129,7 @@ the contents will be loaded only when needed.
-
+
-
+
@@ -4180,7 +4192,7 @@ the contents will be loaded only when needed.
Remove the file or subdirectory named @name from the mutable tree @self.
-
+
@@ -4208,7 +4220,7 @@ the contents will be loaded only when needed.
-
+
@@ -4226,7 +4238,7 @@ the contents will be loaded only when needed.
-
+
@@ -4241,7 +4253,7 @@ the contents will be loaded only when needed.
-
+
@@ -4259,7 +4271,7 @@ the contents will be loaded only when needed.
filename="ostree-mutable-tree.c"
line="558">Traverse @start number of elements starting from @split_path; the
child will be returned in @out_subdir.
-
+
@@ -4592,14 +4604,14 @@ reference count reaches 0.
An accessor object for an OSTree repository located at @path
+ line="1379">An accessor object for an OSTree repository located at @path
Path to a repository
+ line="1377">Path to a repository
@@ -4607,7 +4619,7 @@ reference count reaches 0.
If the current working directory appears to be an OSTree
+ line="1452">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
@@ -4616,7 +4628,7 @@ Otherwise use the path in the OSTREE_REPO environment variable
An accessor object for an OSTree repository located at /ostree/repo
+ line="1461">An accessor object for an OSTree repository located at /ostree/repo
@@ -4624,26 +4636,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="1435">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="1443">An accessor object for the OSTree repository located at @repo_path.
Path to a repository
+ line="1437">Path to a repository
Path to the system root
+ line="1438">Path to the system root
@@ -4654,7 +4666,7 @@ instead of assuming "/".
throws="1">
This is a file-descriptor relative version of ostree_repo_create().
+ line="2860">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.
@@ -4670,26 +4682,26 @@ The @options dict may contain:
A new OSTree repository reference
+ line="2882">A new OSTree repository reference
Directory fd
+ line="2862">Directory fd
Path
+ line="2863">Path
The mode to store the repository in
+ line="2864">The mode to store the repository in
a{sv}: See below for accepted keys
+ line="2865">a{sv}: See below for accepted keys
Cancellable
+ line="2866">Cancellable
@@ -4723,7 +4735,7 @@ The @options dict may contain:
a repo mode as a string
+ line="2686">a repo mode as a string
the corresponding #OstreeRepoMode
+ line="2687">the corresponding #OstreeRepoMode
@@ -4743,27 +4755,27 @@ The @options dict may contain:
throws="1">
This combines ostree_repo_new() (but using fd-relative access) with
+ line="1400">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="1409">An accessor object for an OSTree repository located at @dfd + @path
Directory fd
+ line="1402">Directory fd
Path
+ line="1403">Path
Convenient "changed" callback for use with
+ line="5046">Convenient "changed" callback for use with
ostree_async_progress_new_and_connect() when pulling from a remote
repository.
@@ -4798,7 +4810,7 @@ and @user_data is ignored.
Async progress
+ line="5048">Async progress
allow-none="1">
User data
+ line="5049">User data
@@ -4882,7 +4894,7 @@ the commits the key belongs to.
throws="1">
Abort the active transaction; any staged objects and ref changes will be
+ line="2359">Abort the active transaction; any staged objects and ref changes will be
discarded. You *must* invoke this if you have chosen not to invoke
ostree_repo_commit_transaction(). Calling this function when not in a
transaction will do nothing and return successfully.
@@ -4894,7 +4906,7 @@ transaction will do nothing and return successfully.
An #OstreeRepo
+ line="2361">An #OstreeRepo
allow-none="1">
Cancellable
+ line="2362">Cancellable
@@ -4913,7 +4925,7 @@ transaction will do nothing and return successfully.
throws="1">
Add a GPG signature to a summary file.
+ line="5417">Add a GPG signature to a summary file.
@@ -4922,13 +4934,13 @@ transaction will do nothing and return successfully.
Self
+ line="5419">Self
NULL-terminated array of GPG keys.
+ line="5420">NULL-terminated array of GPG keys.
@@ -4939,7 +4951,7 @@ transaction will do nothing and return successfully.
allow-none="1">
GPG home directory, or %NULL
+ line="5421">GPG home directory, or %NULL
allow-none="1">
A #GCancellable
+ line="5422">A #GCancellable
@@ -4958,7 +4970,7 @@ transaction will do nothing and return successfully.
throws="1">
Append a GPG signature to a commit.
+ line="5196">Append a GPG signature to a commit.
@@ -4967,19 +4979,19 @@ transaction will do nothing and return successfully.
Self
+ line="5198">Self
SHA256 of given commit to sign
+ line="5199">SHA256 of given commit to sign
Signature data
+ line="5200">Signature data
allow-none="1">
A #GCancellable
+ line="5201">A #GCancellable
@@ -5223,7 +5235,7 @@ This function is deprecated. Use ostree_repo_checkout_at() instead.
throws="1">
Complete the transaction. Any refs set with
+ line="2263">Complete the transaction. Any refs set with
ostree_repo_transaction_set_ref() or
ostree_repo_transaction_set_refspec() will be written out.
@@ -5241,7 +5253,7 @@ active at a time.
An #OstreeRepo
+ line="2265">An #OstreeRepo
allow-none="1">
A set of statistics of things
+ line="2266">A set of statistics of things
that happened during this transaction.
@@ -5263,7 +5275,7 @@ that happened during this transaction.
allow-none="1">
Cancellable
+ line="2268">Cancellable
@@ -5273,7 +5285,7 @@ that happened during this transaction.
A newly-allocated copy of the repository config
+ line="1580">A newly-allocated copy of the repository config
@@ -5285,7 +5297,7 @@ that happened during this transaction.
Create the underlying structure on disk for the repository, and call
+ line="2812">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
@@ -5307,13 +5319,13 @@ this function on a repository initialized via ostree_repo_open_at().
An #OstreeRepo
+ line="2814">An #OstreeRepo
The mode to store the repository in
+ line="2815">The mode to store the repository in
allow-none="1">
Cancellable
+ line="2816">Cancellable
@@ -5332,7 +5344,7 @@ this function on a repository initialized via ostree_repo_open_at().
throws="1">
Remove the object of type @objtype with checksum @sha256
+ line="4490">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.
@@ -5343,19 +5355,19 @@ is thrown if the object does not exist.
Repo
+ line="4492">Repo
Object type
+ line="4493">Object type
Checksum
+ line="4494">Checksum
allow-none="1">
Cancellable
+ line="4495">Cancellable
@@ -5372,27 +5384,27 @@ is thrown if the object does not exist.
Check whether two opened repositories are the same on disk: if their root
+ line="3760">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="3769">%TRUE if @a and @b are the same repository on disk, %FALSE otherwise
an #OstreeRepo
+ line="3762">an #OstreeRepo
an #OstreeRepo
+ line="3763">an #OstreeRepo
@@ -5612,7 +5624,7 @@ ostree_repo_find_remotes_async().
throws="1">
Verify consistency of the object; this performs checks only relevant to the
+ line="4606">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.
@@ -5623,19 +5635,19 @@ traverse metadata objects for example.
Repo
+ line="4608">Repo
Object type
+ line="4609">Object type
Checksum
+ line="4610">Checksum
allow-none="1">
Cancellable
+ line="4611">Cancellable
@@ -5654,20 +5666,20 @@ traverse metadata objects for example.
version="2019.2">
Get the bootloader configured. See the documentation for the
+ line="6600">Get the bootloader configured. See the documentation for the
"sysroot.bootloader" config key.
bootloader configuration for the sysroot
+ line="6607">bootloader configuration for the sysroot
an #OstreeRepo
+ line="6602">an #OstreeRepo
@@ -5677,19 +5689,19 @@ traverse metadata objects for example.
version="2018.6">
Get the collection ID of this repository. See [collection IDs][collection-ids].
+ line="6528">Get the collection ID of this repository. See [collection IDs][collection-ids].
collection ID for the repository
+ line="6534">collection ID for the repository
an #OstreeRepo
+ line="6530">an #OstreeRepo
@@ -5699,7 +5711,7 @@ traverse metadata objects for example.
The repository configuration; do not modify
+ line="1566">The repository configuration; do not modify
@@ -5713,13 +5725,13 @@ traverse metadata objects for example.
version="2018.9">
Get the set of default repo finders configured. See the documentation for
+ line="6581">Get the set of default repo finders configured. See the documentation for
the "core.default-repo-finders" config key.
+ line="6588">
%NULL-terminated array of strings.
@@ -5729,7 +5741,7 @@ the "core.default-repo-finders" config key.
an #OstreeRepo
+ line="6583">an #OstreeRepo
@@ -5739,7 +5751,7 @@ the "core.default-repo-finders" config key.
version="2016.4">
In some cases it's useful for applications to access the repository
+ line="3711">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).
@@ -5747,14 +5759,14 @@ repository (to see whether a ref was written).
File descriptor for repository root - owned by @self
+ line="3720">File descriptor for repository root - owned by @self
Repo
+ line="3713">Repo
@@ -5763,19 +5775,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="3658">For more information see ostree_repo_set_disable_fsync().
Whether or not fsync() is enabled for this repo.
+ line="3664">Whether or not fsync() is enabled for this repo.
An #OstreeRepo
+ line="3660">An #OstreeRepo
@@ -5786,7 +5798,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="3793">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.
@@ -5794,14 +5806,14 @@ core.min-free-space-percent repo config options.
%TRUE on success, %FALSE otherwise.
+ line="3804">%TRUE on success, %FALSE otherwise.
Repo
+ line="3795">Repo
transfer-ownership="full">
Location to store the result
+ line="3796">Location to store the result
@@ -5829,20 +5841,20 @@ core.min-free-space-percent repo config options.
Before this function can be used, ostree_repo_init() must have been
+ line="3820">Before this function can be used, ostree_repo_init() must have been
called.
Parent repository, or %NULL if none
+ line="3827">Parent repository, or %NULL if none
Repo
+ line="3822">Repo
@@ -5850,21 +5862,21 @@ called.
Note that since the introduction of ostree_repo_open_at(), this function may
+ line="3689">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="3697">Path to repo
Repo
+ line="3691">Repo
@@ -5875,7 +5887,7 @@ that API. In general, you should avoid use of this API.
throws="1">
OSTree remotes are represented by keyfile groups, formatted like:
+ line="1075">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
@@ -5884,32 +5896,32 @@ error is returned, @out_value will be set to %FALSE.
%TRUE on success, otherwise %FALSE with @error set
+ line="1090">%TRUE on success, otherwise %FALSE with @error set
A OstreeRepo
+ line="1077">A OstreeRepo
Name
+ line="1078">Name
Option
+ line="1079">Option
Value returned if @option_name is not present
+ line="1080">Value returned if @option_name is not present
transfer-ownership="full">
location to store the result.
+ line="1081">location to store the result.
@@ -5929,7 +5941,7 @@ error is returned, @out_value will be set to %FALSE.
throws="1">
OSTree remotes are represented by keyfile groups, formatted like:
+ line="997">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
@@ -5938,26 +5950,26 @@ to %NULL.
%TRUE on success, otherwise %FALSE with @error set
+ line="1013">%TRUE on success, otherwise %FALSE with @error set
A OstreeRepo
+ line="999">A OstreeRepo
Name
+ line="1000">Name
Option
+ line="1001">Option
transfer-ownership="full">
location to store the list
+ line="1002">location to store the list
of strings. The list should be freed with
g_strfreev().
@@ -5981,7 +5993,7 @@ to %NULL.
throws="1">
OSTree remotes are represented by keyfile groups, formatted like:
+ line="919">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.
@@ -5989,26 +6001,26 @@ option name. If an error is returned, @out_value will be set to %NULL.
%TRUE on success, otherwise %FALSE with @error set
+ line="933">%TRUE on success, otherwise %FALSE with @error set
A OstreeRepo
+ line="921">A OstreeRepo
Name
+ line="922">Name
Option
+ line="923">Option
allow-none="1">
Value returned if @option_name is not present
+ line="924">Value returned if @option_name is not present
transfer-ownership="full">
Return location for value
+ line="925">Return location for value
@@ -6037,7 +6049,7 @@ 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="5483">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.
@@ -6046,7 +6058,7 @@ You can use ostree_repo_gpg_verify_data() to verify the signatures.
@TRUE if @data has been signed successfully,
+ line="5500">@TRUE if @data has been signed successfully,
@FALSE in case of error (@error will contain the reason).
@@ -6054,25 +6066,25 @@ You can use ostree_repo_gpg_verify_data() to verify the signatures.
Self
+ line="5485">Self
Data as a #GBytes
+ line="5486">Data as a #GBytes
Existing signatures to append to (or %NULL)
+ line="5487">Existing signatures to append to (or %NULL)
NULL-terminated array of GPG keys.
+ line="5488">NULL-terminated array of GPG keys.
@@ -6083,7 +6095,7 @@ You can use ostree_repo_gpg_verify_data() to verify the signatures.
allow-none="1">
GPG home directory, or %NULL
+ line="5489">GPG home directory, or %NULL
transfer-ownership="full">
in case of success will contain signature
+ line="5490">in case of success will contain signature
allow-none="1">
A #GCancellable
+ line="5491">A #GCancellable
@@ -6112,7 +6124,7 @@ 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="5914">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
@@ -6121,14 +6133,14 @@ the verifications using GPG keys in the keyrings of all remotes.
an #OstreeGpgVerifyResult, or %NULL on error
+ line="5931">an #OstreeGpgVerifyResult, or %NULL on error
Repository
+ line="5916">Repository
allow-none="1">
Name of remote
+ line="5917">Name of remote
Data as a #GBytes
+ line="5918">Data as a #GBytes
Signatures as a #GBytes
+ line="5919">Signatures as a #GBytes
allow-none="1">
Path to directory GPG keyrings; overrides built-in default if given
+ line="5920">Path to directory GPG keyrings; overrides built-in default if given
allow-none="1">
Path to additional keyring file (not a directory)
+ line="5921">Path to additional keyring file (not a directory)
allow-none="1">
Cancellable
+ line="5922">Cancellable
@@ -6186,32 +6198,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="4448">Set @out_have_object to %TRUE if @self contains the given object;
%FALSE otherwise.
%FALSE if an unexpected error occurred, %TRUE otherwise
+ line="4460">%FALSE if an unexpected error occurred, %TRUE otherwise
Repo
+ line="4450">Repo
Object type
+ line="4451">Object type
ASCII SHA256 checksum
+ line="4452">ASCII SHA256 checksum
transfer-ownership="full">
%TRUE if repository contains object
+ line="4453">%TRUE if repository contains object
allow-none="1">
Cancellable
+ line="4454">Cancellable
@@ -6237,7 +6249,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="3730">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.
@@ -6247,14 +6259,14 @@ This function does no I/O.
hash value for the #OstreeRepo
+ line="3741">hash value for the #OstreeRepo
an #OstreeRepo
+ line="3732">an #OstreeRepo
@@ -6326,7 +6338,7 @@ file structure to @mtree.
throws="1">
Copy object named by @objtype and @checksum into @self from the
+ line="4633">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.
@@ -6340,25 +6352,25 @@ Otherwise, a copy will be performed.
Destination repo
+ line="4635">Destination repo
Source repo
+ line="4636">Source repo
Object type
+ line="4637">Object type
checksum
+ line="4638">checksum
allow-none="1">
Cancellable
+ line="4639">Cancellable
@@ -6378,7 +6390,7 @@ Otherwise, a copy will be performed.
throws="1">
Copy object named by @objtype and @checksum into @self from the
+ line="4662">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.
@@ -6392,31 +6404,31 @@ Otherwise, a copy will be performed.
Destination repo
+ line="4664">Destination repo
Source repo
+ line="4665">Source repo
Object type
+ line="4666">Object type
checksum
+ line="4667">checksum
If %TRUE, assume the source repo is valid and trusted
+ line="4668">If %TRUE, assume the source repo is valid and trusted
allow-none="1">
Cancellable
+ line="4669">Cancellable
@@ -6435,14 +6447,14 @@ Otherwise, a copy will be performed.
%TRUE if this repository is the root-owned system global repository
+ line="1490">%TRUE if this repository is the root-owned system global repository
Repository
+ line="1488">Repository
@@ -6452,20 +6464,20 @@ Otherwise, a copy will be performed.
throws="1">
Returns whether the repository is writable by the current user.
+ line="1520">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="1528">%TRUE if this repository is writable
Repo
+ line="1522">Repo
@@ -6549,26 +6561,26 @@ If you want to exclude refs from `refs/remotes`, use
throws="1">
This function synchronously enumerates all commit objects starting
+ line="4856">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="4868">%TRUE on success, %FALSE on error, and @error will be set
Repo
+ line="4858">Repo
List commits starting with this checksum
+ line="4859">List commits starting with this checksum
transfer-ownership="container">
+ line="4860">
Map of serialized commit name to variant data
@@ -6590,7 +6602,7 @@ Map of serialized commit name to variant data
allow-none="1">
Cancellable
+ line="4862">Cancellable
@@ -6600,7 +6612,7 @@ Map of serialized commit name to variant data
throws="1">
This function synchronously enumerates all objects in the
+ line="4802">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.
@@ -6608,20 +6620,20 @@ to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE.
%TRUE on success, %FALSE on error, and @error will be set
+ line="4816">%TRUE on success, %FALSE on error, and @error will be set
Repo
+ line="4804">Repo
Flags controlling enumeration
+ line="4805">Flags controlling enumeration
@@ -6631,7 +6643,7 @@ to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE.
transfer-ownership="container">
+ line="4806">
Map of serialized object name to variant data
@@ -6644,7 +6656,7 @@ Map of serialized object name to variant data
allow-none="1">
Cancellable
+ line="4808">Cancellable
@@ -6853,7 +6865,7 @@ repository, returning its result in @out_deltas.
throws="1">
A version of ostree_repo_load_variant() specialized to commits,
+ line="4778">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.
@@ -6865,13 +6877,13 @@ means that only a sub-path of the commit is available.
Repo
+ line="4780">Repo
Commit checksum
+ line="4781">Commit checksum
allow-none="1">
Commit
+ line="4782">Commit
allow-none="1">
Commit state
+ line="4783">Commit state
@@ -6901,7 +6913,7 @@ means that only a sub-path of the commit is available.
Load content object, decomposing it into three parts: the actual
+ line="4287">Load content object, decomposing it into three parts: the actual
content (for regular files), the metadata, and extended attributes.
@@ -6911,13 +6923,13 @@ content (for regular files), the metadata, and extended attributes.
Repo
+ line="4289">Repo
ASCII SHA256 checksum
+ line="4290">ASCII SHA256 checksum
allow-none="1">
File content
+ line="4291">File content
allow-none="1">
File information
+ line="4292">File information
allow-none="1">
Extended attributes
+ line="4293">Extended attributes
allow-none="1">
Cancellable
+ line="4294">Cancellable
@@ -6972,7 +6984,7 @@ content (for regular files), the metadata, and extended attributes.
throws="1">
Load object as a stream; useful when copying objects between
+ line="4348">Load object as a stream; useful when copying objects between
repositories.
@@ -6982,19 +6994,19 @@ repositories.
Repo
+ line="4350">Repo
Object type
+ line="4351">Object type
ASCII SHA256 checksum
+ line="4352">ASCII SHA256 checksum
transfer-ownership="full">
Stream for object
+ line="4353">Stream for object
transfer-ownership="full">
Length of @out_input
+ line="4354">Length of @out_input
allow-none="1">
Cancellable
+ line="4355">Cancellable
@@ -7031,7 +7043,7 @@ repositories.
throws="1">
Load the metadata object @sha256 of type @objtype, storing the
+ line="4756">Load the metadata object @sha256 of type @objtype, storing the
result in @out_variant.
@@ -7041,19 +7053,19 @@ result in @out_variant.
Repo
+ line="4758">Repo
Expected object type
+ line="4759">Expected object type
Checksum string
+ line="4760">Checksum string
transfer-ownership="full">
Metadata object
+ line="4761">Metadata object
@@ -7072,7 +7084,7 @@ result in @out_variant.
throws="1">
Attempt to load the metadata object @sha256 of type @objtype if it
+ line="4732">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.
@@ -7084,19 +7096,19 @@ return TRUE.
Repo
+ line="4734">Repo
Object type
+ line="4735">Object type
ASCII checksum
+ line="4736">ASCII checksum
nullable="1">
Metadata
+ line="4737">Metadata
@@ -7224,7 +7236,7 @@ If @self is not writable by the user, then no locking is attempted and
throws="1">
Commits in the "partial" state do not have all their child objects
+ line="2037">Commits in the "partial" state do not have all their child objects
written. This occurs in various situations, such as during a pull,
but also if a "subpath" pull is used, as well as "commit only"
pulls.
@@ -7239,19 +7251,19 @@ should use this if you are implementing a different type of transport.
Repo
+ line="2039">Repo
Commit SHA-256
+ line="2040">Commit SHA-256
Whether or not this commit is partial
+ line="2041">Whether or not this commit is partial
@@ -7262,7 +7274,7 @@ should use this if you are implementing a different type of transport.
throws="1">
Allows the setting of a reason code for a partial commit. Presently
+ line="1986">Allows the setting of a reason code for a partial commit. Presently
it only supports setting reason bitmask to
OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL, or
OSTREE_REPO_COMMIT_STATE_NORMAL. This will allow successive ostree
@@ -7277,25 +7289,25 @@ it.
Repo
+ line="1988">Repo
Commit SHA-256
+ line="1989">Commit SHA-256
Whether or not this commit is partial
+ line="1990">Whether or not this commit is partial
Reason bitmask for partial commit
+ line="1991">Reason bitmask for partial commit
@@ -7572,7 +7584,7 @@ non existing commit
Connect to the remote repository, fetching the specified set of
+ line="4934">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.
@@ -7596,13 +7608,13 @@ one around this call.
Repo
+ line="4936">Repo
Name of remote
+ line="4937">Name of remote
allow-none="1">
Optional list of refs; if %NULL, fetch all configured refs
+ line="4938">Optional list of refs; if %NULL, fetch all configured refs
@@ -7619,7 +7631,7 @@ one around this call.
Options controlling fetch behavior
+ line="4939">Options controlling fetch behavior
allow-none="1">
Progress
+ line="4940">Progress
allow-none="1">
Cancellable
+ line="4941">Cancellable
@@ -7794,7 +7806,7 @@ ostree_repo_pull_from_remotes_async().
throws="1">
This is similar to ostree_repo_pull(), but only fetches a single
+ line="4973">This is similar to ostree_repo_pull(), but only fetches a single
subpath.
@@ -7804,19 +7816,19 @@ subpath.
Repo
+ line="4975">Repo
Name of remote
+ line="4976">Name of remote
Subdirectory path
+ line="4977">Subdirectory path
allow-none="1">
Optional list of refs; if %NULL, fetch all configured refs
+ line="4978">Optional list of refs; if %NULL, fetch all configured refs
@@ -7833,7 +7845,7 @@ subpath.
Options controlling fetch behavior
+ line="4979">Options controlling fetch behavior
allow-none="1">
Progress
+ line="4980">Progress
allow-none="1">
Cancellable
+ line="4981">Cancellable
@@ -7960,7 +7972,7 @@ The following are currently defined:
throws="1">
Return the size in bytes of object with checksum @sha256, after any
+ line="4696">Return the size in bytes of object with checksum @sha256, after any
compression has been applied.
@@ -7970,19 +7982,19 @@ compression has been applied.
Repo
+ line="4698">Repo
Object type
+ line="4699">Object type
Checksum
+ line="4700">Checksum
transfer-ownership="full">
Size in bytes object occupies physically
+ line="4701">Size in bytes object occupies physically
allow-none="1">
Cancellable
+ line="4702">Cancellable
@@ -8010,7 +8022,7 @@ compression has been applied.
throws="1">
Load the content for @rev into @out_root.
+ line="4899">Load the content for @rev into @out_root.
@@ -8019,13 +8031,13 @@ compression has been applied.
Repo
+ line="4901">Repo
Ref or ASCII checksum
+ line="4902">Ref or ASCII checksum
transfer-ownership="full">
An #OstreeRepoFile corresponding to the root
+ line="4903">An #OstreeRepoFile corresponding to the root
transfer-ownership="full">
The resolved commit checksum
+ line="4904">The resolved commit checksum
allow-none="1">
Cancellable
+ line="4905">Cancellable
@@ -8062,7 +8074,7 @@ compression has been applied.
throws="1">
OSTree commits can have arbitrary metadata associated; this
+ line="3120">OSTree commits can have arbitrary metadata associated; this
function retrieves them. If none exists, @out_metadata will be set
to %NULL.
@@ -8073,13 +8085,13 @@ to %NULL.
Repo
+ line="3122">Repo
ASCII SHA256 commit checksum
+ line="3123">ASCII SHA256 commit checksum
nullable="1">
Metadata associated with commit in with format "a{sv}", or %NULL if none exists
+ line="3124">Metadata associated with commit in with format "a{sv}", or %NULL if none exists
allow-none="1">
Cancellable
+ line="3125">Cancellable
@@ -8108,7 +8120,7 @@ to %NULL.
throws="1">
An OSTree repository can contain a high level "summary" file that
+ line="6055">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
@@ -8134,7 +8146,7 @@ Locking: exclusive
Repo
+ line="6057">Repo
allow-none="1">
A GVariant of type a{sv}, or %NULL
+ line="6058">A GVariant of type a{sv}, or %NULL
allow-none="1">
Cancellable
+ line="6059">Cancellable
@@ -8163,7 +8175,7 @@ Locking: exclusive
throws="1">
By default, an #OstreeRepo will cache the remote configuration and its
+ line="3465">By default, an #OstreeRepo will cache the remote configuration and its
own repo/config data. This API can be used to reload it.
@@ -8173,7 +8185,7 @@ own repo/config data. This API can be used to reload it.
repo
+ line="3467">repo
allow-none="1">
cancellable
+ line="3468">cancellable
@@ -8192,7 +8204,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="1789">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:
@@ -8207,13 +8219,13 @@ mapped as follows:
Repo
+ line="1791">Repo
Name of remote
+ line="1792">Name of remote
URL for remote (if URL begins with metalink=, it will be used as such)
+ line="1793">URL for remote (if URL begins with metalink=, it will be used as such)
GVariant of type a{sv}
+ line="1794">GVariant of type a{sv}
Cancellable
+ line="1795">Cancellable
@@ -8250,7 +8262,7 @@ mapped as follows:
throws="1">
A combined function handling the equivalent of
+ line="1979">A combined function handling the equivalent of
ostree_repo_remote_add(), ostree_repo_remote_delete(), with more
options.
@@ -8261,7 +8273,7 @@ options.
Repo
+ line="1981">Repo
allow-none="1">
System root
+ line="1982">System root
Operation to perform
+ line="1983">Operation to perform
Name of remote
+ line="1984">Name of remote
allow-none="1">
URL for remote (if URL begins with metalink=, it will be used as such)
+ line="1985">URL for remote (if URL begins with metalink=, it will be used as such)
allow-none="1">
GVariant of type a{sv}
+ line="1986">GVariant of type a{sv}
allow-none="1">
Cancellable
+ line="1987">Cancellable
@@ -8319,7 +8331,7 @@ options.
throws="1">
Delete the remote named @name. It is an error if the provided
+ line="1875">Delete the remote named @name. It is an error if the provided
remote does not exist.
@@ -8329,13 +8341,13 @@ remote does not exist.
Repo
+ line="1877">Repo
Name of remote
+ line="1878">Name of remote
allow-none="1">
Cancellable
+ line="1879">Cancellable
@@ -8354,7 +8366,7 @@ remote does not exist.
throws="1">
Tries to fetch the summary file and any GPG signatures on the summary file
+ line="2610">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.
@@ -8371,20 +8383,20 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
%TRUE on success, %FALSE on failure
+ line="2635">%TRUE on success, %FALSE on failure
Self
+ line="2612">Self
name of a remote
+ line="2613">name of a remote
allow-none="1">
return location for raw summary data, or
+ line="2614">return location for raw summary data, or
%NULL
@@ -8407,7 +8419,7 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
allow-none="1">
return location for raw summary
+ line="2616">return location for raw summary
signature data, or %NULL
@@ -8417,7 +8429,7 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
allow-none="1">
a #GCancellable
+ line="2618">a #GCancellable
@@ -8507,7 +8519,7 @@ The following are currently defined:
throws="1">
Enumerate the trusted GPG keys for the remote @name. If @name is
+ line="2482">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
@@ -8517,14 +8529,14 @@ array can be used to limit which keys are included. If @key_ids is
%TRUE if the GPG keys could be enumerated, %FALSE otherwise
+ line="2501">%TRUE if the GPG keys could be enumerated, %FALSE otherwise
an #OstreeRepo
+ line="2484">an #OstreeRepo
name of the remote or %NULL
+ line="2485">name of the remote or %NULL
+ line="2486">
a %NULL-terminated array of GPG key IDs to include, or %NULL
@@ -8556,7 +8568,7 @@ array can be used to limit which keys are included. If @key_ids is
allow-none="1">
+ line="2488">
return location for a #GPtrArray of the remote's trusted GPG keys, or
%NULL
@@ -8569,7 +8581,7 @@ array can be used to limit which keys are included. If @key_ids is
allow-none="1">
a #GCancellable, or %NULL
+ line="2491">a #GCancellable, or %NULL
@@ -8579,27 +8591,27 @@ array can be used to limit which keys are included. If @key_ids is
throws="1">
Return whether GPG verification is enabled for the remote named @name
+ line="2140">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="2151">%TRUE on success, %FALSE on failure
Repo
+ line="2142">Repo
Name of remote
+ line="2143">Name of remote
allow-none="1">
Remote's GPG option
+ line="2144">Remote's GPG option
@@ -8620,27 +8632,27 @@ not exist.
throws="1">
Return whether GPG verification of the summary is enabled for the remote
+ line="2174">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="2185">%TRUE on success, %FALSE on failure
Repo
+ line="2176">Repo
Name of remote
+ line="2177">Name of remote
allow-none="1">
Remote's GPG option
+ line="2178">Remote's GPG option
@@ -8661,26 +8673,26 @@ remote does not exist.
throws="1">
Return the URL of the remote named @name through @out_url. It is an
+ line="2097">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="2107">%TRUE on success, %FALSE on failure
Repo
+ line="2099">Repo
Name of remote
+ line="2100">Name of remote
allow-none="1">
Remote's URL
+ line="2101">Remote's URL
@@ -8701,7 +8713,7 @@ 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="2197">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.
@@ -8712,20 +8724,20 @@ from the remote named @name.
%TRUE on success, %FALSE on failure
+ line="2216">%TRUE on success, %FALSE on failure
Self
+ line="2199">Self
name of a remote
+ line="2200">name of a remote
allow-none="1">
a #GInputStream, or %NULL
+ line="2201">a #GInputStream, or %NULL
allow-none="1">
a %NULL-terminated array of GPG key IDs, or %NULL
+ line="2202">a %NULL-terminated array of GPG key IDs, or %NULL
@@ -8756,7 +8768,7 @@ from the remote named @name.
allow-none="1">
return location for the number of imported
+ line="2203">return location for the number of imported
keys, or %NULL
@@ -8766,7 +8778,7 @@ from the remote named @name.
allow-none="1">
a #GCancellable
+ line="2205">a #GCancellable
@@ -8774,13 +8786,13 @@ from the remote named @name.
List available remote names in an #OstreeRepo. Remote names are sorted
+ line="2046">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="2054">a %NULL-terminated
array of remote names
@@ -8790,7 +8802,7 @@ alphabetically. If no remotes are available the function returns %NULL.
Repo
+ line="2048">Repo
allow-none="1">
Number of remotes available
+ line="2049">Number of remotes available
@@ -9174,7 +9186,7 @@ Multithreading: This function is *not* MT safe.
throws="1">
Like ostree_repo_set_ref_immediate(), but creates an alias.
+ line="2205">Like ostree_repo_set_ref_immediate(), but creates an alias.
@@ -9183,7 +9195,7 @@ Multithreading: This function is *not* MT safe.
An #OstreeRepo
+ line="2207">An #OstreeRepo
allow-none="1">
A remote for the ref
+ line="2208">A remote for the ref
The ref to write
+ line="2209">The ref to write
allow-none="1">
The ref target to point it to, or %NULL to unset
+ line="2210">The ref target to point it to, or %NULL to unset
allow-none="1">
GCancellable
+ line="2211">GCancellable
@@ -9227,7 +9239,7 @@ Multithreading: This function is *not* MT safe.
throws="1">
Set a custom location for the cache directory used for e.g.
+ line="3626">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.
@@ -9239,19 +9251,19 @@ write permissions in the repo, where the cache is normally stored.
An #OstreeRepo
+ line="3628">An #OstreeRepo
directory fd
+ line="3629">directory fd
subpath in @dfd
+ line="3630">subpath in @dfd
allow-none="1">
a #GCancellable
+ line="3631">a #GCancellable
@@ -9271,21 +9283,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="6545">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="6555">%TRUE on success, %FALSE otherwise
an #OstreeRepo
+ line="6547">an #OstreeRepo
allow-none="1">
new collection ID, or %NULL to unset it
+ line="6548">new collection ID, or %NULL to unset it
@@ -9305,27 +9317,27 @@ configuration on disk using ostree_repo_write_config().
throws="1">
This is like ostree_repo_transaction_set_collection_ref(), except it may be
+ line="2231">This is like ostree_repo_transaction_set_collection_ref(), except it may be
invoked outside of a transaction. This is presently safe for the
case where we're creating or overwriting an existing ref.
%TRUE on success, %FALSE otherwise
+ line="2243">%TRUE on success, %FALSE otherwise
An #OstreeRepo
+ line="2233">An #OstreeRepo
The collection–ref to write
+ line="2234">The collection–ref to write
allow-none="1">
The checksum to point it to, or %NULL to unset
+ line="2235">The checksum to point it to, or %NULL to unset
allow-none="1">
GCancellable
+ line="2236">GCancellable
@@ -9352,7 +9364,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="3609">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.
@@ -9364,13 +9376,13 @@ ensuring data consistency.
An #OstreeRepo
+ line="3611">An #OstreeRepo
If %TRUE, do not fsync
+ line="3612">If %TRUE, do not fsync
@@ -9380,7 +9392,7 @@ ensuring data consistency.
throws="1">
This is like ostree_repo_transaction_set_ref(), except it may be
+ line="2177">This is like ostree_repo_transaction_set_ref(), except it may be
invoked outside of a transaction. This is presently safe for the
case where we're creating or overwriting an existing ref.
@@ -9393,7 +9405,7 @@ Multithreading: This function is MT safe.
An #OstreeRepo
+ line="2179">An #OstreeRepo
allow-none="1">
A remote for the ref
+ line="2180">A remote for the ref
The ref to write
+ line="2181">The ref to write
allow-none="1">
The checksum to point it to, or %NULL to unset
+ line="2182">The checksum to point it to, or %NULL to unset
allow-none="1">
GCancellable
+ line="2183">GCancellable
@@ -9436,7 +9448,7 @@ Multithreading: This function is MT safe.
throws="1">
Add a GPG signature to a commit.
+ line="5301">Add a GPG signature to a commit.
@@ -9445,19 +9457,19 @@ Multithreading: This function is MT safe.
Self
+ line="5303">Self
SHA256 of given commit to sign
+ line="5304">SHA256 of given commit to sign
Use this GPG key id
+ line="5305">Use this GPG key id
allow-none="1">
GPG home directory, or %NULL
+ line="5306">GPG home directory, or %NULL
allow-none="1">
A #GCancellable
+ line="5307">A #GCancellable
@@ -9485,7 +9497,7 @@ Multithreading: This function is MT safe.
throws="1">
This function is deprecated, sign the summary file instead.
+ line="5390">This function is deprecated, sign the summary file instead.
Add a GPG signature to a static delta.
@@ -9495,31 +9507,31 @@ Add a GPG signature to a static delta.
Self
+ line="5392">Self
From commit
+ line="5393">From commit
To commit
+ line="5394">To commit
key id
+ line="5395">key id
homedir
+ line="5396">homedir
allow-none="1">
cancellable
+ line="5397">cancellable
@@ -9873,7 +9885,7 @@ signature engine provided, FALSE otherwise.
version="2018.6">
If @checksum is not %NULL, then record it as the target of local ref named
+ line="2139">If @checksum is not %NULL, then record it as the target of local ref named
@ref.
Otherwise, if @checksum is %NULL, then record that the ref should
@@ -9893,13 +9905,13 @@ Multithreading: Since v2017.15 this function is MT safe.
An #OstreeRepo
+ line="2141">An #OstreeRepo
The collection–ref to write
+ line="2142">The collection–ref to write
allow-none="1">
The checksum to point it to
+ line="2143">The checksum to point it to
@@ -9917,7 +9929,7 @@ Multithreading: Since v2017.15 this function is MT safe.
c:identifier="ostree_repo_transaction_set_ref">
If @checksum is not %NULL, then record it as the target of ref named
+ line="2090">If @checksum is not %NULL, then record it as the target of ref named
@ref; if @remote is provided, the ref will appear to originate from that
remote.
@@ -9946,7 +9958,7 @@ Multithreading: Since v2017.15 this function is MT safe.
An #OstreeRepo
+ line="2092">An #OstreeRepo
allow-none="1">
A remote for the ref
+ line="2093">A remote for the ref
The ref to write
+ line="2094">The ref to write
allow-none="1">
The checksum to point it to
+ line="2095">The checksum to point it to
@@ -9979,7 +9991,7 @@ Multithreading: Since v2017.15 this function is MT safe.
c:identifier="ostree_repo_transaction_set_refspec">
Like ostree_repo_transaction_set_ref(), but takes concatenated
+ line="2065">Like ostree_repo_transaction_set_ref(), but takes concatenated
@refspec format as input instead of separate remote and name
arguments.
@@ -9992,13 +10004,13 @@ Multithreading: Since v2017.15 this function is MT safe.
An #OstreeRepo
+ line="2067">An #OstreeRepo
The refspec to write
+ line="2068">The refspec to write
allow-none="1">
The checksum to point it to
+ line="2069">The checksum to point it to
@@ -10232,26 +10244,26 @@ Locking: shared
throws="1">
Check for a valid GPG signature on commit named by the ASCII
+ line="5803">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="5815">%TRUE if there was a GPG signature from a trusted keyring, otherwise %FALSE
Repository
+ line="5805">Repository
ASCII SHA256 checksum
+ line="5806">ASCII SHA256 checksum
allow-none="1">
Path to directory GPG keyrings; overrides built-in default if given
+ line="5807">Path to directory GPG keyrings; overrides built-in default if given
allow-none="1">
Path to additional keyring file (not a directory)
+ line="5808">Path to additional keyring file (not a directory)
allow-none="1">
Cancellable
+ line="5809">Cancellable
@@ -10288,26 +10300,26 @@ checksum @commit_checksum.
throws="1">
Read GPG signature(s) on the commit named by the ASCII checksum
+ line="5841">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="5853">an #OstreeGpgVerifyResult, or %NULL on error
Repository
+ line="5843">Repository
ASCII SHA256 checksum
+ line="5844">ASCII SHA256 checksum
allow-none="1">
Path to directory GPG keyrings; overrides built-in default if given
+ line="5845">Path to directory GPG keyrings; overrides built-in default if given
allow-none="1">
Path to additional keyring file (not a directory)
+ line="5846">Path to additional keyring file (not a directory)
allow-none="1">
Cancellable
+ line="5847">Cancellable
@@ -10345,33 +10357,33 @@ checksum @commit_checksum.
throws="1">
Read GPG signature(s) on the commit named by the ASCII checksum
+ line="5877">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="5889">an #OstreeGpgVerifyResult, or %NULL on error
Repository
+ line="5879">Repository
ASCII SHA256 checksum
+ line="5880">ASCII SHA256 checksum
OSTree remote to use for configuration
+ line="5881">OSTree remote to use for configuration
allow-none="1">
Cancellable
+ line="5882">Cancellable
@@ -10390,38 +10402,38 @@ configured for @remote.
throws="1">
Verify @signatures for @summary data using GPG keys in the keyring for
+ line="5964">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="5976">an #OstreeGpgVerifyResult, or %NULL on error
Repo
+ line="5966">Repo
Name of remote
+ line="5967">Name of remote
Summary data as a #GBytes
+ line="5968">Summary data as a #GBytes
Summary signatures as a #GBytes
+ line="5969">Summary signatures as a #GBytes
allow-none="1">
Cancellable
+ line="5970">Cancellable
@@ -10554,7 +10566,7 @@ its file structure to @mtree.
throws="1">
Write a commit metadata object, referencing @root_contents_checksum
+ line="3013">Write a commit metadata object, referencing @root_contents_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
@@ -10568,7 +10580,7 @@ overridden with an explicit timestamp via the
Repo
+ line="3015">Repo
ASCII SHA256 checksum for parent, or %NULL for none
+ line="3016">ASCII SHA256 checksum for parent, or %NULL for none
Subject
+ line="3017">Subject
Body
+ line="3018">Body
GVariant of type a{sv}, or %NULL for none
+ line="3019">GVariant of type a{sv}, or %NULL for none
The tree to point the commit to
+ line="3020">The tree to point the commit to
Resulting ASCII SHA256 checksum for commit
+ line="3021">Resulting ASCII SHA256 checksum for commit
Cancellable
+ line="3022">Cancellable
@@ -10638,7 +10650,7 @@ overridden with an explicit timestamp via the
throws="1">
Replace any existing metadata associated with commit referred to by
+ line="3170">Replace any existing metadata associated with commit referred to by
@checksum with @metadata. If @metadata is %NULL, then existing
data will be deleted.
@@ -10649,13 +10661,13 @@ data will be deleted.
Repo
+ line="3172">Repo
ASCII SHA256 commit checksum
+ line="3173">ASCII SHA256 commit checksum
allow-none="1">
Metadata to associate with commit in with format "a{sv}", or %NULL to delete
+ line="3174">Metadata to associate with commit in with format "a{sv}", or %NULL to delete
allow-none="1">
Cancellable
+ line="3175">Cancellable
@@ -10683,7 +10695,7 @@ data will be deleted.
throws="1">
Write a commit metadata object, referencing @root_contents_checksum
+ line="3066">Write a commit metadata object, referencing @root_contents_checksum
and @root_metadata_checksum.
@@ -10693,7 +10705,7 @@ and @root_metadata_checksum.
Repo
+ line="3068">Repo
allow-none="1">
ASCII SHA256 checksum for parent, or %NULL for none
+ line="3069">ASCII SHA256 checksum for parent, or %NULL for none
allow-none="1">
Subject
+ line="3070">Subject
allow-none="1">
Body
+ line="3071">Body
allow-none="1">
GVariant of type a{sv}, or %NULL for none
+ line="3072">GVariant of type a{sv}, or %NULL for none
The tree to point the commit to
+ line="3073">The tree to point the commit to
The time to use to stamp the commit
+ line="3074">The time to use to stamp the commit
transfer-ownership="full">
Resulting ASCII SHA256 checksum for commit
+ line="3075">Resulting ASCII SHA256 checksum for commit
allow-none="1">
Cancellable
+ line="3076">Cancellable
@@ -10769,7 +10781,7 @@ and @root_metadata_checksum.
throws="1">
Save @new_config in place of this repository's config file.
+ line="1599">Save @new_config in place of this repository's config file.
@@ -10778,13 +10790,13 @@ and @root_metadata_checksum.
Repo
+ line="1601">Repo
Overwrite the config file with this data
+ line="1602">Overwrite the config file with this data
@@ -10794,7 +10806,7 @@ and @root_metadata_checksum.
throws="1">
Store the content object streamed as @object_input,
+ line="2718">Store the content object streamed as @object_input,
with total length @length. The actual checksum will
be returned as @out_csum.
@@ -10805,7 +10817,7 @@ be returned as @out_csum.
Repo
+ line="2720">Repo
allow-none="1">
If provided, validate content against this checksum
+ line="2721">If provided, validate content against this checksum
Content object stream
+ line="2722">Content object stream
Length of @object_input
+ line="2723">Length of @object_input
allow-none="1">
Binary checksum
+ line="2724">Binary checksum
@@ -10848,7 +10860,7 @@ be returned as @out_csum.
allow-none="1">
Cancellable
+ line="2725">Cancellable
@@ -10857,7 +10869,7 @@ be returned as @out_csum.
c:identifier="ostree_repo_write_content_async">
Asynchronously store the content object @object. If provided, the
+ line="2936">Asynchronously store the content object @object. If provided, the
checksum @expected_checksum will be verified.
@@ -10867,7 +10879,7 @@ checksum @expected_checksum will be verified.
Repo
+ line="2938">Repo
allow-none="1">
If provided, validate content against this checksum
+ line="2939">If provided, validate content against this checksum
Input
+ line="2940">Input
Length of @object
+ line="2941">Length of @object
allow-none="1">
Cancellable
+ line="2942">Cancellable
closure="5">
Invoked when content is writed
+ line="2943">Invoked when content is writed
allow-none="1">
User data for @callback
+ line="2944">User data for @callback
@@ -10927,7 +10939,7 @@ checksum @expected_checksum will be verified.
throws="1">
Completes an invocation of ostree_repo_write_content_async().
+ line="2977">Completes an invocation of ostree_repo_write_content_async().
@@ -10936,13 +10948,13 @@ checksum @expected_checksum will be verified.
a #OstreeRepo
+ line="2979">a #OstreeRepo
a #GAsyncResult
+ line="2980">a #GAsyncResult
transfer-ownership="full">
A binary SHA256 checksum of the content object
+ line="2981">A binary SHA256 checksum of the content object
@@ -10961,7 +10973,7 @@ checksum @expected_checksum will be verified.
throws="1">
Store the content object streamed as @object_input, with total
+ line="2691">Store the content object streamed as @object_input, with total
length @length. The given @checksum will be treated as trusted.
This function should be used when importing file objects from local
@@ -10974,25 +10986,25 @@ disk, for example.
Repo
+ line="2693">Repo
Store content using this ASCII SHA256 checksum
+ line="2694">Store content using this ASCII SHA256 checksum
Content stream
+ line="2695">Content stream
Length of @object_input
+ line="2696">Length of @object_input
allow-none="1">
Cancellable
+ line="2697">Cancellable
@@ -11011,7 +11023,7 @@ disk, for example.
throws="1">
Store as objects all contents of the directory referred to by @dfd
+ line="4139">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.
@@ -11022,25 +11034,25 @@ resulting filesystem hierarchy into @mtree.
Repo
+ line="4141">Repo
Directory file descriptor
+ line="4142">Directory file descriptor
Path
+ line="4143">Path
Overlay directory contents into this tree
+ line="4144">Overlay directory contents into this tree
allow-none="1">
Optional modifier
+ line="4145">Optional modifier
@@ -11059,7 +11071,7 @@ resulting filesystem hierarchy into @mtree.
allow-none="1">
Cancellable
+ line="4146">Cancellable
@@ -11069,7 +11081,7 @@ resulting filesystem hierarchy into @mtree.
throws="1">
Store objects for @dir and all children into the repository @self,
+ line="4098">Store objects for @dir and all children into the repository @self,
overlaying the resulting filesystem hierarchy into @mtree.
@@ -11079,19 +11091,19 @@ overlaying the resulting filesystem hierarchy into @mtree.
Repo
+ line="4100">Repo
Path to a directory
+ line="4101">Path to a directory
Overlay directory contents into this tree
+ line="4102">Overlay directory contents into this tree
allow-none="1">
Optional modifier
+ line="4103">Optional modifier
@@ -11110,7 +11122,7 @@ overlaying the resulting filesystem hierarchy into @mtree.
allow-none="1">
Cancellable
+ line="4104">Cancellable
@@ -11120,7 +11132,7 @@ overlaying the resulting filesystem hierarchy into @mtree.
throws="1">
Store the metadata object @object. Return the checksum
+ line="2421">Store the metadata object @object. Return the checksum
as @out_csum.
If @expected_checksum is not %NULL, verify it against the
@@ -11133,13 +11145,13 @@ computed checksum.
Repo
+ line="2423">Repo
Object type
+ line="2424">Object type
allow-none="1">
If provided, validate content against this checksum
+ line="2425">If provided, validate content against this checksum
Metadata
+ line="2426">Metadata
allow-none="1">
Binary checksum
+ line="2427">Binary checksum
@@ -11176,7 +11188,7 @@ computed checksum.
allow-none="1">
Cancellable
+ line="2428">Cancellable
@@ -11185,7 +11197,7 @@ computed checksum.
c:identifier="ostree_repo_write_metadata_async">
Asynchronously store the metadata object @variant. If provided,
+ line="2600">Asynchronously store the metadata object @variant. If provided,
the checksum @expected_checksum will be verified.
@@ -11195,13 +11207,13 @@ the checksum @expected_checksum will be verified.
Repo
+ line="2602">Repo
Object type
+ line="2603">Object type
allow-none="1">
If provided, validate content against this checksum
+ line="2604">If provided, validate content against this checksum
Metadata
+ line="2605">Metadata
allow-none="1">
Cancellable
+ line="2606">Cancellable
closure="5">
Invoked when metadata is writed
+ line="2607">Invoked when metadata is writed
allow-none="1">
Data for @callback
+ line="2608">Data for @callback
@@ -11255,7 +11267,7 @@ the checksum @expected_checksum will be verified.
throws="1">
Complete a call to ostree_repo_write_metadata_async().
+ line="2641">Complete a call to ostree_repo_write_metadata_async().
@@ -11264,13 +11276,13 @@ the checksum @expected_checksum will be verified.
Repo
+ line="2643">Repo
Result
+ line="2644">Result
transfer-ownership="full">
Binary checksum value
+ line="2645">Binary checksum value
@@ -11291,7 +11303,7 @@ the checksum @expected_checksum will be verified.
throws="1">
Store the metadata object @variant; the provided @checksum is
+ line="2498">Store the metadata object @variant; the provided @checksum is
trusted.
@@ -11301,31 +11313,31 @@ trusted.
Repo
+ line="2500">Repo
Object type
+ line="2501">Object type
Store object with this ASCII SHA256 checksum
+ line="2502">Store object with this ASCII SHA256 checksum
Metadata object stream
+ line="2503">Metadata object stream
Length, may be 0 for unknown
+ line="2504">Length, may be 0 for unknown
allow-none="1">
Cancellable
+ line="2505">Cancellable
@@ -11344,7 +11356,7 @@ trusted.
throws="1">
Store the metadata object @variant; the provided @checksum is
+ line="2535">Store the metadata object @variant; the provided @checksum is
trusted.
@@ -11354,25 +11366,25 @@ trusted.
Repo
+ line="2537">Repo
Object type
+ line="2538">Object type
Store object with this ASCII SHA256 checksum
+ line="2539">Store object with this ASCII SHA256 checksum
Metadata object
+ line="2540">Metadata object
allow-none="1">
Cancellable
+ line="2541">Cancellable
@@ -11391,7 +11403,7 @@ trusted.
throws="1">
Write all metadata objects for @mtree to repo; the resulting
+ line="4189">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.
@@ -11402,13 +11414,13 @@ the @mtree represented.
Repo
+ line="4191">Repo
Mutable tree
+ line="4192">Mutable tree
transfer-ownership="full">
An #OstreeRepoFile representing @mtree's root.
+ line="4193">An #OstreeRepoFile representing @mtree's root.
allow-none="1">
Cancellable
+ line="4194">Cancellable
@@ -11437,20 +11449,20 @@ the @mtree represented.
throws="1">
Create an `OstreeContentWriter` that allows streaming output into
+ line="2863">Create an `OstreeContentWriter` that allows streaming output into
the repository.
A new writer, or %NULL on error
+ line="2877">A new writer, or %NULL on error
Repo,
+ line="2865">Repo,
allow-none="1">
Expected checksum (SHA-256 hex string)
+ line="2866">Expected checksum (SHA-256 hex string)
user id
+ line="2867">user id
group id
+ line="2868">group id
Unix file mode
+ line="2869">Unix file mode
Expected content length
+ line="2870">Expected content length
allow-none="1">
Extended attributes (GVariant type `(ayay)`)
+ line="2871">Extended attributes (GVariant type `(ayay)`)
@@ -11503,7 +11515,7 @@ the repository.
throws="1">
Synchronously create a file object from the provided content. This API
+ line="2776">Synchronously create a file object from the provided content. This API
is intended for small files where it is reasonable to buffer the entire
content in memory.
@@ -11513,14 +11525,14 @@ this function will not check for the presence of the object beforehand.
Checksum (as a hex string) of the committed file
+ line="2795">Checksum (as a hex string) of the committed file
repo
+ line="2778">repo
allow-none="1">
The expected checksum
+ line="2779">The expected checksum
User id
+ line="2780">User id
Group id
+ line="2781">Group id
File mode
+ line="2782">File mode
allow-none="1">
Extended attributes, GVariant of type (ayay)
+ line="2783">Extended attributes, GVariant of type (ayay)
File contents
+ line="2784">File contents
@@ -11576,7 +11588,7 @@ this function will not check for the presence of the object beforehand.
allow-none="1">
Cancellable
+ line="2785">Cancellable
@@ -11587,7 +11599,7 @@ this function will not check for the presence of the object beforehand.
throws="1">
Synchronously create a symlink object.
+ line="2822">Synchronously create a symlink object.
Unlike `ostree_repo_write_content()`, if @expected_checksum is provided,
this function will not check for the presence of the object beforehand.
@@ -11595,14 +11607,14 @@ this function will not check for the presence of the object beforehand.
Checksum (as a hex string) of the committed file
+ line="2838">Checksum (as a hex string) of the committed file
repo
+ line="2824">repo
allow-none="1">
The expected checksum
+ line="2825">The expected checksum
User id
+ line="2826">User id
Group id
+ line="2827">Group id
allow-none="1">
Extended attributes, GVariant of type (ayay)
+ line="2828">Extended attributes, GVariant of type (ayay)
Target of the symbolic link
+ line="2829">Target of the symbolic link
allow-none="1">
Cancellable
+ line="2830">Cancellable
@@ -11658,7 +11670,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="1259">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
@@ -11672,7 +11684,7 @@ use file-descriptor relative operations.
transfer-ownership="none">
Path to directory containing remote definitions. The default is `NULL`.
+ line="1292">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`.
@@ -11685,7 +11697,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="1274">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.
@@ -11697,7 +11709,7 @@ object via `ostree_sysroot_repo()`.
Emitted during a pull operation upon GPG verification (if enabled).
+ line="1310">Emitted during a pull operation upon GPG verification (if enabled).
Applications can connect to this signal to output the verification
results if desired.
@@ -11711,13 +11723,13 @@ is called.
checksum of the signed object
+ line="1313">checksum of the signed object
an #OstreeGpgVerifyResult
+ line="1314">an #OstreeGpgVerifyResult
@@ -12082,14 +12094,14 @@ ostree_repo_checkout_tree().
A new commit modifier.
+ line="4277">A new commit modifier.
Control options for filter
+ line="4272">Control options for filter
@@ -12102,7 +12114,7 @@ ostree_repo_checkout_tree().
destroy="3">
Function that can inspect individual files
+ line="4273">Function that can inspect individual files
allow-none="1">
User data
+ line="4274">User data
scope="async">
A #GDestroyNotify
+ line="4275">A #GDestroyNotify
@@ -12141,7 +12153,7 @@ ostree_repo_checkout_tree().
version="2017.13">
See the documentation for
+ line="4399">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.
@@ -12159,14 +12171,14 @@ should avoid further mutation of the cache.
Modifier
+ line="4401">Modifier
A hash table caching device,inode to checksums
+ line="4402">A hash table caching device,inode to checksums
@@ -12175,7 +12187,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="4349">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
@@ -12191,7 +12203,7 @@ policy wins.
An #OstreeRepoCommitModifier
+ line="4351">An #OstreeRepoCommitModifier
@@ -12201,7 +12213,7 @@ policy wins.
allow-none="1">
Policy to use for labeling
+ line="4352">Policy to use for labeling
@@ -12212,7 +12224,7 @@ policy wins.
throws="1">
In many cases, one wants to create a "derived" commit from base commit.
+ line="4371">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.
@@ -12223,20 +12235,20 @@ one to easily set up SELinux labeling from a base commit.
Commit modifier
+ line="4373">Commit modifier
OSTree repo containing @rev
+ line="4374">OSTree repo containing @rev
Find SELinux policy from this base commit
+ line="4375">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="4326">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.
@@ -12263,7 +12275,7 @@ repository.
An #OstreeRepoCommitModifier
+ line="4328">An #OstreeRepoCommitModifier
@@ -12274,14 +12286,14 @@ repository.
destroy="1">
Function to be invoked, should return extended attributes for path
+ line="4329">Function to be invoked, should return extended attributes for path
Destroy notification
+ line="4330">Destroy notification
allow-none="1">
Data for @callback:
+ line="4331">Data for @callback:
@@ -14538,14 +14550,14 @@ in bytes, counting only content objects.
An accessor object for SELinux policy in root located at @path
+ line="472">An accessor object for SELinux policy in root located at @path
Path to a root directory
+ line="468">Path to a root directory
allow-none="1">
Cancellable
+ line="469">Cancellable
@@ -14567,14 +14579,14 @@ in bytes, counting only content objects.
An accessor object for SELinux policy in root located at @rootfs_dfd
+ line="488">An accessor object for SELinux policy in root located at @rootfs_dfd
Directory fd for rootfs (will not be cloned)
+ line="484">Directory fd for rootfs (will not be cloned)
allow-none="1">
Cancellable
+ line="485">Cancellable
+
+
+
+
+
+ Extract the SELinux policy from a commit object via a partial checkout. This is useful
+for labeling derived content as separate commits.
+
+This function is the backend of `ostree_repo_commit_modifier_set_sepolicy_from_commit()`.
+
+
+ A new policy
+
+
+
+
+ The repo
+
+
+
+ ostree ref or checksum
+
+
+
+ Cancellable
@@ -14592,8 +14644,8 @@ in bytes, counting only content objects.
c:identifier="ostree_sepolicy_fscreatecon_cleanup">
Cleanup function for ostree_sepolicy_setfscreatecon().
-
+ line="713">Cleanup function for ostree_sepolicy_setfscreatecon().
+
@@ -14604,7 +14656,7 @@ in bytes, counting only content objects.
allow-none="1">
Not used, just in case you didn't infer that from the parameter name
+ line="715">Not used, just in case you didn't infer that from the parameter name
@@ -14612,11 +14664,11 @@ in bytes, counting only content objects.
-
+
Checksum of current policy
+ line="536">Checksum of current policy
@@ -14630,10 +14682,10 @@ in bytes, counting only content objects.
throws="1">
Store in @out_label the security context for the given @relpath and
+ line="550">Store in @out_label the security context for the given @relpath and
mode @unix_mode. If the policy does not specify a label, %NULL
will be returned.
-
+
@@ -14641,19 +14693,19 @@ will be returned.
Self
+ line="552">Self
Path
+ line="553">Path
Unix mode
+ line="554">Unix mode
allow-none="1">
Return location for security context
+ line="555">Return location for security context
allow-none="1">
Cancellable
+ line="556">Cancellable
-
+
Type of current policy
+ line="520">Type of current policy
@@ -14693,15 +14745,23 @@ will be returned.
-
+ This API should be considered deprecated, because it's supported for
+policy objects to be created from file-descriptor relative paths, which
+may not be globally accessible.
+
Path to rootfs
+ line="508">Path to rootfs
+ A SePolicy object
@@ -14711,8 +14771,8 @@ will be returned.
throws="1">
Reset the security context of @target based on the SELinux policy.
-
+ line="602">Reset the security context of @target based on the SELinux policy.
+
@@ -14720,13 +14780,13 @@ will be returned.
Self
+ line="604">Self
Path string to use for policy lookup
+ line="605">Path string to use for policy lookup
allow-none="1">
File attributes
+ line="606">File attributes
Physical path to target file
+ line="607">Physical path to target file
Flags controlling behavior
+ line="608">Flags controlling behavior
@@ -14759,7 +14819,7 @@ will be returned.
allow-none="1">
New label, or %NULL if unchanged
+ line="609">New label, or %NULL if unchanged
allow-none="1">
Cancellable
+ line="610">Cancellable
@@ -14776,7 +14836,7 @@ will be returned.
-
+
@@ -14784,19 +14844,19 @@ will be returned.
Policy
+ line="679">Policy
Use this path to determine a label
+ line="680">Use this path to determine a label
Used along with @path
+ line="681">Used along with @path
@@ -14816,7 +14876,7 @@ will be returned.
-
+
@@ -16482,7 +16542,7 @@ Locking: exclusive
throws="1">
Older version of ostree_sysroot_stage_tree_with_options().
+ line="2889">Older version of ostree_sysroot_stage_tree_with_options().
@@ -16491,7 +16551,7 @@ Locking: exclusive
Sysroot
+ line="2891">Sysroot
allow-none="1">
osname to use for merge deployment
+ line="2892">osname to use for merge deployment
Checksum to add
+ line="2893">Checksum to add
allow-none="1">
Origin to use for upgrades
+ line="2894">Origin to use for upgrades
allow-none="1">
Use this deployment for merge path
+ line="2895">Use this deployment for merge path
allow-none="1">
Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
+ line="2896">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
@@ -16544,7 +16604,7 @@ Locking: exclusive
transfer-ownership="full">
The new deployment path
+ line="2897">The new deployment path
allow-none="1">
Cancellable
+ line="2898">Cancellable
@@ -16564,7 +16624,7 @@ Locking: exclusive
throws="1">
Check out deployment tree with revision @revision, performing a 3
+ line="2842">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
@@ -16577,7 +16637,7 @@ ostree_sysroot_stage_tree() API instead.
Sysroot
+ line="2844">Sysroot
allow-none="1">
osname to use for merge deployment
+ line="2845">osname to use for merge deployment
Checksum to add
+ line="2846">Checksum to add
allow-none="1">
Origin to use for upgrades
+ line="2847">Origin to use for upgrades
allow-none="1">
Use this deployment for merge path
+ line="2848">Use this deployment for merge path
allow-none="1">
Options
+ line="2849">Options
@@ -16629,7 +16689,7 @@ ostree_sysroot_stage_tree() API instead.
transfer-ownership="full">
The new deployment path
+ line="2850">The new deployment path
allow-none="1">
Cancellable
+ line="2851">Cancellable
@@ -16648,7 +16708,7 @@ ostree_sysroot_stage_tree() API instead.
throws="1">
Entirely replace the kernel arguments of @deployment with the
+ line="3290">Entirely replace the kernel arguments of @deployment with the
values in @new_kargs.
@@ -16658,19 +16718,19 @@ values in @new_kargs.
Sysroot
+ line="3292">Sysroot
A deployment
+ line="3293">A deployment
Replace deployment's kernel arguments
+ line="3294">Replace deployment's kernel arguments
@@ -16681,7 +16741,7 @@ values in @new_kargs.
allow-none="1">
Cancellable
+ line="3295">Cancellable
@@ -16691,7 +16751,7 @@ values in @new_kargs.
throws="1">
By default, deployment directories are not mutable. This function
+ line="3339">By default, deployment directories are not mutable. This function
will allow making them temporarily mutable, for example to allow
layering additional non-OSTree content.
@@ -16702,19 +16762,19 @@ layering additional non-OSTree content.
Sysroot
+ line="3341">Sysroot
A deployment
+ line="3342">A deployment
Whether or not deployment's files can be changed
+ line="3343">Whether or not deployment's files can be changed
allow-none="1">
Cancellable
+ line="3344">Cancellable
@@ -17593,7 +17653,7 @@ later, instead.
throws="1">
Stage an overlay initrd to be used in an upcoming deployment. Returns a checksum which
+ line="2981">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.
@@ -17604,13 +17664,13 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option.
Sysroot
+ line="2983">Sysroot
File descriptor to overlay initrd
+ line="2984">File descriptor to overlay initrd
Overlay initrd checksum
+ line="2985">Overlay initrd checksum
Cancellable
+ line="2986">Cancellable
@@ -17639,7 +17699,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="3038">Older version of ostree_sysroot_stage_tree_with_options().
@@ -17648,7 +17708,7 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option.
Sysroot
+ line="3040">Sysroot
osname to use for merge deployment
+ line="3041">osname to use for merge deployment
Checksum to add
+ line="3042">Checksum to add
Origin to use for upgrades
+ line="3043">Origin to use for upgrades
Use this deployment for merge path
+ line="3044">Use this deployment for merge path
Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
+ line="3045">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
@@ -17701,7 +17761,7 @@ ostree_sysroot_stage_tree_with_options() via the `overlay_initrds` array option.
transfer-ownership="full">
The new deployment path
+ line="3046">The new deployment path
Cancellable
+ line="3047">Cancellable
@@ -17721,7 +17781,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="3072">Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS
shutdown time.
@@ -17731,7 +17791,7 @@ shutdown time.
Sysroot
+ line="3074">Sysroot
allow-none="1">
osname to use for merge deployment
+ line="3075">osname to use for merge deployment
Checksum to add
+ line="3076">Checksum to add
allow-none="1">
Origin to use for upgrades
+ line="3077">Origin to use for upgrades
allow-none="1">
Use this deployment for merge path
+ line="3078">Use this deployment for merge path
Options
+ line="3079">Options
@@ -17780,7 +17840,7 @@ shutdown time.
transfer-ownership="full">
The new deployment path
+ line="3080">The new deployment path
allow-none="1">
Cancellable
+ line="3081">Cancellable
@@ -17874,7 +17934,7 @@ acquired.
throws="1">
Older version of ostree_sysroot_write_deployments_with_options(). This
+ line="2225">Older version of ostree_sysroot_write_deployments_with_options(). This
version will perform post-deployment cleanup by default.
@@ -17884,13 +17944,13 @@ version will perform post-deployment cleanup by default.
Sysroot
+ line="2227">Sysroot
List of new deployments
+ line="2228">List of new deployments
@@ -17901,7 +17961,7 @@ version will perform post-deployment cleanup by default.
allow-none="1">
Cancellable
+ line="2229">Cancellable
@@ -17912,7 +17972,7 @@ version will perform post-deployment cleanup by default.
throws="1">
Assuming @new_deployments have already been deployed in place on disk via
+ line="2355">Assuming @new_deployments have already been deployed in place on disk via
ostree_sysroot_deploy_tree(), atomically update bootloader configuration. By
default, no post-transaction cleanup will be performed. You should invoke
ostree_sysroot_cleanup() at some point after the transaction, or specify
@@ -17926,13 +17986,13 @@ if for example you want to control pruning of the repository.
Sysroot
+ line="2357">Sysroot
List of new deployments
+ line="2358">List of new deployments
@@ -17940,7 +18000,7 @@ if for example you want to control pruning of the repository.
Options
+ line="2359">Options
@@ -17950,7 +18010,7 @@ if for example you want to control pruning of the repository.
allow-none="1">
Cancellable
+ line="2360">Cancellable
@@ -17960,7 +18020,7 @@ if for example you want to control pruning of the repository.
throws="1">
Immediately replace the origin file of the referenced @deployment
+ line="951">Immediately replace the origin file of the referenced @deployment
with the contents of @new_origin. If @new_origin is %NULL,
this function will write the current origin of @deployment.
@@ -17971,13 +18031,13 @@ this function will write the current origin of @deployment.
System root
+ line="953">System root
Deployment
+ line="954">Deployment
allow-none="1">
Origin content
+ line="955">Origin content
allow-none="1">
Cancellable
+ line="956">Cancellable
@@ -18571,49 +18631,12 @@ users who had been using zero before.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
A #OstreeSePolicy object can load the SELinux policy from a given
+ line="37">A #OstreeSePolicy object can load the SELinux policy from a given
root and perform labeling.
@@ -20932,6 +20955,24 @@ 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.
+
diff --git a/rust-bindings/rust/src/auto/mutable_tree.rs b/rust-bindings/rust/src/auto/mutable_tree.rs
index 30fd5ec8..10b42bad 100644
--- a/rust-bindings/rust/src/auto/mutable_tree.rs
+++ b/rust-bindings/rust/src/auto/mutable_tree.rs
@@ -36,6 +36,18 @@ impl MutableTree {
}
}
+ #[cfg(any(feature = "v2021_5", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_5")))]
+ #[doc(alias = "ostree_mutable_tree_new_from_commit")]
+ #[doc(alias = "new_from_commit")]
+ pub fn from_commit(repo: &Repo, rev: &str) -> Result {
+ unsafe {
+ let mut error = ptr::null_mut();
+ let ret = ffi::ostree_mutable_tree_new_from_commit(repo.to_glib_none().0, rev.to_glib_none().0, &mut error);
+ if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) }
+ }
+ }
+
#[cfg(any(feature = "v2018_7", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2018_7")))]
#[doc(alias = "ostree_mutable_tree_check_error")]
diff --git a/rust-bindings/rust/src/auto/se_policy.rs b/rust-bindings/rust/src/auto/se_policy.rs
index d6e93cd4..91148ac7 100644
--- a/rust-bindings/rust/src/auto/se_policy.rs
+++ b/rust-bindings/rust/src/auto/se_policy.rs
@@ -2,6 +2,7 @@
// from gir-files
// DO NOT EDIT
+use crate::Repo;
use crate::SePolicyRestoreconFlags;
use glib::object::IsA;
use glib::object::ObjectType as ObjectType_;
@@ -40,6 +41,16 @@ impl SePolicy {
}
}
+ #[doc(alias = "ostree_sepolicy_new_from_commit")]
+ #[doc(alias = "new_from_commit")]
+ pub fn from_commit>(repo: &Repo, rev: &str, cancellable: Option<&P>) -> Result {
+ unsafe {
+ let mut error = ptr::null_mut();
+ let ret = ffi::ostree_sepolicy_new_from_commit(repo.to_glib_none().0, rev.to_glib_none().0, cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
+ if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) }
+ }
+ }
+
#[cfg(any(feature = "v2016_5", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v2016_5")))]
#[doc(alias = "ostree_sepolicy_get_csum")]
diff --git a/rust-bindings/rust/sys/Cargo.toml b/rust-bindings/rust/sys/Cargo.toml
index a3225b13..4fcf130d 100644
--- a/rust-bindings/rust/sys/Cargo.toml
+++ b/rust-bindings/rust/sys/Cargo.toml
@@ -57,6 +57,7 @@ v2021_1 = ["v2020_8"]
v2021_2 = ["v2021_1"]
v2021_3 = ["v2021_2"]
v2021_4 = ["v2021_3"]
+v2021_5 = ["v2021_4"]
[lib]
name = "ostree_sys"
@@ -202,3 +203,6 @@ version = "2021.3"
[package.metadata.system-deps.ostree_1.v2021_4]
version = "2021.4"
+
+[package.metadata.system-deps.ostree_1.v2021_5]
+version = "2021.5"
diff --git a/rust-bindings/rust/sys/src/lib.rs b/rust-bindings/rust/sys/src/lib.rs
index a7b10279..e20189e4 100644
--- a/rust-bindings/rust/sys/src/lib.rs
+++ b/rust-bindings/rust/sys/src/lib.rs
@@ -834,16 +834,6 @@ impl ::std::fmt::Debug for OstreeSysrootWriteDeploymentsOpts {
}
}
-#[repr(C)]
-pub struct _OstreeTlsCertInteraction(c_void);
-
-pub type OstreeTlsCertInteraction = *mut _OstreeTlsCertInteraction;
-
-#[repr(C)]
-pub struct _OstreeTlsCertInteractionClass(c_void);
-
-pub type OstreeTlsCertInteractionClass = *mut _OstreeTlsCertInteractionClass;
-
// Classes
#[repr(C)]
pub struct OstreeAsyncProgress(c_void);
@@ -1342,6 +1332,9 @@ extern "C" {
#[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;
+ #[cfg(any(feature = "v2021_5", feature = "dox"))]
+ #[cfg_attr(feature = "dox", doc(cfg(feature = "v2021_5")))]
+ pub fn ostree_mutable_tree_new_from_commit(repo: *mut OstreeRepo, rev: *const c_char, error: *mut *mut glib::GError) -> *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;
@@ -1685,6 +1678,7 @@ extern "C" {
#[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_from_commit(repo: *mut OstreeRepo, rev: *const c_char, 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")))]