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 checksumobject 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 referenceDirectory 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 setRepo
+ 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">RepoName 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 failureSelf
+ 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 otherwiseMajor/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