diff --git a/rust-bindings/rust/Cargo.toml b/rust-bindings/rust/Cargo.toml
index 724ff4c5..7b339edb 100644
--- a/rust-bindings/rust/Cargo.toml
+++ b/rust-bindings/rust/Cargo.toml
@@ -81,4 +81,5 @@ v2018_7 = ["v2018_6", "ostree-sys/v2018_7"]
v2018_9 = ["v2018_7", "ostree-sys/v2018_9"]
v2019_2 = ["v2018_9", "ostree-sys/v2019_2"]
v2019_3 = ["v2019_2", "ostree-sys/v2019_3"]
-latest = ["v2019_3"]
+v2019_4 = ["v2019_3", "ostree-sys/v2019_4"]
+latest = ["v2019_4"]
diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir
index 12321251..5e6036e6 100644
--- a/rust-bindings/rust/gir-files/OSTree-1.0.gir
+++ b/rust-bindings/rust/gir-files/OSTree-1.0.gir
@@ -14,23 +14,56 @@ and/or use gtk-doc annotations. -->
c:identifier-prefixes="Ostree"
c:symbol-prefixes="ostree">
- A %NULL-terminated array of #OstreeCollectionRef instances, designed to
+ A %NULL-terminated array of #OstreeCollectionRef instances, designed to
be used with g_auto():
|[<!-- language="C" -->
g_auto(OstreeCollectionRefv) refs = NULL;
]|
+
- A %NULL-terminated array of #OstreeRepoFinderResult instances, designed to
+ A %NULL-terminated array of #OstreeRepoFinderResult instances, designed to
be used with g_auto():
|[<!-- language="C" -->
g_auto(OstreeRepoFinderResultv) results = NULL;
]|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- A new progress object
+ A new progress object
+
@@ -65,6 +103,7 @@ g_auto(OstreeRepoFinderResultv) results = NULL;
+
@@ -82,15 +121,20 @@ g_auto(OstreeRepoFinderResultv) results = NULL;
- Process any pending signals, ensuring the main context is cleared
+ Process any pending signals, ensuring the main context is cleared
of sources used by this object. Also ensures that no further
events will be queued.
+
- Self
+ Self
@@ -99,7 +143,9 @@ events will be queued.
c:identifier="ostree_async_progress_get"
version="2017.6"
introspectable="0">
- Get the values corresponding to zero or more keys from the
+ Get the values corresponding to zero or more keys from the
#OstreeAsyncProgress. Each key is specified in @... as the key name, followed
by a #GVariant format string, followed by the necessary arguments for that
format string, just as for g_variant_get(). After those arguments is the
@@ -124,16 +170,21 @@ ostree_async_progress_get (progress,
"refs", "@a{ss}", &refs_variant,
NULL);
]|
+
- an #OstreeAsyncProgress
+ an #OstreeAsyncProgress
- key name, format string, #GVariant return locations, …, followed by %NULL
+ key name, format string, #GVariant return locations, …, followed by %NULL
@@ -141,23 +192,31 @@ ostree_async_progress_get (progress,
- Get the human-readable status string from the #OstreeAsyncProgress. This
+ Get the human-readable status string from the #OstreeAsyncProgress. This
operation is thread-safe. The retuned value may be %NULL if no status is
set.
This is a convenience function to get the well-known `status` key.
+
- the current status, or %NULL if none is set
+ the current status, or %NULL if none is set
- an #OstreeAsyncProgress
+ an #OstreeAsyncProgress
+
@@ -172,6 +231,7 @@ This is a convenience function to get the well-known `status` key.
+
@@ -187,20 +247,29 @@ This is a convenience function to get the well-known `status` key.
- Look up a key in the #OstreeAsyncProgress and return the #GVariant associated
+ Look up a key in the #OstreeAsyncProgress and return the #GVariant associated
with it. The lookup is thread-safe.
+
- value for the given @key, or %NULL if
+ value for the given @key, or %NULL if
it was not set
- an #OstreeAsyncProgress
+ an #OstreeAsyncProgress
- a key to look up
+ a key to look up
@@ -209,7 +278,9 @@ with it. The lookup is thread-safe.
c:identifier="ostree_async_progress_set"
version="2017.6"
introspectable="0">
- Set the values for zero or more keys in the #OstreeAsyncProgress. Each key is
+ Set the values for zero or more keys in the #OstreeAsyncProgress. Each key is
specified in @... as the key name, followed by a #GVariant format string,
followed by the necessary arguments for that format string, just as for
g_variant_new(). After those arguments is the next key name. The varargs list
@@ -231,16 +302,21 @@ ostree_async_progress_set (progress,
"refs", "@a{ss}", g_variant_new_parsed ("@a{ss} {}"),
NULL);
]|
+
- an #OstreeAsyncProgress
+ an #OstreeAsyncProgress
- key name, format string, #GVariant parameters, …, followed by %NULL
+ key name, format string, #GVariant parameters, …, followed by %NULL
@@ -248,28 +324,36 @@ ostree_async_progress_set (progress,
- Set the human-readable status string for the #OstreeAsyncProgress. This
+ Set the human-readable status string for the #OstreeAsyncProgress. This
operation is thread-safe. %NULL may be passed to clear the status.
This is a convenience function to set the well-known `status` key.
+
- an #OstreeAsyncProgress
+ an #OstreeAsyncProgress
- new status string, or %NULL to clear the status
+ new status string, or %NULL to clear the status
+
@@ -287,6 +371,7 @@ This is a convenience function to set the well-known `status` key.
+
@@ -305,32 +390,43 @@ This is a convenience function to set the well-known `status` key.
- Assign a new @value to the given @key, replacing any existing value. The
+ Assign a new @value to the given @key, replacing any existing value. The
operation is thread-safe. @value may be a floating reference;
g_variant_ref_sink() will be called on it.
Any watchers of the #OstreeAsyncProgress will be notified of the change if
@value differs from the existing value for @key.
+
- an #OstreeAsyncProgress
+ an #OstreeAsyncProgress
- a key to set
+ a key to set
- the value to assign to @key
+ the value to assign to @key
- Emitted when @self has been changed.
+ Emitted when @self has been changed.
@@ -339,11 +435,13 @@ Any watchers of the #OstreeAsyncProgress will be notified of the change if
+
+
@@ -362,12 +460,78 @@ Any watchers of the #OstreeAsyncProgress will be notified of the change if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Whitespace separated set of features this libostree was configured with at build time.
+ Whitespace separated set of features this libostree was configured with at build time.
Consult the source code in configure.ac (or the CLI `ostree --version`) for examples.
+
+
+
- Copy of @self
+ Copy of @self
- Bootconfig to clone
+ Bootconfig to clone
+
@@ -409,6 +580,7 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
@@ -430,33 +602,45 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
- Initialize a bootconfig from the given file.
+ Initialize a bootconfig from the given file.
+
- Parser
+ Parser
- Directory fd
+ Directory fd
- File path
+ File path
- Cancellable
+ Cancellable
+
@@ -475,6 +659,7 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
@@ -496,6 +681,7 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
@@ -519,17 +705,21 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
+
+
+
@@ -548,6 +738,7 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
@@ -560,6 +751,7 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
@@ -581,8 +773,25 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -597,62 +806,131 @@ Consult the source code in configure.ac (or the CLI `ostree --version`) for exam
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Compile-time version checking. Evaluates to %TRUE if the version
+of ostree is equal or greater than the required one.
+
+
+
+ required year version
+
+
+ required release version
+
+
+
+
- GVariant type `s`. If this is added to a commit, `ostree_repo_pull()`
+ GVariant type `s`. If this is added to a commit, `ostree_repo_pull()`
will enforce that the commit was retrieved from a repository which has
the same collection ID. See `ostree_repo_set_collection_id()`.
This is most useful in concert with `OSTREE_COMMIT_META_KEY_REF_BINDING`,
as it more strongly binds the commit to the repository and branch.
+
- GVariant type `s`. This metadata key is used to display vendor's message
+ GVariant type `s`. This metadata key is used to display vendor's message
when an update stream for a particular branch ends. It usually provides
update instructions for the users.
+
- GVariant type `s`. Should contain a refspec defining a new target branch;
+ GVariant type `s`. Should contain a refspec defining a new target branch;
`ostree admin upgrade` and `OstreeSysrootUpgrader` will automatically initiate
a rebase upon encountering this metadata key.
+
- GVariant type `as`; each element is a branch name. If this is added to a
+ GVariant type `as`; each element is a branch name. If this is added to a
commit, `ostree_repo_pull()` will enforce that the commit was retrieved from
one of the branch names in this array. This prevents "sidegrade" attacks.
The rationale for having this support multiple branch names is that it helps
support a "promotion" model of taking a commit and moving it between development
and production branches.
+
- GVariant type `s`. This should hold a relatively short single line value
+ GVariant type `s`. This should hold a relatively short single line value
containing a human-readable "source" for a commit, intended to be displayed
near the origin ref. This is particularly useful for systems that inject
content into an OSTree commit from elsewhere - for example, generating from
@@ -661,22 +939,27 @@ names and their versions.
Try to keep this key short (e.g. < 80 characters) and human-readable; if you
desire machine readable data, consider injecting separate metadata keys.
+
- GVariant type `s`. This metadata key is used for version numbers. A freeform
+ GVariant type `s`. This metadata key is used for version numbers. A freeform
string; the intention is that systems using ostree do not interpret this
semantically as traditional package managers do.
This is the only ostree-defined metadata key that does not start with `ostree.`.
+
+
+
+
@@ -722,12 +1007,15 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
+
@@ -735,6 +1023,8 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -742,6 +1032,8 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -749,6 +1041,8 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -756,6 +1050,8 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -765,10 +1061,13 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
+
+
@@ -790,6 +1089,7 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -811,6 +1111,7 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -829,6 +1130,7 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -850,6 +1152,7 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -868,6 +1171,7 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -886,6 +1190,7 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
+
@@ -906,27 +1211,39 @@ This is the only ostree-defined metadata key that does not start with `ostree.`.
glib:type-name="OstreeCollectionRef"
glib:get-type="ostree_collection_ref_get_type"
c:symbol-prefix="collection_ref">
- A structure which globally uniquely identifies a ref as the tuple
+ A structure which globally uniquely identifies a ref as the tuple
(@collection_id, @ref_name). For backwards compatibility, @collection_id may be %NULL,
indicating a ref name which is not globally unique.
+
- collection ID which provided the ref, or %NULL if there
+ collection ID which provided the ref, or %NULL if there
is no associated collection
- ref name
+ ref name
- Create a new #OstreeCollectionRef containing (@collection_id, @ref_name). If
+ Create a new #OstreeCollectionRef containing (@collection_id, @ref_name). If
@collection_id is %NULL, this is equivalent to a plain ref name string (not a
refspec; no remote name is included), which can be used for non-P2P
operations.
+
- a new #OstreeCollectionRef
+ a new #OstreeCollectionRef
@@ -934,11 +1251,15 @@ operations.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a collection ID, or %NULL for a plain ref
+ a collection ID, or %NULL for a plain ref
- a ref name
+ a ref name
@@ -946,14 +1267,21 @@ operations.
- Create a copy of the given @ref.
+ Create a copy of the given @ref.
+
- a newly allocated copy of @ref
+ a newly allocated copy of @ref
- an #OstreeCollectionRef
+ an #OstreeCollectionRef
@@ -961,13 +1289,18 @@ operations.
- Free the given @ref.
+ Free the given @ref.
+
- an #OstreeCollectionRef
+ an #OstreeCollectionRef
@@ -975,18 +1308,25 @@ operations.
- Copy an array of #OstreeCollectionRefs, including deep copies of all its
+ Copy an array of #OstreeCollectionRefs, including deep copies of all its
elements. @refs must be %NULL-terminated; it may be empty, but must not be
%NULL.
+
- a newly allocated copy of @refs
+ a newly allocated copy of @refs
- %NULL-terminated array of #OstreeCollectionRefs
+ %NULL-terminated array of #OstreeCollectionRefs
@@ -996,19 +1336,28 @@ elements. @refs must be %NULL-terminated; it may be empty, but must not be
- Compare @ref1 and @ref2 and return %TRUE if they have the same collection ID and
+ Compare @ref1 and @ref2 and return %TRUE if they have the same collection ID and
ref name, and %FALSE otherwise. Both @ref1 and @ref2 must be non-%NULL.
+
- %TRUE if @ref1 and @ref2 are equal, %FALSE otherwise
+ %TRUE if @ref1 and @ref2 are equal, %FALSE otherwise
- an #OstreeCollectionRef
+ an #OstreeCollectionRef
- another #OstreeCollectionRef
+ another #OstreeCollectionRef
@@ -1016,14 +1365,19 @@ ref name, and %FALSE otherwise. Both @ref1 and @ref2 must be non-%NULL.
- Free the given array of @refs, including freeing all its elements. @refs
+ Free the given array of @refs, including freeing all its elements. @refs
must be %NULL-terminated; it may be empty, but must not be %NULL.
+
- an array of #OstreeCollectionRefs
+ an array of #OstreeCollectionRefs
@@ -1033,23 +1387,40 @@ must be %NULL-terminated; it may be empty, but must not be %NULL.
- Hash the given @ref. This function is suitable for use with #GHashTable.
+ Hash the given @ref. This function is suitable for use with #GHashTable.
@ref must be non-%NULL.
+
- hash value for @ref
+ hash value for @ref
- an #OstreeCollectionRef
+ an #OstreeCollectionRef
+
+
+
+
+
+
+
+
glib:type-name="OstreeDeployment"
glib:get-type="ostree_deployment_get_type">
+
@@ -1084,6 +1456,7 @@ must be %NULL-terminated; it may be empty, but must not be %NULL.
+
@@ -1099,7 +1472,9 @@ must be %NULL-terminated; it may be empty, but must not be %NULL.
- The intention of an origin file is primarily describe the "inputs" that
+ The intention of an origin file is primarily describe the "inputs" that
resulted in a deployment, and it's commonly used to derive the new state. For
example, a key value (in pure libostree mode) is the "refspec". However,
libostree (or other applications) may want to store "transient" state that
@@ -1113,12 +1488,15 @@ software.
Additionally, this function will remove the `origin/unlocked` and
`origin/override-commit` members; these should be considered transient state
that should have been under an explicit group.
+
- An origin
+ An origin
@@ -1126,6 +1504,7 @@ that should have been under an explicit group.
+
@@ -1137,48 +1516,66 @@ that should have been under an explicit group.
+
- New deep copy of @self
+ New deep copy of @self
- Deployment
+ Deployment
+
- %TRUE if deployments have the same osname, csum, and deployserial
+ %TRUE if deployments have the same osname, csum, and deployserial
- A deployment
+ A deployment
- A deployment
+ A deployment
+
- Boot configuration
+ Boot configuration
- Deployment
+ Deployment
+
@@ -1190,6 +1587,7 @@ that should have been under an explicit group.
+
@@ -1200,6 +1598,7 @@ that should have been under an explicit group.
+
@@ -1211,6 +1610,7 @@ that should have been under an explicit group.
+
@@ -1221,6 +1621,7 @@ that should have been under an explicit group.
+
@@ -1231,34 +1632,47 @@ that should have been under an explicit group.
+
- Origin
+ Origin
- Deployment
+ Deployment
- Note this function only returns a *relative* path - if you want to
+ 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
+ Path to deployment root directory, relative to sysroot
- A deployment
+ A deployment
+
@@ -1271,6 +1685,7 @@ or concatenate it with the full ostree_sysroot_get_path().
+
@@ -1284,14 +1699,21 @@ or concatenate it with the full ostree_sysroot_get_path().
- See ostree_sysroot_deployment_set_pinned().
+ See ostree_sysroot_deployment_set_pinned().
+
- `TRUE` if deployment will not be subject to GC
+ `TRUE` if deployment will not be subject to GC
- Deployment
+ Deployment
@@ -1299,19 +1721,25 @@ or concatenate it with the full ostree_sysroot_get_path().
+
- `TRUE` if deployment should be "finalized" at shutdown time
+ `TRUE` if deployment should be "finalized" at shutdown time
- Deployment
+ Deployment
+
@@ -1326,6 +1754,7 @@ or concatenate it with the full ostree_sysroot_get_path().
+
@@ -1339,6 +1768,7 @@ or concatenate it with the full ostree_sysroot_get_path().
+
@@ -1352,6 +1782,7 @@ or concatenate it with the full ostree_sysroot_get_path().
+
@@ -1367,6 +1798,7 @@ or concatenate it with the full ostree_sysroot_get_path().
+
@@ -1381,9 +1813,12 @@ or concatenate it with the full ostree_sysroot_get_path().
- An extensible options structure controlling diff dirs. Make sure
+ An extensible options structure controlling diff dirs. Make sure
that owner_uid/gid is set to -1 when not used. This is used by
ostree_diff_dirs_with_options().
+
@@ -1394,22 +1829,23 @@ ostree_diff_dirs_with_options().
-
+
-
+
-
+
+
glib:type-name="OstreeDiffItem"
glib:get-type="ostree_diff_item_get_type"
c:symbol-prefix="diff_item">
+
@@ -1444,6 +1881,7 @@ ostree_diff_dirs_with_options().
+
@@ -1454,6 +1892,7 @@ ostree_diff_dirs_with_options().
+
@@ -1464,104 +1903,172 @@ ostree_diff_dirs_with_options().
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Errors returned by signature creation and verification operations in OSTree.
+ Errors returned by signature creation and verification operations in OSTree.
These may be returned by any API which creates or verifies signatures.
+
- A signature was expected, but not found.
+ A signature was expected, but not found.
- A signature was malformed.
+ A signature was malformed.
- A signature was found, but was created with a key not in the configured keyrings.
+ A signature was found, but was created with a key not in the configured keyrings.
- Signature attributes available from an #OstreeGpgVerifyResult.
+ Signature attributes available from an #OstreeGpgVerifyResult.
The attribute's #GVariantType is shown in brackets.
+
- [#G_VARIANT_TYPE_BOOLEAN] Is the signature valid?
+ [#G_VARIANT_TYPE_BOOLEAN] Is the signature valid?
- [#G_VARIANT_TYPE_BOOLEAN] Has the signature expired?
+ [#G_VARIANT_TYPE_BOOLEAN] Has the signature expired?
- [#G_VARIANT_TYPE_BOOLEAN] Has the signing key expired?
+ [#G_VARIANT_TYPE_BOOLEAN] Has the signing key expired?
- [#G_VARIANT_TYPE_BOOLEAN] Has the signing key been revoked?
+ [#G_VARIANT_TYPE_BOOLEAN] Has the signing key been revoked?
- [#G_VARIANT_TYPE_BOOLEAN] Is the signing key missing?
+ [#G_VARIANT_TYPE_BOOLEAN] Is the signing key missing?
- [#G_VARIANT_TYPE_STRING] Fingerprint of the signing key
+ [#G_VARIANT_TYPE_STRING] Fingerprint of the signing key
- [#G_VARIANT_TYPE_INT64] Signature creation Unix timestamp
+ [#G_VARIANT_TYPE_INT64] Signature creation Unix timestamp
- [#G_VARIANT_TYPE_INT64] Signature expiration Unix timestamp (0 if no
+ [#G_VARIANT_TYPE_INT64] Signature expiration Unix timestamp (0 if no
expiration)
- [#G_VARIANT_TYPE_STRING] Name of the public key algorithm used to create
+ [#G_VARIANT_TYPE_STRING] Name of the public key algorithm used to create
the signature
- [#G_VARIANT_TYPE_STRING] Name of the hash algorithm used to create the
+ [#G_VARIANT_TYPE_STRING] Name of the hash algorithm used to create the
signature
- [#G_VARIANT_TYPE_STRING] The name of the signing key's primary user
+ [#G_VARIANT_TYPE_STRING] The name of the signing key's primary user
- [#G_VARIANT_TYPE_STRING] The email address of the signing key's primary
+ [#G_VARIANT_TYPE_STRING] The email address of the signing key's primary
user
- [#G_VARIANT_TYPE_STRING] Fingerprint of the signing key's primary key
+ [#G_VARIANT_TYPE_STRING] Fingerprint of the signing key's primary key
(will be the same as OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT if the
the signature is already from the primary key rather than a subkey,
and will be the empty string if the key is missing.)
@@ -1569,13 +2076,17 @@ The attribute's #GVariantType is shown in brackets.
- [#G_VARIANT_TYPE_INT64] Key expiration Unix timestamp (0 if no
+ [#G_VARIANT_TYPE_INT64] Key expiration Unix timestamp (0 if no
expiration or if the key is missing)
- [#G_VARIANT_TYPE_INT64] Key expiration Unix timestamp of the signing key's
+ [#G_VARIANT_TYPE_INT64] Key expiration Unix timestamp of the signing key's
primary key (will be the same as OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP
if the signing key is the primary key and 0 if no expiration or if the key
is missing)
@@ -1583,16 +2094,22 @@ The attribute's #GVariantType is shown in brackets.
- Formatting flags for ostree_gpg_verify_result_describe(). Currently
+ Formatting flags for ostree_gpg_verify_result_describe(). Currently
there's only one possible output format, but this enumeration allows
for future variations.
+
- Use the default output format
+ Use the default output format
+
- Similar to ostree_gpg_verify_result_describe() but takes a #GVariant of
+ Similar to ostree_gpg_verify_result_describe() but takes a #GVariant of
all attributes for a GPG signature instead of an #OstreeGpgVerifyResult
and signature index.
The @variant <emphasis>MUST</emphasis> have been created by
ostree_gpg_verify_result_get_all().
+
- a #GVariant from ostree_gpg_verify_result_get_all()
+ a #GVariant from ostree_gpg_verify_result_get_all()
- a #GString to hold the description
+ a #GString to hold the description
- optional line prefix string
+ optional line prefix string
- flags to adjust the description format
+ flags to adjust the description format
@@ -1637,34 +2165,50 @@ ostree_gpg_verify_result_get_all().
- Counts all the signatures in @result.
+ Counts all the signatures in @result.
+
- signature count
+ signature count
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- Counts only the valid signatures in @result.
+ Counts only the valid signatures in @result.
+
- valid signature count
+ valid signature count
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- Appends a brief, human-readable description of the GPG signature at
+ Appends a brief, human-readable description of the GPG signature at
@signature_index in @result to the @output_buffer. The description
spans multiple lines. A @line_prefix string, if given, will precede
each line of the description.
@@ -1675,59 +2219,81 @@ format. Currently must be 0.
It is a programmer error to request an invalid @signature_index. Use
ostree_gpg_verify_result_count_all() to find the number of signatures in
@result.
+
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- which signature to describe
+ which signature to describe
- a #GString to hold the description
+ a #GString to hold the description
- optional line prefix string
+ optional line prefix string
- flags to adjust the description format
+ flags to adjust the description format
- Builds a #GVariant tuple of requested attributes for the GPG signature at
+ Builds a #GVariant tuple of requested attributes for the GPG signature at
@signature_index in @result. See the #OstreeGpgSignatureAttr description
for the #GVariantType of each available attribute.
It is a programmer error to request an invalid #OstreeGpgSignatureAttr or
an invalid @signature_index. Use ostree_gpg_verify_result_count_all() to
find the number of signatures in @result.
+
- a new, floating, #GVariant tuple
+ a new, floating, #GVariant tuple
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- which signature to get attributes from
+ which signature to get attributes from
- Array of requested attributes
+ Array of requested attributes
@@ -1735,13 +2301,17 @@ find the number of signatures in @result.
- Length of the @attrs array
+ Length of the @attrs array
- Builds a #GVariant tuple of all available attributes for the GPG signature
+ Builds a #GVariant tuple of all available attributes for the GPG signature
at @signature_index in @result.
The child values in the returned #GVariant tuple are ordered to match the
@@ -1764,45 +2334,63 @@ available attribute.
It is a programmer error to request an invalid @signature_index. Use
ostree_gpg_verify_result_count_all() to find the number of signatures in
@result.
+
- a new, floating, #GVariant tuple
+ a new, floating, #GVariant tuple
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- which signature to get attributes from
+ which signature to get attributes from
- Searches @result for a signature signed by @key_id. If a match is found,
+ Searches @result for a signature signed by @key_id. If a match is found,
the function returns %TRUE and sets @out_signature_index so that further
signature details can be obtained through ostree_gpg_verify_result_get().
If no match is found, the function returns %FALSE and leaves
@out_signature_index unchanged.
+
- %TRUE on success, %FALSE on failure
+ %TRUE on success, %FALSE on failure
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- a GPG key ID or fingerprint
+ a GPG key ID or fingerprint
- return location for the index of the signature
+ return location for the index of the signature
signed by @key_id, or %NULL
@@ -1812,12 +2400,17 @@ If no match is found, the function returns %FALSE and leaves
c:identifier="ostree_gpg_verify_result_require_valid_signature"
version="2016.6"
throws="1">
- Checks if the result contains at least one signature from the
+ Checks if the result contains at least one signature from the
trusted keyring. You can call this function immediately after
ostree_repo_verify_summary() or ostree_repo_verify_commit_ext() -
it will handle the %NULL @result and filled @error too.
+
- %TRUE if @result was not %NULL and had at least one
+ %TRUE if @result was not %NULL and had at least one
signature from trusted keyring, otherwise %FALSE
@@ -1826,29 +2419,318 @@ signature from trusted keyring, otherwise %FALSE
transfer-ownership="none"
nullable="1"
allow-none="1">
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Appends @arg which is in the form of key=value pair to the hash table kargs->table
+ Appends @arg which is in the form of key=value pair to the hash table kargs->table
(appends to the value list if key is already in the hash table)
and appends key to kargs->order if it is not in the hash table already.
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- key or key/value pair to be added
+ key or key/value pair to be added
@@ -1856,18 +2738,25 @@ and appends key to kargs->order if it is not in the hash table already.
- Appends each value in @argv to the corresponding value array and
+ Appends each value in @argv to the corresponding value array and
appends key to kargs->order if it is not in the hash table already.
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- an array of key=value argument pairs
+ an array of key=value argument pairs
@@ -1875,21 +2764,30 @@ appends key to kargs->order if it is not in the hash table already.
- Appends each argument that does not have one of the @prefixes as prefix to the @kargs
+ Appends each argument that does not have one of the @prefixes as prefix to the @kargs
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- an array of key=value argument pairs
+ an array of key=value argument pairs
- an array of prefix strings
+ an array of prefix strings
@@ -1898,22 +2796,31 @@ appends key to kargs->order if it is not in the hash table already.
c:identifier="ostree_kernel_args_append_proc_cmdline"
version="2019.3"
throws="1">
- Appends the command line arguments in the file "/proc/cmdline"
+ Appends the command line arguments in the file "/proc/cmdline"
that does not have "BOOT_IMAGE=" and "initrd=" as prefixes to the @kargs
+
- %TRUE on success, %FALSE on failure
+ %TRUE on success, %FALSE on failure
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- optional GCancellable object, NULL to ignore
+ optional GCancellable object, NULL to ignore
@@ -1921,7 +2828,9 @@ that does not have "BOOT_IMAGE=" and "initrd=" as prefixes to the @kargs
- There are few scenarios being handled for deletion:
+ There are few scenarios being handled for deletion:
1: for input arg with a single key(i.e without = for split),
the key/value pair will be deleted if there is only
@@ -1938,16 +2847,21 @@ that does not have "BOOT_IMAGE=" and "initrd=" as prefixes to the @kargs
Returns: %TRUE on success, %FALSE on failure
Since: 2019.3
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- key or key/value pair for deletion
+ key or key/value pair for deletion
@@ -1956,23 +2870,32 @@ that does not have "BOOT_IMAGE=" and "initrd=" as prefixes to the @kargs
c:identifier="ostree_kernel_args_delete_key_entry"
version="2019.3"
throws="1">
- This function removes the key entry from the hashtable
+ This function removes the key entry from the hashtable
as well from the order pointer array inside kargs
Note: since both table and order inside kernel args
are with free function, no extra free functions are
being called as they are done automatically by GLib
+
- %TRUE on success, %FALSE on failure
+ %TRUE on success, %FALSE on failure
- an OstreeKernelArgs instance
+ an OstreeKernelArgs instance
- the key to remove
+ the key to remove
@@ -1980,13 +2903,18 @@ being called as they are done automatically by GLib
- Frees the kargs structure
+ Frees the kargs structure
+
- An OstreeKernelArgs that represents kernel arguments
+ An OstreeKernelArgs that represents kernel arguments
@@ -1994,21 +2922,30 @@ being called as they are done automatically by GLib
- Finds and returns the last element of value array
+ Finds and returns the last element of value array
corresponding to the @key in @kargs hash table. Note that the application
will be terminated if the @key is found but the value array is empty
+
- NULL if @key is not found in the @kargs hash table,
+ NULL if @key is not found in the @kargs hash table,
otherwise returns last element of value array corresponding to @key
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- a key to look for in @kargs hash table
+ a key to look for in @kargs hash table
@@ -2017,7 +2954,9 @@ otherwise returns last element of value array corresponding to @key
c:identifier="ostree_kernel_args_new_replace"
version="2019.3"
throws="1">
- This function implements the basic logic behind key/value pair
+ This function implements the basic logic behind key/value pair
replacement. Do note that the arg need to be properly formatted
When replacing key with exact one value, the arg can be in
@@ -2032,8 +2971,11 @@ key=old_val=new_val. Unless there is a special case where
there is an empty value associated with the key, then
key=new_val will work because old_val is empty. The empty
val will be swapped with the new_val in that case
+
- %TRUE on success, %FALSE on failure (and in some other instances such as:
+ %TRUE on success, %FALSE on failure (and in some other instances such as:
1. key not found in @kargs
2. old value not found when @arg is in the form of key=old_val=new_val
3. multiple old values found when @arg is in the form of key=old_val)
@@ -2041,11 +2983,15 @@ val will be swapped with the new_val in that case
- OstreeKernelArgs instance
+ OstreeKernelArgs instance
- a string argument
+ a string argument
@@ -2053,17 +2999,24 @@ val will be swapped with the new_val in that case
- Parses @options by separating it by whitespaces and appends each argument to @kargs
+ Parses @options by separating it by whitespaces and appends each argument to @kargs
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- a string representing command line arguments
+ a string representing command line arguments
@@ -2071,19 +3024,26 @@ val will be swapped with the new_val in that case
- Finds and replaces the old key if @arg is already in the hash table,
+ Finds and replaces the old key if @arg is already in the hash table,
otherwise adds @arg as new key and split_keyeq (arg) as value.
Note that when replacing old key value pair, the old values are freed.
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- key or key/value pair for replacement
+ key or key/value pair for replacement
@@ -2091,19 +3051,26 @@ Note that when replacing old key value pair, the old values are freed.
- Finds and replaces each non-null arguments of @argv in the hash table,
+ Finds and replaces each non-null arguments of @argv in the hash table,
otherwise adds individual arg as new key and split_keyeq (arg) as value.
Note that when replacing old key value pair, the old values are freed.
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- an array of key or key/value pairs
+ an array of key or key/value pairs
@@ -2111,19 +3078,26 @@ Note that when replacing old key value pair, the old values are freed.
- Finds and replaces the old key if @arg is already in the hash table,
+ Finds and replaces the old key if @arg is already in the hash table,
otherwise adds @arg as new key and split_keyeq (arg) as value.
Note that when replacing old key, the old values are freed.
+
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
- key or key/value pair for replacement
+ key or key/value pair for replacement
@@ -2131,21 +3105,28 @@ Note that when replacing old key, the old values are freed.
- Extracts all key value pairs in @kargs and appends to a temporary
+ Extracts all key value pairs in @kargs and appends to a temporary
GString in forms of "key=value" or "key" if value is NULL separated
by a single whitespace, and returns the temporary string with the
GString wrapper freed
Note: the application will be terminated if one of the values array
in @kargs is NULL
+
- a string of "key=value" pairs or "key" if value is NULL,
+ a string of "key=value" pairs or "key" if value is NULL,
separated by single whitespaces
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
@@ -2153,18 +3134,25 @@ separated by single whitespaces
- Extracts all key value pairs in @kargs and appends to a temporary
+ Extracts all key value pairs in @kargs and appends to a temporary
array in forms of "key=value" or "key" if value is NULL, and returns
the temporary array with the GPtrArray wrapper freed
+
- an array of "key=value" pairs or "key" if value is NULL
+ an array of "key=value" pairs or "key" if value is NULL
- a OstreeKernelArgs instance
+ a OstreeKernelArgs instance
@@ -2172,7 +3160,10 @@ the temporary array with the GPtrArray wrapper freed
- Frees the OstreeKernelArgs structure pointed by *loc
+ Frees the OstreeKernelArgs structure pointed by *loc
+
@@ -2181,7 +3172,9 @@ the temporary array with the GPtrArray wrapper freed
transfer-ownership="none"
nullable="1"
allow-none="1">
- Address of an OstreeKernelArgs pointer
+ Address of an OstreeKernelArgs pointer
@@ -2190,15 +3183,22 @@ the temporary array with the GPtrArray wrapper freed
c:identifier="ostree_kernel_args_from_string"
version="2019.3"
introspectable="0">
- Initializes a new OstreeKernelArgs then parses and appends @options
+ Initializes a new OstreeKernelArgs then parses and appends @options
to the empty OstreeKernelArgs
+
- newly allocated #OstreeKernelArgs with @options appended
+ newly allocated #OstreeKernelArgs with @options appended
- a string representing command line arguments
+ a string representing command line arguments
@@ -2207,14 +3207,101 @@ to the empty OstreeKernelArgs
c:identifier="ostree_kernel_args_new"
version="2019.3"
introspectable="0">
- Initializes a new OstreeKernelArgs structure and returns it
+ Initializes a new OstreeKernelArgs structure and returns it
+
- A newly created #OstreeKernelArgs for kernel arguments
+ A newly created #OstreeKernelArgs for kernel arguments
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2225,11 +3312,14 @@ to the empty OstreeKernelArgs
+
+
@@ -2237,6 +3327,8 @@ to the empty OstreeKernelArgs
+
@@ -2244,6 +3336,8 @@ to the empty OstreeKernelArgs
+
@@ -2251,6 +3345,8 @@ to the empty OstreeKernelArgs
+
@@ -2258,6 +3354,8 @@ to the empty OstreeKernelArgs
+
@@ -2267,11 +3365,16 @@ to the empty OstreeKernelArgs
+
- Zlib decompression
+ Zlib decompression
+
+
@@ -2279,8 +3382,10 @@ to the empty OstreeKernelArgs
+
+
@@ -2288,23 +3393,31 @@ to the empty OstreeKernelArgs
- Default limit for maximum permitted size in bytes of metadata objects fetched
+ Default limit for maximum permitted size in bytes of metadata objects fetched
over HTTP (including repo/config files, refs, and commit/dirtree/dirmeta
objects). This is an arbitrary number intended to mitigate disk space
exhaustion attacks.
+
- This variable is no longer meaningful, it is kept only for compatibility.
+ This variable is no longer meaningful, it is kept only for compatibility.
+
- GVariant type `s`. This key can be used in the repo metadata which is stored
+ 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
@@ -2319,8 +3432,36 @@ 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.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
glib:type-name="OstreeMutableTree"
glib:get-type="ostree_mutable_tree_get_type"
glib:type-struct="MutableTreeClass">
- Private instance structure.
+ Private instance structure.
+
+
- A new tree
+ A new tree
- Creates a new OstreeMutableTree with the contents taken from the given repo
+ Creates a new OstreeMutableTree with the contents taken from the given repo
and checksums. The data will be loaded from the repo lazily as needed.
+
- A new tree
+ A new tree
- The repo which contains the objects refered by the checksums.
+ The repo which contains the objects refered by the checksums.
- dirtree checksum
+ dirtree checksum
- dirmeta checksum
+ dirmeta checksum
@@ -2363,17 +3521,24 @@ and checksums. The data will be loaded from the repo lazily as needed.
c:identifier="ostree_mutable_tree_check_error"
version="2018.7"
throws="1">
- In some cases, a tree may be in a "lazy" state that loads
+ In some cases, a tree may be in a "lazy" state that loads
data in the background; if an error occurred during a non-throwing
API call, it will have been cached. This function checks for a
cached error. The tree remains in error state.
+
- `TRUE` on success
+ `TRUE` on success
- Tree
+ Tree
@@ -2381,25 +3546,34 @@ cached error. The tree remains in error state.
- Returns the subdirectory of self with filename @name, creating an empty one
+ Returns the subdirectory of self with filename @name, creating an empty one
it if it doesn't exist.
+
- Tree
+ Tree
- Name of subdirectory of self to retrieve/creates
+ Name of subdirectory of self to retrieve/creates
- the subdirectory
+ the subdirectory
@@ -2407,31 +3581,42 @@ it if it doesn't exist.
- Create all parent trees necessary for the given @split_path to
+ Create all parent trees necessary for the given @split_path to
exist.
+
- Tree
+ Tree
- File path components
+ File path components
- SHA256 checksum for metadata
+ SHA256 checksum for metadata
- The parent tree
+ The parent tree
@@ -2439,13 +3624,18 @@ exist.
- Merges @self with the tree given by @contents_checksum and
+ Merges @self with the tree given by @contents_checksum and
@metadata_checksum, but only if it's possible without writing new objects to
the @repo. We can do this if either @self is empty, the tree given by
@contents_checksum is empty or if both trees already have the same
@contents_checksum.
+
- @TRUE if merge was successful, @FALSE if it was not possible.
+ @TRUE if merge was successful, @FALSE if it was not possible.
This function enables optimisations when composing trees. The provided
checksums are not loaded or checked when this function is called. Instead
@@ -2469,6 +3659,7 @@ the contents will be loaded only when needed.
+
@@ -2479,8 +3670,11 @@ the contents will be loaded only when needed.
+
- All children files (the value is a checksum)
+ All children files (the value is a checksum)
@@ -2494,6 +3688,7 @@ the contents will be loaded only when needed.
+
@@ -2505,8 +3700,11 @@ the contents will be loaded only when needed.
+
- All children directories
+ All children directories
@@ -2521,30 +3719,39 @@ the contents will be loaded only when needed.
+
- Tree
+ Tree
- name
+ name
- checksum
+ checksum
- subdirectory
+ subdirectory
@@ -2553,21 +3760,30 @@ the contents will be loaded only when needed.
c:identifier="ostree_mutable_tree_remove"
version="2018.9"
throws="1">
- Remove the file or subdirectory named @name from the mutable tree @self.
+ Remove the file or subdirectory named @name from the mutable tree @self.
+
- Tree
+ Tree
- Name of file or subdirectory to remove
+ Name of file or subdirectory to remove
- If @FALSE, an error will be thrown if @name does not exist in the tree
+ If @FALSE, an error will be thrown if @name does not exist in the tree
@@ -2575,6 +3791,7 @@ the contents will be loaded only when needed.
+
@@ -2592,6 +3809,7 @@ the contents will be loaded only when needed.
+
@@ -2606,6 +3824,7 @@ the contents will be loaded only when needed.
+
@@ -2619,31 +3838,42 @@ the contents will be loaded only when needed.
- Traverse @start number of elements starting from @split_path; the
+ Traverse @start number of elements starting from @split_path; the
child will be returned in @out_subdir.
+
- Tree
+ Tree
- Split pathname
+ Split pathname
- Descend from this number of elements in @split_path
+ Descend from this number of elements in @split_path
- Target parent
+ Target parent
@@ -2652,11 +3882,13 @@ child will be returned in @out_subdir.
+
+
@@ -2664,62 +3896,160 @@ child will be returned in @out_subdir.
+
+
+
+
+ An #OstreeObjectType
+
+
+
- The name of a `GKeyFile` group for data that should not
+ The name of a `GKeyFile` group for data that should not
be carried across upgrades. For more information,
see ostree_deployment_origin_remove_transient_state().
+
- Enumeration for core object types; %OSTREE_OBJECT_TYPE_FILE is for
+ Enumeration for core object types; %OSTREE_OBJECT_TYPE_FILE is for
content, the other types are metadata.
+
- Content; regular file, symbolic link
+ Content; regular file, symbolic link
- List of children (trees or files), and metadata
+ List of children (trees or files), and metadata
- Directory metadata
+ Directory metadata
- Toplevel object, refers to tree and dirmeta for root
+ Toplevel object, refers to tree and dirmeta for root
- Toplevel object, refers to a deleted commit
+ Toplevel object, refers to a deleted commit
- Detached metadata for a commit
+ Detached metadata for a commit
- Symlink to a .file given its checksum on the payload only.
+ Symlink to a .file given its checksum on the payload only.
- ostree release version component (e.g. 2 if %OSTREE_VERSION is 2017.2)
+ ostree release version component (e.g. 2 if %OSTREE_VERSION is 2017.2)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- The name of a ref which is used to store metadata for the entire repository,
+ 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.
@@ -2734,6 +4064,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.
+
- This represents the configuration for a single remote repository. Currently,
+ This represents the configuration for a single remote repository. Currently,
remotes can only be passed around as (reference counted) opaque handles. In
future, more API may be added to create and interrogate them.
+
- Get the human-readable name of the remote. This is what the user configured,
+ Get the human-readable name of the remote. This is what the user configured,
if the remote was explicitly configured; and will otherwise be a stable,
arbitrary, string.
+
- remote’s name
+ remote’s name
- an #OstreeRemote
+ an #OstreeRemote
@@ -2765,40 +4106,59 @@ arbitrary, string.
- Get the URL from the remote.
+ Get the URL from the remote.
+
- the remote's URL
+ the remote's URL
- an #OstreeRemote
+ an #OstreeRemote
- Increase the reference count on the given @remote.
+ Increase the reference count on the given @remote.
+
- a copy of @remote, for convenience
+ a copy of @remote, for convenience
- an #OstreeRemote
+ an #OstreeRemote
- Decrease the reference count on the given @remote and free it if the
+ Decrease the reference count on the given @remote and free it if the
reference count reaches 0.
+
- an #OstreeRemote
+ an #OstreeRemote
@@ -2811,43 +4171,62 @@ reference count reaches 0.
glib:type-name="OstreeRepo"
glib:get-type="ostree_repo_get_type">
+
- An accessor object for an OSTree repository located at @path
+ An accessor object for an OSTree repository located at @path
- Path to a repository
+ Path to a repository
- If the current working directory appears to be an OSTree
+ 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
/ostree/repo.
+
- An accessor object for an OSTree repository located at /ostree/repo
+ An accessor object for an OSTree repository located at /ostree/repo
- Creates a new #OstreeRepo instance, taking the system root path explicitly
+ 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.
+ An accessor object for the OSTree repository located at @repo_path.
- Path to a repository
+ Path to a repository
- Path to the system root
+ Path to the system root
@@ -2856,7 +4235,9 @@ instead of assuming "/".
c:identifier="ostree_repo_create_at"
version="2017.10"
throws="1">
- This is a file-descriptor relative version of ostree_repo_create().
+ 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.
@@ -2868,32 +4249,45 @@ the mode or configuration (`repo/config`) of an existing repo.
The @options dict may contain:
- collection-id: s: Set as collection ID in repo/config (Since 2017.9)
+
- A new OSTree repository reference
+ A new OSTree repository reference
- Directory fd
+ Directory fd
- Path
+ Path
- The mode to store the repository in
+ The mode to store the repository in
- a{sv}: See below for accepted keys
+ a{sv}: See below for accepted keys
- Cancellable
+ Cancellable
@@ -2901,19 +4295,24 @@ The @options dict may contain:
+
- a repo mode as a string
+ a repo mode as a string
- the corresponding #OstreeRepoMode
+ the corresponding #OstreeRepoMode
@@ -2922,20 +4321,29 @@ The @options dict may contain:
c:identifier="ostree_repo_open_at"
version="2017.10"
throws="1">
- This combines ostree_repo_new() (but using fd-relative access) with
+ 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
+ An accessor object for an OSTree repository located at @dfd + @path
- Directory fd
+ Directory fd
- Path
+ Path
- Convenient "changed" callback for use with
+ Convenient "changed" callback for use with
ostree_async_progress_new_and_connect() when pulling from a remote
repository.
@@ -2960,19 +4370,24 @@ 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.
+
- Async progress
+ Async progress
- User data
+ User data
@@ -2980,11 +4395,16 @@ and @user_data is ignored.
- This hash table is a mapping from #GVariant which can be accessed
+ 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.
+
- A new hash table
+ A new hash table
@@ -2993,10 +4413,15 @@ a similar #GVariant or and array of them, listing the parents of the key.
- This hash table is a set of #GVariant which can be accessed via
+ This hash table is a set of #GVariant which can be accessed via
ostree_object_name_deserialize().
+
- A new hash table
+ A new hash table
@@ -3006,10 +4431,15 @@ ostree_object_name_deserialize().
- Gets all the commits that a certain object belongs to, as recorded
+ 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.
+
- An array of checksums for
+ An array of checksums for
the commits the key belongs to.
@@ -3030,23 +4460,30 @@ the commits the key belongs to.
- Abort the active transaction; any staged objects and ref changes will be
+ Abort the active transaction; any staged objects and ref changes will be
discarded. You *must* invoke this if you have chosen not to invoke
ostree_repo_commit_transaction(). Calling this function when not in a
transaction will do nothing and return successfully.
+
- An #OstreeRepo
+ An #OstreeRepo
- Cancellable
+ Cancellable
@@ -3054,17 +4491,24 @@ transaction will do nothing and return successfully.
- Add a GPG signature to a summary file.
+ Add a GPG signature to a summary file.
+
- Self
+ Self
- NULL-terminated array of GPG keys.
+ NULL-terminated array of GPG keys.
@@ -3073,14 +4517,18 @@ transaction will do nothing and return successfully.
transfer-ownership="none"
nullable="1"
allow-none="1">
- GPG home directory, or %NULL
+ GPG home directory, or %NULL
- A #GCancellable
+ A #GCancellable
@@ -3088,28 +4536,39 @@ transaction will do nothing and return successfully.
- Append a GPG signature to a commit.
+ Append a GPG signature to a commit.
+
- Self
+ Self
- SHA256 of given commit to sign
+ SHA256 of given commit to sign
- Signature data
+ Signature data
- A #GCancellable
+ A #GCancellable
@@ -3118,7 +4577,9 @@ transaction will do nothing and return successfully.
c:identifier="ostree_repo_checkout_at"
version="2016.8"
throws="1">
- Similar to ostree_repo_checkout_tree(), but uses directory-relative
+ 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.
@@ -3129,39 +4590,52 @@ 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.
+
- Repo
+ Repo
- Options
+ Options
- Directory FD for destination
+ Directory FD for destination
- Directory for destination
+ Directory for destination
- Checksum for commit
+ Checksum for commit
- Cancellable
+ Cancellable
@@ -3169,22 +4643,29 @@ cache.
- Call this after finishing a succession of checkout operations; it
+ Call this after finishing a succession of checkout operations; it
will delete any currently-unused uncompressed objects from the
cache.
+
- Repo
+ Repo
- Cancellable
+ Cancellable
@@ -3192,44 +4673,61 @@ cache.
- Check out @source into @destination, which must live on the
+ 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.
+
- Repo
+ Repo
- Options controlling all files
+ Options controlling all files
- Whether or not to overwrite files
+ Whether or not to overwrite files
- Place tree here
+ Place tree here
- Source tree
+ Source tree
- Source info
+ Source info
- Cancellable
+ Cancellable
@@ -3238,7 +4736,9 @@ files are checked out.
c:identifier="ostree_repo_checkout_tree_at"
introspectable="0"
throws="1">
- Similar to ostree_repo_checkout_tree(), but uses directory-relative
+ 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.
@@ -3248,39 +4748,52 @@ default is not to use the repository-internal uncompressed objects
cache.
This function is deprecated. Use ostree_repo_checkout_at() instead.
+
- Repo
+ Repo
- Options
+ Options
- Directory FD for destination
+ Directory FD for destination
- Directory for destination
+ Directory for destination
- Checksum for commit
+ Checksum for commit
- Cancellable
+ Cancellable
@@ -3288,7 +4801,9 @@ This function is deprecated. Use ostree_repo_checkout_at() instead.
- Complete the transaction. Any refs set with
+ Complete the transaction. Any refs set with
ostree_repo_transaction_set_ref() or
ostree_repo_transaction_set_refspec() will be written out.
@@ -3298,12 +4813,15 @@ have terminated before this function is invoked.
Locking: Releases `shared` lock acquired by `ostree_repo_prepare_transaction()`
Multithreading: This function is *not* MT safe; only one transaction can be
active at a time.
+
- An #OstreeRepo
+ An #OstreeRepo
transfer-ownership="none"
optional="1"
allow-none="1">
- A set of statistics of things
+ A set of statistics of things
that happened during this transaction.
@@ -3321,14 +4841,19 @@ that happened during this transaction.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
+
- A newly-allocated copy of the repository config
+ A newly-allocated copy of the repository config
@@ -3338,7 +4863,9 @@ that happened during this transaction.
- Create the underlying structure on disk for the repository, and call
+ 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
@@ -3352,23 +4879,30 @@ Since 2017.9, "existing repository" is defined by the existence of an
This function predates ostree_repo_create_at(). It is an error to call
this function on a repository initialized via ostree_repo_open_at().
+
- An #OstreeRepo
+ An #OstreeRepo
- The mode to store the repository in
+ The mode to store the repository in
- Cancellable
+ Cancellable
@@ -3376,49 +4910,69 @@ this function on a repository initialized via ostree_repo_open_at().
- Remove the object of type @objtype with checksum @sha256
+ 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.
+
- Repo
+ Repo
- Object type
+ Object type
- Checksum
+ Checksum
- Cancellable
+ Cancellable
- Check whether two opened repositories are the same on disk: if their root
+ 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
+ %TRUE if @a and @b are the same repository on disk, %FALSE otherwise
- an #OstreeRepo
+ an #OstreeRepo
- an #OstreeRepo
+ an #OstreeRepo
@@ -3427,37 +4981,50 @@ ostree_repo_open() not being called on them yet), %FALSE will be returned.
c:identifier="ostree_repo_export_tree_to_archive"
introspectable="0"
throws="1">
- Import an archive file @archive into the repository, and write its
+ Import an archive file @archive into the repository, and write its
file structure to @mtree.
+
- An #OstreeRepo
+ An #OstreeRepo
- Options controlling conversion
+ Options controlling conversion
- An #OstreeRepoFile for the base directory
+ An #OstreeRepoFile for the base directory
- A `struct archive`, but specified as void to avoid a dependency on the libarchive headers
+ A `struct archive`, but specified as void to avoid a dependency on the libarchive headers
- Cancellable
+ Cancellable
@@ -3465,7 +5032,9 @@ file structure to @mtree.
- Find reachable remote URIs which claim to provide any of the given named
+ 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
@@ -3505,16 +5074,21 @@ this is not guaranteed).
GPG verification of commits will be used unconditionally.
This will use the thread-default #GMainContext, but will not iterate it.
+
- an #OstreeRepo
+ an #OstreeRepo
- non-empty array of collection–ref pairs to find remotes for
+ non-empty array of collection–ref pairs to find remotes for
@@ -3523,11 +5097,15 @@ This will use the thread-default #GMainContext, but will not iterate it.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a GVariant `a{sv}` with an extensible set of flags
+ a GVariant `a{sv}` with an extensible set of flags
- non-empty array of
+ non-empty array of
#OstreeRepoFinder instances to use, or %NULL to use the system defaults
@@ -3537,7 +5115,9 @@ This will use the thread-default #GMainContext, but will not iterate it.
transfer-ownership="none"
nullable="1"
allow-none="1">
- an #OstreeAsyncProgress to update with the operation’s
+ an #OstreeAsyncProgress to update with the operation’s
progress, or %NULL
@@ -3545,7 +5125,9 @@ This will use the thread-default #GMainContext, but will not iterate it.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
allow-none="1"
scope="async"
closure="6">
- asynchronous completion callback
+ asynchronous completion callback
- data to pass to @callback
+ data to pass to @callback
@@ -3570,10 +5156,15 @@ This will use the thread-default #GMainContext, but will not iterate it.
c:identifier="ostree_repo_find_remotes_finish"
version="2018.6"
throws="1">
- Finish an asynchronous pull operation started with
+ Finish an asynchronous pull operation started with
ostree_repo_find_remotes_async().
+
- a potentially empty array
+ a potentially empty array
of #OstreeRepoFinderResults, followed by a %NULL terminator element; or
%NULL on error
@@ -3582,11 +5173,15 @@ ostree_repo_find_remotes_async().
- an #OstreeRepo
+ an #OstreeRepo
- the asynchronous result
+ the asynchronous result
@@ -3595,30 +5190,41 @@ ostree_repo_find_remotes_async().
c:identifier="ostree_repo_fsck_object"
version="2017.15"
throws="1">
- Verify consistency of the object; this performs checks only relevant to the
+ 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.
+
- Repo
+ Repo
- Object type
+ Object type
- Checksum
+ Checksum
- Cancellable
+ Cancellable
@@ -3626,15 +5232,22 @@ traverse metadata objects for example.
- Get the bootloader configured. See the documentation for the
+ Get the bootloader configured. See the documentation for the
"sysroot.bootloader" config key.
+
- bootloader configuration for the sysroot
+ bootloader configuration for the sysroot
- an #OstreeRepo
+ an #OstreeRepo
@@ -3642,21 +5255,31 @@ traverse metadata objects for example.
- Get the collection ID of this repository. See [collection IDs][collection-ids].
+ Get the collection ID of this repository. See [collection IDs][collection-ids].
+
- collection ID for the repository
+ collection ID for the repository
- an #OstreeRepo
+ an #OstreeRepo
+
- The repository configuration; do not modify
+ The repository configuration; do not modify
@@ -3668,10 +5291,15 @@ traverse metadata objects for example.
- Get the set of default repo finders configured. See the documentation for
+ Get the set of default repo finders configured. See the documentation for
the "core.default-repo-finders" config key.
+
-
+
%NULL-terminated array of strings.
@@ -3679,7 +5307,9 @@ the "core.default-repo-finders" config key.
- an #OstreeRepo
+ an #OstreeRepo
@@ -3687,31 +5317,45 @@ the "core.default-repo-finders" config key.
- In some cases it's useful for applications to access the repository
+ 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).
+
- File descriptor for repository root - owned by @self
+ File descriptor for repository root - owned by @self
- Repo
+ Repo
- For more information see ostree_repo_set_disable_fsync().
+ For more information see ostree_repo_set_disable_fsync().
+
- Whether or not fsync() is enabled for this repo.
+ Whether or not fsync() is enabled for this repo.
- An #OstreeRepo
+ An #OstreeRepo
@@ -3720,29 +5364,39 @@ repository (to see whether a ref was written).
c:identifier="ostree_repo_get_min_free_space_bytes"
version="2018.9"
throws="1">
- Determine the number of bytes of free disk space that are reserved according
+ 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.
+
- %TRUE on success, %FALSE otherwise.
+ %TRUE on success, %FALSE otherwise.
- Repo
+ Repo
- Location to store the result
+ Location to store the result
+
@@ -3753,30 +5407,44 @@ core.min-free-space-percent repo config options.
- Before this function can be used, ostree_repo_init() must have been
+ Before this function can be used, ostree_repo_init() must have been
called.
+
- Parent repository, or %NULL if none
+ Parent repository, or %NULL if none
- Repo
+ Repo
- Note that since the introduction of ostree_repo_open_at(), this function may
+ 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
+ Path to repo
- Repo
+ Repo
@@ -3785,37 +5453,52 @@ that API. In general, you should avoid use of this API.
c:identifier="ostree_repo_get_remote_boolean_option"
version="2016.5"
throws="1">
- OSTree remotes are represented by keyfile groups, formatted like:
+ 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
error is returned, @out_value will be set to %FALSE.
+
- %TRUE on success, otherwise %FALSE with @error set
+ %TRUE on success, otherwise %FALSE with @error set
- A OstreeRepo
+ A OstreeRepo
- Name
+ Name
- Option
+ Option
- Value returned if @option_name is not present
+ Value returned if @option_name is not present
- location to store the result.
+ location to store the result.
@@ -3824,33 +5507,46 @@ error is returned, @out_value will be set to %FALSE.
c:identifier="ostree_repo_get_remote_list_option"
version="2016.5"
throws="1">
- OSTree remotes are represented by keyfile groups, formatted like:
+ 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
to %NULL.
+
- %TRUE on success, otherwise %FALSE with @error set
+ %TRUE on success, otherwise %FALSE with @error set
- A OstreeRepo
+ A OstreeRepo
- Name
+ Name
- Option
+ Option
- location to store the list
+ location to store the list
of strings. The list should be freed with
g_strfreev().
@@ -3863,39 +5559,54 @@ to %NULL.
c:identifier="ostree_repo_get_remote_option"
version="2016.5"
throws="1">
- OSTree remotes are represented by keyfile groups, formatted like:
+ 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.
+
- %TRUE on success, otherwise %FALSE with @error set
+ %TRUE on success, otherwise %FALSE with @error set
- A OstreeRepo
+ A OstreeRepo
- Name
+ Name
- Option
+ Option
- Value returned if @option_name is not present
+ Value returned if @option_name is not present
- Return location for value
+ Return location for value
@@ -3904,54 +5615,73 @@ option name. If an error is returned, @out_value will be set to %NULL.
c:identifier="ostree_repo_gpg_verify_data"
version="2016.6"
throws="1">
- Verify @signatures for @data using GPG keys in the keyring for
+ 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
+ an #OstreeGpgVerifyResult, or %NULL on error
- Repository
+ Repository
- Name of remote
+ Name of remote
- Data as a #GBytes
+ Data as a #GBytes
- Signatures as a #GBytes
+ Signatures as a #GBytes
- Path to directory GPG keyrings; overrides built-in default if given
+ Path to directory GPG keyrings; overrides built-in default if given
- Path to additional keyring file (not a directory)
+ Path to additional keyring file (not a directory)
- Cancellable
+ Cancellable
@@ -3959,55 +5689,77 @@ the verifications using GPG keys in the keyrings of all remotes.
- Set @out_have_object to %TRUE if @self contains the given object;
+ Set @out_have_object to %TRUE if @self contains the given object;
%FALSE otherwise.
+
- %FALSE if an unexpected error occurred, %TRUE otherwise
+ %FALSE if an unexpected error occurred, %TRUE otherwise
- Repo
+ Repo
- Object type
+ Object type
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- %TRUE if repository contains object
+ %TRUE if repository contains object
- Cancellable
+ Cancellable
- Calculate a hash value for the given open repository, suitable for use when
+ 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.
This function does no I/O.
+
- hash value for the #OstreeRepo
+ hash value for the #OstreeRepo
- an #OstreeRepo
+ an #OstreeRepo
@@ -4016,18 +5768,25 @@ This function does no I/O.
c:identifier="ostree_repo_import_archive_to_mtree"
introspectable="0"
throws="1">
- Import an archive file @archive into the repository, and write its
+ Import an archive file @archive into the repository, and write its
file structure to @mtree.
+
- An #OstreeRepo
+ An #OstreeRepo
- Options structure, ensure this is zeroed, then set specific variables
+ Options structure, ensure this is zeroed, then set specific variables
@@ -4035,18 +5794,24 @@ file structure to @mtree.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Really this is "struct archive*"
+ Really this is "struct archive*"
- The #OstreeMutableTree to write to
+ The #OstreeMutableTree to write to
- Optional commit modifier
+ Optional commit modifier
@@ -4054,7 +5819,9 @@ file structure to @mtree.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -4062,37 +5829,50 @@ file structure to @mtree.
- Copy object named by @objtype and @checksum into @self from the
+ 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.
Otherwise, a copy will be performed.
+
- Destination repo
+ Destination repo
- Source repo
+ Source repo
- Object type
+ Object type
- checksum
+ checksum
- Cancellable
+ Cancellable
@@ -4101,53 +5881,73 @@ Otherwise, a copy will be performed.
c:identifier="ostree_repo_import_object_from_with_trust"
version="2016.5"
throws="1">
- Copy object named by @objtype and @checksum into @self from the
+ 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.
Otherwise, a copy will be performed.
+
- Destination repo
+ Destination repo
- Source repo
+ Source repo
- Object type
+ Object type
- checksum
+ checksum
- If %TRUE, assume the source repo is valid and trusted
+ If %TRUE, assume the source repo is valid and trusted
- Cancellable
+ Cancellable
+
- %TRUE if this repository is the root-owned system global repository
+ %TRUE if this repository is the root-owned system global repository
- Repository
+ Repository
@@ -4155,15 +5955,22 @@ Otherwise, a copy will be performed.
- Returns whether the repository is writable by the current user.
+ 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
+ %TRUE if this repository is writable
- Repo
+ Repo
@@ -4172,7 +5979,9 @@ If the repository is not writable, the @error indicates why.
c:identifier="ostree_repo_list_collection_refs"
version="2018.6"
throws="1">
- List all local, mirrored, and remote refs, mapping them to the commit
+ List all local, mirrored, and remote refs, mapping them to the commit
checksums they currently point to in @out_all_refs. If @match_collection_id
is specified, the results will be limited to those with an equal collection
ID.
@@ -4186,27 +5995,36 @@ 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`.
+
- %TRUE on success, %FALSE otherwise
+ %TRUE on success, %FALSE otherwise
- Repo
+ Repo
- If non-%NULL, only list refs from this collection
+ If non-%NULL, only list refs from this collection
-
+
Mapping from collection–ref to checksum
@@ -4214,7 +6032,9 @@ If you want to exclude refs from `refs/remotes`, use
- Options controlling listing behavior
+ Options controlling listing behavior
@@ -4222,7 +6042,9 @@ If you want to exclude refs from `refs/remotes`, use
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -4230,26 +6052,37 @@ If you want to exclude refs from `refs/remotes`, use
- This function synchronously enumerates all commit objects starting
+ 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
+ %TRUE on success, %FALSE on error, and @error will be set
- Repo
+ Repo
- List commits starting with this checksum
+ List commits starting with this checksum
-
+
Map of serialized commit name to variant data
@@ -4260,7 +6093,9 @@ Map of serialized commit name to variant data
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -4268,21 +6103,30 @@ Map of serialized commit name to variant data
- This function synchronously enumerates all objects in the
+ 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
+ %TRUE on success, %FALSE on error, and @error will be set
- Repo
+ Repo
- Flags controlling enumeration
+ Flags controlling enumeration
@@ -4290,7 +6134,9 @@ to #GVariant values of type %OSTREE_REPO_LIST_OBJECTS_VARIANT_TYPE.
direction="out"
caller-allocates="0"
transfer-ownership="container">
-
+
Map of serialized object name to variant data
@@ -4301,39 +6147,50 @@ Map of serialized object name to variant data
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- If @refspec_prefix is %NULL, list all local and remote refspecs,
+ If @refspec_prefix is %NULL, list all local and remote refspecs,
with their current values in @out_all_refs. Otherwise, only list
refspecs which have @refspec_prefix as a prefix.
@out_all_refs will be returned as a mapping from refspecs (including the
remote name) to checksums. If @refspec_prefix is non-%NULL, it will be
removed as a prefix from the hash table keys.
+
- Repo
+ Repo
- Only list refs which match this prefix
+ Only list refs which match this prefix
-
+
Mapping from refspec to checksum
@@ -4344,7 +6201,9 @@ removed as a prefix from the hash table keys.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -4353,33 +6212,42 @@ removed as a prefix from the hash table keys.
c:identifier="ostree_repo_list_refs_ext"
version="2016.4"
throws="1">
- If @refspec_prefix is %NULL, list all local and remote refspecs,
+ If @refspec_prefix is %NULL, list all local and remote refspecs,
with their current values in @out_all_refs. Otherwise, only list
refspecs which have @refspec_prefix as a prefix.
@out_all_refs will be returned as a mapping from refspecs (including the
remote name) to checksums. Differently from ostree_repo_list_refs(), the
@refspec_prefix will not be removed from the refspecs in the hash table.
+
- Repo
+ Repo
- Only list refs which match this prefix
+ Only list refs which match this prefix
-
+
Mapping from refspec to checksum
@@ -4387,7 +6255,9 @@ remote name) to checksums. Differently from ostree_repo_list_refs(), the
- Options controlling listing behavior
+ Options controlling listing behavior
@@ -4395,7 +6265,9 @@ remote name) to checksums. Differently from ostree_repo_list_refs(), the
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -4403,21 +6275,28 @@ remote name) to checksums. Differently from ostree_repo_list_refs(), the
- This function synchronously enumerates all static deltas in the
+ This function synchronously enumerates all static deltas in the
repository, returning its result in @out_deltas.
+
- Repo
+ Repo
- String name of deltas (checksum-checksum.delta)
+ String name of deltas (checksum-checksum.delta)
@@ -4426,7 +6305,9 @@ repository, returning its result in @out_deltas.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -4434,20 +6315,27 @@ repository, returning its result in @out_deltas.
- A version of ostree_repo_load_variant() specialized to commits,
+ 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.
+
- Repo
+ Repo
- Commit checksum
+ Commit checksum
transfer-ownership="full"
optional="1"
allow-none="1">
- Commit
+ Commit
transfer-ownership="full"
optional="1"
allow-none="1">
- Commit state
+ Commit state
- Load content object, decomposing it into three parts: the actual
+ Load content object, decomposing it into three parts: the actual
content (for regular files), the metadata, and extended attributes.
+
- Repo
+ Repo
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
nullable="1"
optional="1"
allow-none="1">
- File content
+ File content
nullable="1"
optional="1"
allow-none="1">
- File information
+ File information
nullable="1"
optional="1"
allow-none="1">
- Extended attributes
+ Extended attributes
- Cancellable
+ Cancellable
@@ -4527,43 +6434,58 @@ content (for regular files), the metadata, and extended attributes.
- Load object as a stream; useful when copying objects between
+ Load object as a stream; useful when copying objects between
repositories.
+
- Repo
+ Repo
- Object type
+ Object type
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- Stream for object
+ Stream for object
- Length of @out_input
+ Length of @out_input
- Cancellable
+ Cancellable
@@ -4571,29 +6493,40 @@ repositories.
- Load the metadata object @sha256 of type @objtype, storing the
+ Load the metadata object @sha256 of type @objtype, storing the
result in @out_variant.
+
- Repo
+ Repo
- Expected object type
+ Expected object type
- Checksum string
+ Checksum string
- Metadata object
+ Metadata object
@@ -4601,30 +6534,41 @@ result in @out_variant.
- Attempt to load the metadata object @sha256 of type @objtype if it
+ Attempt to load the metadata object @sha256 of type @objtype if it
exists, storing the result in @out_variant. If it doesn't exist,
%NULL is returned.
+
- Repo
+ Repo
- Object type
+ Object type
- ASCII checksum
+ ASCII checksum
- Metadata
+ Metadata
@@ -4633,31 +6577,86 @@ exists, storing the result in @out_variant. If it doesn't exist,
c:identifier="ostree_repo_mark_commit_partial"
version="2017.15"
throws="1">
- Commits in "partial" state do not have all their child objects written. This
-occurs in various situations, such as during a pull, but also if a "subpath"
-pull is used, as well as "commit only" pulls.
+ Commits in the "partial" state do not have all their child objects
+written. This occurs in various situations, such as during a pull,
+but also if a "subpath" pull is used, as well as "commit only"
+pulls.
This function is used by ostree_repo_pull_with_options(); you
should use this if you are implementing a different type of transport.
+
- Repo
+ Repo
- Commit SHA-256
+ Commit SHA-256
- Whether or not this commit is partial
+ Whether or not this commit is partial
+
+ Allows the setting of a reason code for a partial commit. Presently
+it only supports setting reason bitmask to
+OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL, or
+OSTREE_REPO_COMMIT_STATE_NORMAL. This will allow successive ostree
+fsck operations to exit properly with an error code if the
+repository has been truncated as a result of fsck trying to repair
+it.
+
+
+
+
+
+
+ Repo
+
+
+
+ Commit SHA-256
+
+
+
+ Whether or not this commit is partial
+
+
+
+ Reason bitmask for partial commit
+
+
+
+
+
@@ -4676,7 +6675,9 @@ should use this if you are implementing a different type of transport.
- Starts or resumes a transaction. In order to write to a repo, you
+ Starts or resumes a transaction. In order to write to a repo, you
need to start a transaction. You can complete the transaction with
ostree_repo_commit_transaction(), or abort the transaction with
ostree_repo_abort_transaction().
@@ -4693,12 +6694,15 @@ transaction.
Locking: Acquires a `shared` lock; release via commit or abort
Multithreading: This function is *not* MT safe; only one transaction can be
active at a time.
+
- An #OstreeRepo
+ An #OstreeRepo
transfer-ownership="full"
optional="1"
allow-none="1">
- Whether this transaction
+ Whether this transaction
is resuming from a previous one. This is a legacy state, now OSTree
pulls use per-commit `state/.commitpartial` files.
@@ -4716,13 +6722,17 @@ pulls use per-commit `state/.commitpartial` files.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- Delete content from the repository. By default, this function will
+ Delete content from the repository. By default, this function will
only delete "orphaned" objects not referred to by any commit. This
can happen during a local commit operation, when we have written
content objects but not saved the commit referencing them.
@@ -4737,48 +6747,63 @@ statistics on objects that would be deleted, without actually
deleting them.
Locking: exclusive
+
- Repo
+ Repo
- Options controlling prune process
+ Options controlling prune process
- Stop traversal after this many iterations (-1 for unlimited)
+ Stop traversal after this many iterations (-1 for unlimited)
- Number of objects found
+ Number of objects found
- Number of objects deleted
+ Number of objects deleted
- Storage size in bytes of objects deleted
+ Storage size in bytes of objects deleted
- Cancellable
+ Cancellable
@@ -4787,7 +6812,9 @@ Locking: exclusive
c:identifier="ostree_repo_prune_from_reachable"
version="2017.1"
throws="1">
- Delete content from the repository. This function is the "backend"
+ Delete content from the repository. This function is the "backend"
half of the higher level ostree_repo_prune(). To use this function,
you determine the root set yourself, and this function finds all other
unreferenced objects and deletes them.
@@ -4800,44 +6827,57 @@ 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
+
- Repo
+ Repo
- Options controlling prune process
+ Options controlling prune process
- Number of objects found
+ Number of objects found
- Number of objects deleted
+ Number of objects deleted
- Storage size in bytes of objects deleted
+ Storage size in bytes of objects deleted
- Cancellable
+ Cancellable
@@ -4845,24 +6885,31 @@ Locking: exclusive
- Prune static deltas, if COMMIT is specified then delete static delta files only
+ Prune static deltas, if COMMIT is specified then delete static delta files only
targeting that commit; otherwise any static delta of non existing commits are
deleted.
Locking: exclusive
+
- Repo
+ Repo
- ASCII SHA256 checksum for commit, or %NULL for each
+ ASCII SHA256 checksum for commit, or %NULL for each
non existing commit
@@ -4870,13 +6917,17 @@ non existing commit
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- Connect to the remote repository, fetching the specified set of
+ 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.
@@ -4892,43 +6943,56 @@ 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.
+
- Repo
+ Repo
- Name of remote
+ Name of remote
- Optional list of refs; if %NULL, fetch all configured refs
+ Optional list of refs; if %NULL, fetch all configured refs
- Options controlling fetch behavior
+ Options controlling fetch behavior
- Progress
+ Progress
- Cancellable
+ Cancellable
@@ -4936,7 +7000,9 @@ one around this call.
- Pull refs from multiple remotes which have been found using
+ 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
@@ -4978,16 +7044,21 @@ 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
+
- an #OstreeRepo
+ an #OstreeRepo
- %NULL-terminated array of remotes to
+ %NULL-terminated array of remotes to
pull from, including the refs to pull from each
@@ -4997,14 +7068,18 @@ The following @options are currently defined:
transfer-ownership="none"
nullable="1"
allow-none="1">
- A GVariant `a{sv}` with an extensible set of flags
+ A GVariant `a{sv}` with an extensible set of flags
- an #OstreeAsyncProgress to update with the operation’s
+ an #OstreeAsyncProgress to update with the operation’s
progress, or %NULL
@@ -5012,7 +7087,9 @@ The following @options are currently defined:
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
- asynchronous completion callback
+ asynchronous completion callback
- data to pass to @callback
+ data to pass to @callback
@@ -5037,19 +7118,28 @@ The following @options are currently defined:
c:identifier="ostree_repo_pull_from_remotes_finish"
version="2018.6"
throws="1">
- Finish an asynchronous pull operation started with
+ Finish an asynchronous pull operation started with
ostree_repo_pull_from_remotes_async().
+
- %TRUE on success, %FALSE otherwise
+ %TRUE on success, %FALSE otherwise
- an #OstreeRepo
+ an #OstreeRepo
- the asynchronous result
+ the asynchronous result
@@ -5057,49 +7147,66 @@ ostree_repo_pull_from_remotes_async().
- This is similar to ostree_repo_pull(), but only fetches a single
+ This is similar to ostree_repo_pull(), but only fetches a single
subpath.
+
- Repo
+ Repo
- Name of remote
+ Name of remote
- Subdirectory path
+ Subdirectory path
- Optional list of refs; if %NULL, fetch all configured refs
+ Optional list of refs; if %NULL, fetch all configured refs
- Options controlling fetch behavior
+ Options controlling fetch behavior
- Progress
+ Progress
- Cancellable
+ Cancellable
@@ -5107,7 +7214,9 @@ subpath.
- Like ostree_repo_pull(), but supports an extensible set of flags.
+ Like ostree_repo_pull(), but supports an extensible set of flags.
The following are currently defined:
* refs (as): Array of string refs
@@ -5144,34 +7253,45 @@ The following 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
+
- Repo
+ Repo
- Name of remote or file:// url
+ Name of remote or file:// url
- A GVariant a{sv} with an extensible set of flags.
+ A GVariant a{sv} with an extensible set of flags.
- Progress
+ Progress
- Cancellable
+ Cancellable
@@ -5179,36 +7299,49 @@ The following are currently defined:
- Return the size in bytes of object with checksum @sha256, after any
+ Return the size in bytes of object with checksum @sha256, after any
compression has been applied.
+
- Repo
+ Repo
- Object type
+ Object type
- Checksum
+ Checksum
- Size in bytes object occupies physically
+ Size in bytes object occupies physically
- Cancellable
+ Cancellable
@@ -5216,38 +7349,51 @@ compression has been applied.
- Load the content for @rev into @out_root.
+ Load the content for @rev into @out_root.
+
- Repo
+ Repo
- Ref or ASCII checksum
+ Ref or ASCII checksum
- An #OstreeRepoFile corresponding to the root
+ An #OstreeRepoFile corresponding to the root
- The resolved commit checksum
+ The resolved commit checksum
- Cancellable
+ Cancellable
@@ -5255,33 +7401,44 @@ compression has been applied.
- OSTree commits can have arbitrary metadata associated; this
+ OSTree commits can have arbitrary metadata associated; this
function retrieves them. If none exists, @out_metadata will be set
to %NULL.
+
- Repo
+ Repo
- ASCII SHA256 commit checksum
+ ASCII SHA256 commit checksum
- Metadata associated with commit in with format "a{sv}", or %NULL if none exists
+ Metadata associated with commit in with format "a{sv}", or %NULL if none exists
- Cancellable
+ Cancellable
@@ -5289,7 +7446,9 @@ to %NULL.
- An OSTree repository can contain a high level "summary" file that
+ 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
@@ -5307,26 +7466,33 @@ and refs in %OSTREE_SUMMARY_COLLECTION_MAP are guaranteed to be in
lexicographic order.
Locking: exclusive
+
- Repo
+ Repo
- A GVariant of type a{sv}, or %NULL
+ A GVariant of type a{sv}, or %NULL
- Cancellable
+ Cancellable
@@ -5335,21 +7501,28 @@ Locking: exclusive
c:identifier="ostree_repo_reload_config"
version="2017.2"
throws="1">
- By default, an #OstreeRepo will cache the remote configuration and its
+ By default, an #OstreeRepo will cache the remote configuration and its
own repo/config data. This API can be used to reload it.
+
- repo
+ repo
- cancellable
+ cancellable
@@ -5357,41 +7530,54 @@ own repo/config data. This API can be used to reload it.
- Create a new remote named @name pointing to @url. If @options is
+ 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:
* s: g_key_file_set_string()
* b: g_key_file_set_boolean()
* as: g_key_file_set_string_list()
+
- Repo
+ Repo
- Name of remote
+ Name of remote
- URL for remote (if URL begins with metalink=, it will be used as such)
+ URL for remote (if URL begins with metalink=, it will be used as such)
- GVariant of type a{sv}
+ GVariant of type a{sv}
- Cancellable
+ Cancellable
@@ -5399,48 +7585,65 @@ mapped as follows:
- A combined function handling the equivalent of
+ A combined function handling the equivalent of
ostree_repo_remote_add(), ostree_repo_remote_delete(), with more
options.
+
- Repo
+ Repo
- System root
+ System root
- Operation to perform
+ Operation to perform
- Name of remote
+ Name of remote
- URL for remote (if URL begins with metalink=, it will be used as such)
+ URL for remote (if URL begins with metalink=, it will be used as such)
- GVariant of type a{sv}
+ GVariant of type a{sv}
- Cancellable
+ Cancellable
@@ -5448,25 +7651,34 @@ options.
- Delete the remote named @name. It is an error if the provided
+ Delete the remote named @name. It is an error if the provided
remote does not exist.
+
- Repo
+ Repo
- Name of remote
+ Name of remote
- Cancellable
+ Cancellable
@@ -5474,7 +7686,9 @@ remote does not exist.
- Tries to fetch the summary file and any GPG signatures on the summary file
+ 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.
@@ -5487,17 +7701,24 @@ Use ostree_repo_verify_summary() for that.
Parse the summary data into a #GVariant using g_variant_new_from_bytes()
with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
+
- %TRUE on success, %FALSE on failure
+ %TRUE on success, %FALSE on failure
- Self
+ Self
- name of a remote
+ name of a remote
transfer-ownership="full"
optional="1"
allow-none="1">
- return location for raw summary data, or
+ return location for raw summary data, or
%NULL
@@ -5516,7 +7739,9 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
transfer-ownership="full"
optional="1"
allow-none="1">
- return location for raw summary
+ return location for raw summary
signature data, or %NULL
@@ -5524,7 +7749,9 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable
+ a #GCancellable
@@ -5533,7 +7760,9 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string.
c:identifier="ostree_repo_remote_fetch_summary_with_options"
version="2016.6"
throws="1">
- Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags.
+ 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
@@ -5542,24 +7771,33 @@ The following are currently defined:
- n-network-retries (u): Number of times to retry each download on receiving
a transient network error, such as a socket timeout; default is 5, 0
means return errors without retrying
+
- %TRUE on success, %FALSE on failure
+ %TRUE on success, %FALSE on failure
- Self
+ Self
- name of a remote
+ name of a remote
- A GVariant a{sv} with an extensible set of flags
+ A GVariant a{sv} with an extensible set of flags
- return location for raw summary data, or
+ return location for raw summary data, or
%NULL
@@ -5578,7 +7818,9 @@ The following are currently defined:
transfer-ownership="full"
optional="1"
allow-none="1">
- return location for raw summary
+ return location for raw summary
signature data, or %NULL
@@ -5586,7 +7828,9 @@ The following are currently defined:
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable
+ a #GCancellable
@@ -5594,20 +7838,29 @@ The following are currently defined:
- Return whether GPG verification is enabled for the remote named @name
+ 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
+ %TRUE on success, %FALSE on failure
- Repo
+ Repo
- Name of remote
+ Name of remote
transfer-ownership="full"
optional="1"
allow-none="1">
- Remote's GPG option
+ Remote's GPG option
@@ -5624,20 +7879,29 @@ not exist.
- Return whether GPG verification of the summary is enabled for the remote
+ 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
+ %TRUE on success, %FALSE on failure
- Repo
+ Repo
- Name of remote
+ Name of remote
transfer-ownership="full"
optional="1"
allow-none="1">
- Remote's GPG option
+ Remote's GPG option
@@ -5654,19 +7920,28 @@ remote does not exist.
- Return the URL of the remote named @name through @out_url. It is an
+ 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
+ %TRUE on success, %FALSE on failure
- Repo
+ Repo
- Name of remote
+ Name of remote
transfer-ownership="full"
optional="1"
allow-none="1">
- Remote's URL
+ Remote's URL
@@ -5683,38 +7960,51 @@ error if the provided remote does not exist.
- Imports one or more GPG keys from the open @source_stream, or from the
+ 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
+ %TRUE on success, %FALSE on failure
- Self
+ Self
- name of a remote
+ name of a remote
- a #GInputStream, or %NULL
+ a #GInputStream, or %NULL
- a %NULL-terminated array of GPG key IDs, or %NULL
+ a %NULL-terminated array of GPG key IDs, or %NULL
@@ -5725,7 +8015,9 @@ from the remote named @name.
transfer-ownership="full"
optional="1"
allow-none="1">
- return location for the number of imported
+ return location for the number of imported
keys, or %NULL
@@ -5733,16 +8025,23 @@ from the remote named @name.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable
+ a #GCancellable
- List available remote names in an #OstreeRepo. Remote names are sorted
+ List available remote names in an #OstreeRepo. Remote names are sorted
alphabetically. If no remotes are available the function returns %NULL.
+
- a %NULL-terminated
+ a %NULL-terminated
array of remote names
@@ -5750,7 +8049,9 @@ alphabetically. If no remotes are available the function returns %NULL.
- Repo
+ Repo
transfer-ownership="full"
optional="1"
allow-none="1">
- Number of remotes available
+ Number of remotes available
@@ -5768,29 +8071,38 @@ alphabetically. If no remotes are available the function returns %NULL.
c:identifier="ostree_repo_remote_list_collection_refs"
version="2018.6"
throws="1">
- List refs advertised by @remote_name, including refs which are part of
+ List refs advertised by @remote_name, including refs which are part of
collections. If the repository at @remote_name has a collection ID set, its
refs will be returned with that collection ID; otherwise, they will be returned
with a %NULL collection ID in each #OstreeCollectionRef key in @out_all_refs.
Any refs for other collections stored in the repository will also be returned.
No filtering is performed.
+
- Repo
+ Repo
- Name of the remote.
+ Name of the remote.
-
+
Mapping from collection–ref to checksum
@@ -5801,7 +8113,9 @@ No filtering is performed.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -5809,23 +8123,30 @@ No filtering is performed.
+
- Repo
+ Repo
- Name of the remote.
+ Name of the remote.
-
+
Mapping from ref to checksum
@@ -5836,7 +8157,9 @@ No filtering is performed.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -5845,7 +8168,9 @@ No filtering is performed.
c:identifier="ostree_repo_resolve_collection_ref"
version="2018.6"
throws="1">
- Look up the checksum for the given collection–ref, returning it in @out_rev.
+ Look up the checksum for the given collection–ref, returning it in @out_rev.
This will search through the mirrors and remote refs.
If @allow_noent is %TRUE and the given @ref cannot be found, %TRUE will be
@@ -5856,25 +8181,36 @@ returned.
If you want to check only local refs, not remote or mirrored ones, use the
flag %OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY. This is analogous to using
ostree_repo_resolve_rev_ext() but for collection-refs.
+
- %TRUE on success, %FALSE on failure
+ %TRUE on success, %FALSE on failure
- an #OstreeRepo
+ an #OstreeRepo
- a collection–ref to resolve
+ a collection–ref to resolve
- %TRUE to not throw an error if @ref doesn’t exist
+ %TRUE to not throw an error if @ref doesn’t exist
- options controlling behaviour
+ options controlling behaviour
@@ -5885,7 +8221,9 @@ ostree_repo_resolve_rev_ext() but for collection-refs.
nullable="1"
optional="1"
allow-none="1">
- return location for
+ return location for
the checksum corresponding to @ref, or %NULL if @allow_noent is %TRUE and
the @ref could not be found
@@ -5894,7 +8232,9 @@ ostree_repo_resolve_rev_ext() but for collection-refs.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
@@ -5903,7 +8243,9 @@ ostree_repo_resolve_rev_ext() but for collection-refs.
c:identifier="ostree_repo_resolve_keyring_for_collection"
version="2018.6"
throws="1">
- Find the GPG keyring for the given @collection_id, using the local
+ Find the GPG keyring for the given @collection_id, using the local
configuration from the given #OstreeRepo. This will search the configured
remotes for ones whose `collection-id` key matches @collection_id, and will
return the first matching remote.
@@ -5913,25 +8255,34 @@ 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.
+
- #OstreeRemote containing the GPG keyring for
+ #OstreeRemote containing the GPG keyring for
@collection_id
- an #OstreeRepo
+ an #OstreeRepo
- the collection ID to look up a keyring for
+ the collection ID to look up a keyring for
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
@@ -5939,30 +8290,41 @@ If no match can be found, a %G_IO_ERROR_NOT_FOUND error will be returned.
- Look up the given refspec, returning the checksum it references in
+ Look up the given refspec, returning the checksum it references in
the parameter @out_rev. Will fall back on remote directory if cannot
find the given refspec in local.
+
- Repo
+ Repo
- A refspec
+ A refspec
- Do not throw an error if refspec does not exist
+ Do not throw an error if refspec does not exist
- A checksum,or %NULL if @allow_noent is true and it does not exist
+ A checksum,or %NULL if @allow_noent is true and it does not exist
@@ -5971,31 +8333,42 @@ find the given refspec in local.
c:identifier="ostree_repo_resolve_rev_ext"
version="2016.7"
throws="1">
- Look up the given refspec, returning the checksum it references in
+ Look up the given refspec, returning the checksum it references in
the parameter @out_rev. Differently from ostree_repo_resolve_rev(),
this will not fall back to searching through remote repos if a
local ref is specified but not found.
The flag %OSTREE_REPO_RESOLVE_REV_EXT_LOCAL_ONLY is implied so
using it has no effect.
+
- Repo
+ Repo
- A refspec
+ A refspec
- Do not throw an error if refspec does not exist
+ Do not throw an error if refspec does not exist
- Options controlling behavior
+ Options controlling behavior
@@ -6003,7 +8376,9 @@ using it has no effect.
direction="out"
caller-allocates="0"
transfer-ownership="full">
- A checksum,or %NULL if @allow_noent is true and it does not exist
+ A checksum,or %NULL if @allow_noent is true and it does not exist
@@ -6011,7 +8386,9 @@ using it has no effect.
- This function is deprecated in favor of using ostree_repo_devino_cache_new(),
+ This function is deprecated in favor of using ostree_repo_devino_cache_new(),
which allows a precise mapping to be built up between hardlink checkout files
and their checksums between `ostree_repo_checkout_at()` and
`ostree_repo_write_directory_to_mtree()`.
@@ -6028,19 +8405,24 @@ before you call ostree_repo_write_directory_to_mtree() or similar. However,
ostree_repo_devino_cache_new() is better as it avoids scanning all objects.
Multithreading: This function is *not* MT safe.
+
- An #OstreeRepo
+ An #OstreeRepo
- Cancellable
+ Cancellable
@@ -6049,38 +8431,51 @@ Multithreading: This function is *not* MT safe.
c:identifier="ostree_repo_set_alias_ref_immediate"
version="2017.10"
throws="1">
- Like ostree_repo_set_ref_immediate(), but creates an alias.
+ Like ostree_repo_set_ref_immediate(), but creates an alias.
+
- An #OstreeRepo
+ An #OstreeRepo
- A remote for the ref
+ A remote for the ref
- The ref to write
+ The ref to write
- The ref target to point it to, or %NULL to unset
+ The ref target to point it to, or %NULL to unset
- GCancellable
+ GCancellable
@@ -6089,31 +8484,42 @@ Multithreading: This function is *not* MT safe.
c:identifier="ostree_repo_set_cache_dir"
version="2016.5"
throws="1">
- Set a custom location for the cache directory used for e.g.
+ 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.
+
- An #OstreeRepo
+ An #OstreeRepo
- directory fd
+ directory fd
- subpath in @dfd
+ subpath in @dfd
- a #GCancellable
+ a #GCancellable
@@ -6122,23 +8528,32 @@ write permissions in the repo, where the cache is normally stored.
c:identifier="ostree_repo_set_collection_id"
version="2018.6"
throws="1">
- Set or clear the collection ID of this repository. See [collection IDs][collection-ids].
+ 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
+ %TRUE on success, %FALSE otherwise
- an #OstreeRepo
+ an #OstreeRepo
- new collection ID, or %NULL to unset it
+ new collection ID, or %NULL to unset it
@@ -6147,54 +8562,74 @@ configuration on disk using ostree_repo_write_config().
c:identifier="ostree_repo_set_collection_ref_immediate"
version="2018.6"
throws="1">
- This is like ostree_repo_transaction_set_collection_ref(), except it may be
+ This is like ostree_repo_transaction_set_collection_ref(), except it may be
invoked outside of a transaction. This is presently safe for the
case where we're creating or overwriting an existing ref.
+
- %TRUE on success, %FALSE otherwise
+ %TRUE on success, %FALSE otherwise
- An #OstreeRepo
+ An #OstreeRepo
- The collection–ref to write
+ The collection–ref to write
- The checksum to point it to, or %NULL to unset
+ The checksum to point it to, or %NULL to unset
- GCancellable
+ GCancellable
- Disable requests to fsync() to stable storage during commits. This
+ 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.
+
- An #OstreeRepo
+ An #OstreeRepo
- If %TRUE, do not fsync
+ If %TRUE, do not fsync
@@ -6202,42 +8637,55 @@ ensuring data consistency.
- This is like ostree_repo_transaction_set_ref(), except it may be
+ This is like ostree_repo_transaction_set_ref(), except it may be
invoked outside of a transaction. This is presently safe for the
case where we're creating or overwriting an existing ref.
Multithreading: This function is MT safe.
+
- An #OstreeRepo
+ An #OstreeRepo
- A remote for the ref
+ A remote for the ref
- The ref to write
+ The ref to write
- The checksum to point it to, or %NULL to unset
+ The checksum to point it to, or %NULL to unset
- GCancellable
+ GCancellable
@@ -6245,35 +8693,48 @@ Multithreading: This function is MT safe.
- Add a GPG signature to a commit.
+ Add a GPG signature to a commit.
+
- Self
+ Self
- SHA256 of given commit to sign
+ SHA256 of given commit to sign
- Use this GPG key id
+ Use this GPG key id
- GPG home directory, or %NULL
+ GPG home directory, or %NULL
- A #GCancellable
+ A #GCancellable
@@ -6281,37 +8742,52 @@ Multithreading: This function is MT safe.
- This function is deprecated, sign the summary file instead.
+ This function is deprecated, sign the summary file instead.
Add a GPG signature to a static delta.
+
- Self
+ Self
- From commit
+ From commit
- To commit
+ To commit
- key id
+ key id
- homedir
+ homedir
- cancellable
+ cancellable
@@ -6319,31 +8795,42 @@ Add a GPG signature to a static delta.
- Given a directory representing an already-downloaded static delta
+ Given a directory representing an already-downloaded 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.
+
- Repo
+ Repo
- Path to a directory containing static delta data, or directly to the superblock
+ Path to a directory containing static delta data, or directly to the superblock
- If %TRUE, assume data integrity
+ If %TRUE, assume data integrity
- Cancellable
+ Cancellable
@@ -6351,7 +8838,9 @@ must contain a file named "superblock", along with at least one part.
- Generate a lookaside "static delta" from @from (%NULL means
+ Generate a lookaside "static delta" from @from (%NULL means
from-empty) which can generate the objects in @to. This delta is
an optimization over fetching individual objects, and can be
conveniently stored and applied offline.
@@ -6368,46 +8857,61 @@ are known:
- verbose: b: Print diagnostic messages. Default FALSE.
- endianness: b: Deltas use host byte order by default; this option allows choosing (G_BIG_ENDIAN or G_LITTLE_ENDIAN)
- filename: ay: Save delta superblock to this filename, and parts in the same directory. Default saves to repository.
+
- Repo
+ Repo
- High level optimization choice
+ High level optimization choice
- ASCII SHA256 checksum of origin, or %NULL
+ ASCII SHA256 checksum of origin, or %NULL
- ASCII SHA256 checksum of target
+ ASCII SHA256 checksum of target
- Optional metadata
+ Optional metadata
- Parameters, see below
+ Parameters, see below
- Cancellable
+ Cancellable
@@ -6415,7 +8919,9 @@ are known:
- If @checksum is not %NULL, then record it as the target of local ref named
+ If @checksum is not %NULL, then record it as the target of local ref named
@ref.
Otherwise, if @checksum is %NULL, then record that the ref should
@@ -6427,30 +8933,39 @@ is instead aborted with ostree_repo_abort_transaction(), no changes will
be made to the repository.
Multithreading: Since v2017.15 this function is MT safe.
+
- An #OstreeRepo
+ An #OstreeRepo
- The collection–ref to write
+ The collection–ref to write
- The checksum to point it to
+ The checksum to point it to
- If @checksum is not %NULL, then record it as the target of ref named
+ If @checksum is not %NULL, then record it as the target of ref named
@ref; if @remote is provided, the ref will appear to originate from that
remote.
@@ -6471,58 +8986,76 @@ will have been updated. Your application should take care to handle this
case.
Multithreading: Since v2017.15 this function is MT safe.
+
- An #OstreeRepo
+ An #OstreeRepo
- A remote for the ref
+ A remote for the ref
- The ref to write
+ The ref to write
- The checksum to point it to
+ The checksum to point it to
- Like ostree_repo_transaction_set_ref(), but takes concatenated
+ Like ostree_repo_transaction_set_ref(), but takes concatenated
@refspec format as input instead of separate remote and name
arguments.
Multithreading: Since v2017.15 this function is MT safe.
+
- An #OstreeRepo
+ An #OstreeRepo
- The refspec to write
+ The refspec to write
- The checksum to point it to
+ The checksum to point it to
@@ -6530,29 +9063,40 @@ Multithreading: Since v2017.15 this function is MT safe.
- Create a new set @out_reachable containing all objects reachable
+ Create a new set @out_reachable containing all objects reachable
from @commit_checksum, traversing @maxdepth parent commits.
+
- Repo
+ Repo
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- Traverse this many parent commits, -1 for unlimited
+ Traverse this many parent commits, -1 for unlimited
- Set of reachable objects
+ Set of reachable objects
@@ -6562,7 +9106,9 @@ from @commit_checksum, traversing @maxdepth parent commits.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -6571,26 +9117,37 @@ from @commit_checksum, traversing @maxdepth parent commits.
c:identifier="ostree_repo_traverse_commit_union"
introspectable="0"
throws="1">
- Update the set @inout_reachable containing all objects reachable
+ Update the set @inout_reachable containing all objects reachable
from @commit_checksum, traversing @maxdepth parent commits.
+
- Repo
+ Repo
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- Traverse this many parent commits, -1 for unlimited
+ Traverse this many parent commits, -1 for unlimited
- Set of reachable objects
+ Set of reachable objects
@@ -6600,7 +9157,9 @@ from @commit_checksum, traversing @maxdepth parent commits.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -6610,37 +9169,50 @@ from @commit_checksum, traversing @maxdepth parent commits.
version="2018.5"
introspectable="0"
throws="1">
- Update the set @inout_reachable containing all objects reachable
+ Update the set @inout_reachable containing all objects reachable
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.
+
- Repo
+ Repo
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- Traverse this many parent commits, -1 for unlimited
+ Traverse this many parent commits, -1 for unlimited
- Set of reachable objects
+ Set of reachable objects
- Map from object to parent object
+ Map from object to parent object
@@ -6650,7 +9222,9 @@ belongs to.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -6659,23 +9233,32 @@ belongs to.
c:identifier="ostree_repo_traverse_reachable_refs"
version="2018.6"
throws="1">
- Add all commit objects directly reachable via a ref to @reachable.
+ Add all commit objects directly reachable via a ref to @reachable.
Locking: shared
+
- Repo
+ Repo
- Depth of traversal
+ Depth of traversal
- Set of reachable objects (will be modified)
+ Set of reachable objects (will be modified)
@@ -6685,7 +9268,9 @@ Locking: shared
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -6693,40 +9278,55 @@ Locking: shared
- Check for a valid GPG signature on commit named by the ASCII
+ 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
+ %TRUE if there was a GPG signature from a trusted keyring, otherwise %FALSE
- Repository
+ Repository
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- Path to directory GPG keyrings; overrides built-in default if given
+ Path to directory GPG keyrings; overrides built-in default if given
- Path to additional keyring file (not a directory)
+ Path to additional keyring file (not a directory)
- Cancellable
+ Cancellable
@@ -6734,40 +9334,55 @@ checksum @commit_checksum.
- Read GPG signature(s) on the commit named by the ASCII checksum
+ Read GPG signature(s) on the commit named by the ASCII checksum
@commit_checksum and return detailed results.
+
- an #OstreeGpgVerifyResult, or %NULL on error
+ an #OstreeGpgVerifyResult, or %NULL on error
- Repository
+ Repository
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- Path to directory GPG keyrings; overrides built-in default if given
+ Path to directory GPG keyrings; overrides built-in default if given
- Path to additional keyring file (not a directory)
+ Path to additional keyring file (not a directory)
- Cancellable
+ Cancellable
@@ -6776,31 +9391,44 @@ checksum @commit_checksum.
c:identifier="ostree_repo_verify_commit_for_remote"
version="2016.14"
throws="1">
- Read GPG signature(s) on the commit named by the ASCII checksum
+ 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
+ an #OstreeGpgVerifyResult, or %NULL on error
- Repository
+ Repository
- ASCII SHA256 checksum
+ ASCII SHA256 checksum
- OSTree remote to use for configuration
+ OSTree remote to use for configuration
- Cancellable
+ Cancellable
@@ -6808,34 +9436,49 @@ configured for @remote.
- Verify @signatures for @summary data using GPG keys in the keyring for
+ Verify @signatures for @summary data using GPG keys in the keyring for
@remote_name, and return an #OstreeGpgVerifyResult.
+
- an #OstreeGpgVerifyResult, or %NULL on error
+ an #OstreeGpgVerifyResult, or %NULL on error
- Repo
+ Repo
- Name of remote
+ Name of remote
- Summary data as a #GBytes
+ Summary data as a #GBytes
- Summary signatures as a #GBytes
+ Summary signatures as a #GBytes
- Cancellable
+ Cancellable
@@ -6843,41 +9486,56 @@ configured for @remote.
- Import an archive file @archive into the repository, and write its
+ Import an archive file @archive into the repository, and write its
file structure to @mtree.
+
- An #OstreeRepo
+ An #OstreeRepo
- A path to an archive file
+ A path to an archive file
- The #OstreeMutableTree to write to
+ The #OstreeMutableTree to write to
- Optional commit modifier
+ Optional commit modifier
- Autocreate parent directories
+ Autocreate parent directories
- Cancellable
+ Cancellable
@@ -6885,41 +9543,56 @@ file structure to @mtree.
- Read an archive from @fd and import it into the repository, writing
+ Read an archive from @fd and import it into the repository, writing
its file structure to @mtree.
+
- An #OstreeRepo
+ An #OstreeRepo
- A file descriptor to read the archive from
+ A file descriptor to read the archive from
- The #OstreeMutableTree to write to
+ The #OstreeMutableTree to write to
- Optional commit modifier
+ Optional commit modifier
- Autocreate parent directories
+ Autocreate parent directories
- Cancellable
+ Cancellable
@@ -6927,60 +9600,79 @@ its file structure to @mtree.
- Write a commit metadata object, referencing @root_contents_checksum
+ Write a commit metadata object, referencing @root_contents_checksum
and @root_metadata_checksum.
+
- Repo
+ Repo
- ASCII SHA256 checksum for parent, or %NULL for none
+ ASCII SHA256 checksum for parent, or %NULL for none
- Subject
+ Subject
- Body
+ Body
- GVariant of type a{sv}, or %NULL for none
+ GVariant of type a{sv}, or %NULL for none
- The tree to point the commit to
+ The tree to point the commit to
- Resulting ASCII SHA256 checksum for commit
+ Resulting ASCII SHA256 checksum for commit
- Cancellable
+ Cancellable
@@ -6988,33 +9680,44 @@ and @root_metadata_checksum.
- Replace any existing metadata associated with commit referred to by
+ Replace any existing metadata associated with commit referred to by
@checksum with @metadata. If @metadata is %NULL, then existing
data will be deleted.
+
- Repo
+ Repo
- ASCII SHA256 commit checksum
+ ASCII SHA256 commit checksum
- Metadata to associate with commit in with format "a{sv}", or %NULL to delete
+ Metadata to associate with commit in with format "a{sv}", or %NULL to delete
- Cancellable
+ Cancellable
@@ -7022,64 +9725,85 @@ data will be deleted.
- Write a commit metadata object, referencing @root_contents_checksum
+ Write a commit metadata object, referencing @root_contents_checksum
and @root_metadata_checksum.
+
- Repo
+ Repo
- ASCII SHA256 checksum for parent, or %NULL for none
+ ASCII SHA256 checksum for parent, or %NULL for none
- Subject
+ Subject
- Body
+ Body
- GVariant of type a{sv}, or %NULL for none
+ GVariant of type a{sv}, or %NULL for none
- The tree to point the commit to
+ The tree to point the commit to
- The time to use to stamp the commit
+ The time to use to stamp the commit
- Resulting ASCII SHA256 checksum for commit
+ Resulting ASCII SHA256 checksum for commit
- Cancellable
+ Cancellable
@@ -7087,17 +9811,24 @@ and @root_metadata_checksum.
- Save @new_config in place of this repository's config file.
+ Save @new_config in place of this repository's config file.
+
- Repo
+ Repo
- Overwrite the config file with this data
+ Overwrite the config file with this data
@@ -7105,30 +9836,41 @@ and @root_metadata_checksum.
- Store the content object streamed as @object_input,
+ Store the content object streamed as @object_input,
with total length @length. The actual checksum will
be returned as @out_csum.
+
- Repo
+ Repo
- If provided, validate content against this checksum
+ If provided, validate content against this checksum
- Content object stream
+ Content object stream
- Length of @object_input
+ Length of @object_input
transfer-ownership="full"
optional="1"
allow-none="1">
- Binary checksum
+ Binary checksum
@@ -7146,43 +9890,58 @@ be returned as @out_csum.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- Asynchronously store the content object @object. If provided, the
+ Asynchronously store the content object @object. If provided, the
checksum @expected_checksum will be verified.
+
- Repo
+ Repo
- If provided, validate content against this checksum
+ If provided, validate content against this checksum
- Input
+ Input
- Length of @object
+ Length of @object
- Cancellable
+ Cancellable
allow-none="1"
scope="async"
closure="5">
- Invoked when content is writed
+ Invoked when content is writed
- User data for @callback
+ User data for @callback
@@ -7206,24 +9969,33 @@ checksum @expected_checksum will be verified.
- Completes an invocation of ostree_repo_write_content_async().
+ Completes an invocation of ostree_repo_write_content_async().
+
- a #OstreeRepo
+ a #OstreeRepo
- a #GAsyncResult
+ a #GAsyncResult
- A binary SHA256 checksum of the content object
+ A binary SHA256 checksum of the content object
@@ -7231,36 +10003,49 @@ checksum @expected_checksum will be verified.
- Store the content object streamed as @object_input, with total
+ Store the content object streamed as @object_input, with total
length @length. The given @checksum will be treated as trusted.
This function should be used when importing file objects from local
disk, for example.
+
- Repo
+ Repo
- Store content using this ASCII SHA256 checksum
+ Store content using this ASCII SHA256 checksum
- Content stream
+ Content stream
- Length of @object_input
+ Length of @object_input
- Cancellable
+ Cancellable
@@ -7268,34 +10053,47 @@ disk, for example.
- Store as objects all contents of the directory referred to by @dfd
+ 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.
+
- Repo
+ Repo
- Directory file descriptor
+ Directory file descriptor
- Path
+ Path
- Overlay directory contents into this tree
+ Overlay directory contents into this tree
- Optional modifier
+ Optional modifier
@@ -7303,7 +10101,9 @@ resulting filesystem hierarchy into @mtree.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -7311,29 +10111,40 @@ resulting filesystem hierarchy into @mtree.
- Store objects for @dir and all children into the repository @self,
+ Store objects for @dir and all children into the repository @self,
overlaying the resulting filesystem hierarchy into @mtree.
+
- Repo
+ Repo
- Path to a directory
+ Path to a directory
- Overlay directory contents into this tree
+ Overlay directory contents into this tree
- Optional modifier
+ Optional modifier
@@ -7341,7 +10152,9 @@ overlaying the resulting filesystem hierarchy into @mtree.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -7349,32 +10162,43 @@ overlaying the resulting filesystem hierarchy into @mtree.
- Store the metadata object @object. Return the checksum
+ Store the metadata object @object. Return the checksum
as @out_csum.
If @expected_checksum is not %NULL, verify it against the
computed checksum.
+
- Repo
+ Repo
- Object type
+ Object type
- If provided, validate content against this checksum
+ If provided, validate content against this checksum
- Metadata
+ Metadata
transfer-ownership="full"
optional="1"
allow-none="1">
- Binary checksum
+ Binary checksum
@@ -7392,43 +10218,58 @@ computed checksum.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- Asynchronously store the metadata object @variant. If provided,
+ Asynchronously store the metadata object @variant. If provided,
the checksum @expected_checksum will be verified.
+
- Repo
+ Repo
- Object type
+ Object type
- If provided, validate content against this checksum
+ If provided, validate content against this checksum
- Metadata
+ Metadata
- Cancellable
+ Cancellable
allow-none="1"
scope="async"
closure="5">
- Invoked when metadata is writed
+ Invoked when metadata is writed
- Data for @callback
+ Data for @callback
@@ -7452,24 +10297,33 @@ the checksum @expected_checksum will be verified.
- Complete a call to ostree_repo_write_metadata_async().
+ Complete a call to ostree_repo_write_metadata_async().
+
- Repo
+ Repo
- Result
+ Result
- Binary checksum value
+ Binary checksum value
@@ -7479,37 +10333,52 @@ the checksum @expected_checksum will be verified.
- Store the metadata object @variant; the provided @checksum is
+ Store the metadata object @variant; the provided @checksum is
trusted.
+
- Repo
+ Repo
- Object type
+ Object type
- Store object with this ASCII SHA256 checksum
+ Store object with this ASCII SHA256 checksum
- Metadata object stream
+ Metadata object stream
- Length, may be 0 for unknown
+ Length, may be 0 for unknown
- Cancellable
+ Cancellable
@@ -7517,33 +10386,46 @@ trusted.
- Store the metadata object @variant; the provided @checksum is
+ Store the metadata object @variant; the provided @checksum is
trusted.
+
- Repo
+ Repo
- Object type
+ Object type
- Store object with this ASCII SHA256 checksum
+ Store object with this ASCII SHA256 checksum
- Metadata object
+ Metadata object
- Cancellable
+ Cancellable
@@ -7551,33 +10433,44 @@ trusted.
- Write all metadata objects for @mtree to repo; the resulting
+ 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.
+
- Repo
+ Repo
- Mutable tree
+ Mutable tree
- An #OstreeRepoFile representing @mtree's root.
+ An #OstreeRepoFile representing @mtree's root.
- Cancellable
+ Cancellable
@@ -7586,7 +10479,9 @@ the @mtree represented.
writable="1"
construct-only="1"
transfer-ownership="none">
- Path to repository. Note that if this repository was created
+ 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
@@ -7598,7 +10493,9 @@ use file-descriptor relative operations.
writable="1"
construct-only="1"
transfer-ownership="none">
- Path to directory containing remote definitions. The default is `NULL`.
+ 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`.
@@ -7609,7 +10506,9 @@ This value will only be used for system repositories.
writable="1"
construct-only="1"
transfer-ownership="none">
- A system using libostree for the host has a "system" repository; this
+ 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.
@@ -7619,7 +10518,9 @@ object via `ostree_sysroot_repo()`.
- Emitted during a pull operation upon GPG verification (if enabled).
+ Emitted during a pull operation upon GPG verification (if enabled).
Applications can connect to this signal to output the verification
results if desired.
@@ -7631,22 +10532,29 @@ is called.
- checksum of the signed object
+ checksum of the signed object
- an #OstreeGpgVerifyResult
+ an #OstreeGpgVerifyResult
- An extensible options structure controlling checkout. Ensure that
+ 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().
+
@@ -7676,7 +10584,7 @@ ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at().
-
+
@@ -7687,12 +10595,12 @@ ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at().
-
+
-
+
@@ -7711,17 +10619,22 @@ ostree_repo_checkout_tree() and ostree_repo_checkout_tree_at().
- This function simply assigns @cache to the `devino_to_csum_cache` member of
+ 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.
+
- Checkout options
+ Checkout options
@@ -7729,7 +10642,9 @@ Note that cache does *not* have its refcount incremented - the lifetime of
transfer-ownership="none"
nullable="1"
allow-none="1">
- Devino cache
+ Devino cache
@@ -7738,25 +10653,34 @@ Note that cache does *not* have its refcount incremented - the lifetime of
+
- #OstreeRepoCheckoutFilterResult saying whether or not to checkout this file
+ #OstreeRepoCheckoutFilterResult saying whether or not to checkout this file
- Repo
+ Repo
- Path to file
+ Path to file
- File information
+ File information
- User data
+ User data
@@ -7772,37 +10698,50 @@ Note that cache does *not* have its refcount incremented - the lifetime of
+
- Do checkout this object
+ Do checkout this object
- Ignore this object
+ Ignore this object
+
- No special options
+ No special options
- Ignore uid/gid of files
+ Ignore uid/gid of files
- An extensible options structure controlling checkout. Ensure that
+ 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_tree_at() which
supercedes previous separate enumeration usage in
ostree_repo_checkout_tree().
+
@@ -7832,56 +10771,74 @@ ostree_repo_checkout_tree().
-
+
-
+
+
- No special options
+ 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)
+ 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
+ Only add new files/directories
- Like UNION_FILES, but error if files are not identical (requires hardlink checkouts)
+ Like UNION_FILES, but error if files are not identical (requires hardlink checkouts)
+
- #OstreeRepoCommitFilterResult saying whether or not to commit this file
+ #OstreeRepoCommitFilterResult saying whether or not to commit this file
- Repo
+ Repo
- Path to file
+ Path to file
- File information
+ File information
nullable="1"
allow-none="1"
closure="3">
- User data
+ User data
+
- Do commit this object
+ Do commit this object
- Ignore this object
+ Ignore this object
+
@@ -7931,15 +10896,23 @@ ostree_repo_checkout_tree().
glib:type-name="OstreeRepoCommitModifier"
glib:get-type="ostree_repo_commit_modifier_get_type"
c:symbol-prefix="repo_commit_modifier">
- A structure allowing control over commits.
+ A structure allowing control over commits.
+
+
- A new commit modifier.
+ A new commit modifier.
- Control options for filter
+ Control options for filter
@@ -7950,25 +10923,32 @@ ostree_repo_checkout_tree().
scope="notified"
closure="2"
destroy="3">
- Function that can inspect individual files
+ Function that can inspect individual files
- User data
+ User data
- A #GDestroyNotify
+ A #GDestroyNotify
+
@@ -7982,7 +10962,9 @@ ostree_repo_checkout_tree().
- See the documentation for
+ 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.
@@ -7992,24 +10974,31 @@ 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.
+
- Modifier
+ Modifier
- A hash table caching device,inode to checksums
+ A hash table caching device,inode to checksums
- If @policy is non-%NULL, use it to look up labels to use for
+ 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
@@ -8017,12 +11006,15 @@ 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.
+
- An #OstreeRepoCommitModifier
+ An #OstreeRepoCommitModifier
@@ -8030,23 +11022,30 @@ policy wins.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Policy to use for labeling
+ Policy to use for labeling
- If set, this function should return extended attributes to use for
+ 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.
+
- An #OstreeRepoCommitModifier
+ An #OstreeRepoCommitModifier
@@ -8055,24 +11054,31 @@ repository.
scope="notified"
closure="2"
destroy="1">
- Function to be invoked, should return extended attributes for path
+ Function to be invoked, should return extended attributes for path
- Destroy notification
+ Destroy notification
- Data for @callback:
+ Data for @callback:
+
@@ -8086,44 +11092,60 @@ repository.
+
- No special flags
+ No special flags
- Do not process extended attributes
+ Do not process extended attributes
- Generate size information.
+ Generate size information.
- Canonicalize permissions for bare-user-only mode.
+ Canonicalize permissions for bare-user-only mode.
- Emit an error if configured SELinux policy does not provide a label
+ Emit an error if configured SELinux policy does not provide a label
- Delete added files/directories after commit; Since: 2017.13
+ Delete added files/directories after commit; Since: 2017.13
- If a devino cache hit is found, skip modifier filters (non-directories only); Since: 2017.14
+ If a devino cache hit is found, skip modifier filters (non-directories only); Since: 2017.14
+
@@ -8149,23 +11171,39 @@ repository.
- Flags representing the state of a commit in the local repository, as returned
+ Flags representing the state of a commit in the local repository, as returned
by ostree_repo_load_commit().
+
- Commit is complete. This is the default.
+ Commit is complete. This is the default.
(Since: 2017.14.)
- One or more objects are missing from the
+ One or more objects are missing from the
local copy of the commit, but metadata is present. (Since: 2015.7.)
+
+ One or more objects are missing from the
+ local copy of the commit, due to an fsck --delete. (Since: 2019.4.)
+
+
@@ -8173,21 +11211,23 @@ by ostree_repo_load_commit().
+
-
+
-
+
+
@@ -8200,15 +11240,20 @@ by ostree_repo_load_commit().
- Return information on the current directory. This function may
+ 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().
+
- An iter
+ An iter
@@ -8216,36 +11261,47 @@ from ostree_repo_commit_traverse_iter_next().
direction="out"
caller-allocates="0"
transfer-ownership="none">
- Name of current dir
+ Name of current dir
- Checksum of current content
+ Checksum of current content
- Checksum of current metadata
+ Checksum of current metadata
- Return information on the current file. This function may only be
+ 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().
+
- An iter
+ An iter
@@ -8253,14 +11309,18 @@ ostree_repo_commit_traverse_iter_next().
direction="out"
caller-allocates="0"
transfer-ownership="none">
- Name of current file
+ Name of current file
- Checksum of current file
+ Checksum of current file
@@ -8268,26 +11328,37 @@ ostree_repo_commit_traverse_iter_next().
- Initialize (in place) an iterator over the root of a commit object.
+ Initialize (in place) an iterator over the root of a commit object.
+
- An iter
+ An iter
- A repo
+ A repo
- Variant of type %OSTREE_OBJECT_TYPE_COMMIT
+ Variant of type %OSTREE_OBJECT_TYPE_COMMIT
- Flags
+ Flags
@@ -8296,26 +11367,37 @@ ostree_repo_commit_traverse_iter_next().
- Initialize (in place) an iterator over a directory tree.
+ Initialize (in place) an iterator over a directory tree.
+
- An iter
+ An iter
- A repo
+ A repo
- Variant of type %OSTREE_OBJECT_TYPE_DIR_TREE
+ Variant of type %OSTREE_OBJECT_TYPE_DIR_TREE
- Flags
+ Flags
@@ -8324,7 +11406,9 @@ ostree_repo_commit_traverse_iter_next().
- Step the interator to the next item. Files will be returned first,
+ Step the interator to the next item. Files will be returned first,
then subdirectories. Call this in a loop; upon encountering
%OSTREE_REPO_COMMIT_ITER_RESULT_END, there will be no more files or
directories. If %OSTREE_REPO_COMMIT_ITER_RESULT_DIR is returned,
@@ -8336,13 +11420,16 @@ 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().
+
- An iter
+ An iter
@@ -8350,13 +11437,16 @@ ostree_repo_commit_traverse_iter_clear().
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
+
@@ -8375,20 +11465,27 @@ ostree_repo_commit_traverse_iter_clear().
glib:type-name="OstreeRepoDevInoCache"
glib:get-type="ostree_repo_devino_cache_get_type"
c:symbol-prefix="repo_devino_cache">
+
- OSTree has support for pairing ostree_repo_checkout_tree_at() using
+ 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
+ Newly allocated cache
+
@@ -8399,6 +11496,7 @@ ostree_repo_commit_set_devino_cache().
+
@@ -8412,9 +11510,12 @@ ostree_repo_commit_set_devino_cache().
- An extensible options structure controlling archive creation. Ensure that
+ 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().
+
@@ -8425,7 +11526,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
-
+
@@ -8433,7 +11534,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
-
+
@@ -8445,10 +11546,12 @@ options. This is used by ostree_repo_export_tree_to_archive().
glib:type-name="OstreeRepoFile"
glib:get-type="ostree_repo_file_get_type"
glib:type-struct="RepoFileClass">
+
+
@@ -8459,6 +11562,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
@@ -8469,8 +11573,11 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
- Repository
+ Repository
@@ -8480,8 +11587,11 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
- The root directory for the commit referenced by this file
+ The root directory for the commit referenced by this file
@@ -8493,12 +11603,15 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
- #OstreeRepoFile
+ #OstreeRepoFile
transfer-ownership="full"
optional="1"
allow-none="1">
- the extended attributes
+ the extended attributes
- Cancellable
+ Cancellable
+
- #OstreeRepoFile
+ #OstreeRepoFile
- name of the child
+ name of the child
+
@@ -8560,6 +11683,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
@@ -8571,6 +11695,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
@@ -8582,6 +11707,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
@@ -8594,12 +11720,15 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
- #OstreeRepoFile
+ #OstreeRepoFile
@@ -8621,13 +11750,16 @@ options. This is used by ostree_repo_export_tree_to_archive().
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
+
@@ -8647,6 +11779,7 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
@@ -8654,9 +11787,11 @@ options. This is used by ostree_repo_export_tree_to_archive().
+
+
@@ -8667,29 +11802,39 @@ options. This is used by ostree_repo_export_tree_to_archive().
glib:type-name="OstreeRepoFinder"
glib:get-type="ostree_repo_finder_get_type"
glib:type-struct="RepoFinderInterface">
+
- A version of ostree_repo_finder_resolve_async() which queries one or more
+ A version of ostree_repo_finder_resolve_async() which queries one or more
@finders in parallel and combines the results.
+
- non-empty array of #OstreeRepoFinders
+ non-empty array of #OstreeRepoFinders
- non-empty array of collection–ref pairs to find remotes for
+ non-empty array of collection–ref pairs to find remotes for
- the local repository which the refs are being resolved for,
+ the local repository which the refs are being resolved for,
which provides configuration information and GPG keys
@@ -8697,7 +11842,9 @@ options. This is used by ostree_repo_export_tree_to_archive().
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
allow-none="1"
scope="async"
closure="5">
- asynchronous completion callback
+ asynchronous completion callback
- data to pass to @callback
+ data to pass to @callback
@@ -8722,9 +11873,14 @@ options. This is used by ostree_repo_export_tree_to_archive().
c:identifier="ostree_repo_finder_resolve_all_finish"
version="2018.6"
throws="1">
- Get the results from a ostree_repo_finder_resolve_all_async() operation.
+ Get the results from a ostree_repo_finder_resolve_all_async() operation.
+
- array of zero
+ array of zero
or more results
@@ -8732,7 +11888,9 @@ options. This is used by ostree_repo_export_tree_to_archive().
- #GAsyncResult from the callback
+ #GAsyncResult from the callback
@@ -8740,7 +11898,9 @@ options. This is used by ostree_repo_export_tree_to_archive().
- Find reachable remote URIs which claim to provide any of the given @refs. The
+ Find reachable remote URIs which claim to provide any of the given @refs. The
specific method for finding the remotes depends on the #OstreeRepoFinder
implementation.
@@ -8762,22 +11922,29 @@ the checksum will not be set. Results which provide none of the requested
Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
@refs from those remotes.
+
- an #OstreeRepoFinder
+ an #OstreeRepoFinder
- non-empty array of collection–ref pairs to find remotes for
+ non-empty array of collection–ref pairs to find remotes for
- the local repository which the refs are being resolved for,
+ the local repository which the refs are being resolved for,
which provides configuration information and GPG keys
@@ -8785,7 +11952,9 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
- asynchronous completion callback
+ asynchronous completion callback
- data to pass to @callback
+ data to pass to @callback
@@ -8811,9 +11984,14 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
invoker="resolve_finish"
version="2018.6"
throws="1">
- Get the results from a ostree_repo_finder_resolve_async() operation.
+ Get the results from a ostree_repo_finder_resolve_async() operation.
+
- array of zero
+ array of zero
or more results
@@ -8821,11 +11999,15 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
- an #OstreeRepoFinder
+ an #OstreeRepoFinder
- #GAsyncResult from the callback
+ #GAsyncResult from the callback
@@ -8833,7 +12015,9 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
- Find reachable remote URIs which claim to provide any of the given @refs. The
+ Find reachable remote URIs which claim to provide any of the given @refs. The
specific method for finding the remotes depends on the #OstreeRepoFinder
implementation.
@@ -8855,22 +12039,29 @@ the checksum will not be set. Results which provide none of the requested
Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
@refs from those remotes.
+
- an #OstreeRepoFinder
+ an #OstreeRepoFinder
- non-empty array of collection–ref pairs to find remotes for
+ non-empty array of collection–ref pairs to find remotes for
- the local repository which the refs are being resolved for,
+ the local repository which the refs are being resolved for,
which provides configuration information and GPG keys
@@ -8878,7 +12069,9 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
- asynchronous completion callback
+ asynchronous completion callback
- data to pass to @callback
+ data to pass to @callback
@@ -8903,9 +12100,14 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
c:identifier="ostree_repo_finder_resolve_finish"
version="2018.6"
throws="1">
- Get the results from a ostree_repo_finder_resolve_async() operation.
+ Get the results from a ostree_repo_finder_resolve_async() operation.
+
- array of zero
+ array of zero
or more results
@@ -8913,11 +12115,15 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
- an #OstreeRepoFinder
+ an #OstreeRepoFinder
- #GAsyncResult from the callback
+ #GAsyncResult from the callback
@@ -8930,8 +12136,10 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
glib:type-name="OstreeRepoFinderAvahi"
glib:get-type="ostree_repo_finder_avahi_get_type"
glib:type-struct="RepoFinderAvahiClass">
+
+
@@ -8945,7 +12153,9 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given
c:identifier="ostree_repo_finder_avahi_start"
version="2018.6"
throws="1">
- Start monitoring the local network for peers who are advertising OSTree
+ Start monitoring the local network for peers who are advertising OSTree
repositories, using Avahi. In order for this to work, the #GMainContext
passed to @self at construction time must be iterated (so it will typically
be the global #GMainContext, or be a separate #GMainContext in a worker
@@ -8961,12 +12171,15 @@ Call ostree_repo_finder_avahi_stop() to stop the repo finder.
It is an error to call this function multiple times on the same
#OstreeRepoFinderAvahi instance, or to call it after
ostree_repo_finder_avahi_stop().
+
- an #OstreeRepoFinderAvahi
+ an #OstreeRepoFinderAvahi
@@ -8974,7 +12187,9 @@ ostree_repo_finder_avahi_stop().
- Stop monitoring the local network for peers who are advertising OSTree
+ Stop monitoring the local network for peers who are advertising OSTree
repositories. If any resolve tasks (from ostree_repo_finder_resolve_async())
are in progress, they will be cancelled and will return %G_IO_ERROR_CANCELLED.
@@ -8983,12 +12198,15 @@ Call ostree_repo_finder_avahi_start() to start the repo finder.
It is an error to call this function multiple times on the same
#OstreeRepoFinderAvahi instance, or to call it before
ostree_repo_finder_avahi_start().
+
- an #OstreeRepoFinderAvahi
+ an #OstreeRepoFinderAvahi
@@ -8997,6 +12215,7 @@ ostree_repo_finder_avahi_start().
+
@@ -9008,13 +12227,19 @@ ostree_repo_finder_avahi_start().
glib:type-name="OstreeRepoFinderConfig"
glib:get-type="ostree_repo_finder_config_get_type"
glib:type-struct="RepoFinderConfigClass">
+
- Create a new #OstreeRepoFinderConfig.
+ Create a new #OstreeRepoFinderConfig.
+
- a new #OstreeRepoFinderConfig
+ a new #OstreeRepoFinderConfig
@@ -9022,6 +12247,7 @@ ostree_repo_finder_avahi_start().
+
@@ -9029,27 +12255,35 @@ ostree_repo_finder_avahi_start().
+
+
- an #OstreeRepoFinder
+ an #OstreeRepoFinder
- non-empty array of collection–ref pairs to find remotes for
+ non-empty array of collection–ref pairs to find remotes for
- the local repository which the refs are being resolved for,
+ the local repository which the refs are being resolved for,
which provides configuration information and GPG keys
@@ -9057,7 +12291,9 @@ ostree_repo_finder_avahi_start().
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
allow-none="1"
scope="async"
closure="5">
- asynchronous completion callback
+ asynchronous completion callback
@@ -9075,7 +12313,9 @@ ostree_repo_finder_avahi_start().
nullable="1"
allow-none="1"
closure="5">
- data to pass to @callback
+ data to pass to @callback
@@ -9083,8 +12323,11 @@ ostree_repo_finder_avahi_start().
+
- array of zero
+ array of zero
or more results
@@ -9092,11 +12335,15 @@ ostree_repo_finder_avahi_start().
- an #OstreeRepoFinder
+ an #OstreeRepoFinder
- #GAsyncResult from the callback
+ #GAsyncResult from the callback
@@ -9110,15 +12357,21 @@ ostree_repo_finder_avahi_start().
glib:type-name="OstreeRepoFinderMount"
glib:get-type="ostree_repo_finder_mount_get_type"
glib:type-struct="RepoFinderMountClass">
+
- Create a new #OstreeRepoFinderMount, using the given @monitor to look up
+ Create a new #OstreeRepoFinderMount, using the given @monitor to look up
volumes. If @monitor is %NULL, the monitor from g_volume_monitor_get() will
be used.
+
- a new #OstreeRepoFinderMount
+ a new #OstreeRepoFinderMount
@@ -9126,7 +12379,9 @@ be used.
transfer-ownership="none"
nullable="1"
allow-none="1">
- volume monitor to use, or %NULL to use
+ volume monitor to use, or %NULL to use
the system default
@@ -9137,13 +12392,16 @@ be used.
writable="1"
construct-only="1"
transfer-ownership="none">
- Volume monitor to use to look up mounted volumes when queried.
+ Volume monitor to use to look up mounted volumes when queried.
+
@@ -9155,21 +12413,30 @@ be used.
glib:type-name="OstreeRepoFinderOverride"
glib:get-type="ostree_repo_finder_override_get_type"
glib:type-struct="RepoFinderOverrideClass">
+
- Create a new #OstreeRepoFinderOverride.
+ Create a new #OstreeRepoFinderOverride.
+
- a new #OstreeRepoFinderOverride
+ a new #OstreeRepoFinderOverride
- Add the given @uri to the set of URIs which the repo finder will search for
+ Add the given @uri to the set of URIs which the repo finder will search for
matching refs when ostree_repo_finder_resolve_async() is called on it.
+
@@ -9179,7 +12446,9 @@ matching refs when ostree_repo_finder_resolve_async() is called on it.
c:type="OstreeRepoFinderOverride*"/>
- URI to add to the repo finder
+ URI to add to the repo finder
@@ -9188,6 +12457,7 @@ matching refs when ostree_repo_finder_resolve_async() is called on it.
+
@@ -9198,7 +12468,9 @@ matching refs when ostree_repo_finder_resolve_async() is called on it.
glib:type-name="OstreeRepoFinderResult"
glib:get-type="ostree_repo_finder_result_get_type"
c:symbol-prefix="repo_finder_result">
- #OstreeRepoFinderResult gives a single result from an
+ #OstreeRepoFinderResult gives a single result from an
ostree_repo_finder_resolve_async() or ostree_repo_finder_resolve_all_async()
operation. This represents a single remote which provides none, some or all
of the refs being resolved. The structure includes various bits of metadata
@@ -9228,22 +12500,31 @@ not, the timestamps are zero when any of the following conditions are met:
(1) the override-commit-ids option was used on
ostree_repo_find_remotes_async (2) there was an error in trying to get the
commit metadata (3) the checksum for this ref is %NULL in @ref_to_checksum.
+
- #OstreeRemote which contains the transport details for the result,
+ #OstreeRemote which contains the transport details for the result,
such as its URI and GPG key
- the #OstreeRepoFinder instance which produced this result
+ the #OstreeRepoFinder instance which produced this result
- static priority of the result, where higher numbers indicate lower
+ static priority of the result, where higher numbers indicate lower
priority
- map of collection–ref
+ map of collection–ref
pairs to checksums provided by this remote; values may be %NULL to
indicate this remote doesn’t provide that ref
@@ -9252,12 +12533,16 @@ commit metadata (3) the checksum for this ref is %NULL in @ref_to_checksum.
- Unix timestamp (seconds since the epoch, UTC) when
+ Unix timestamp (seconds since the epoch, UTC) when
the summary file on the remote was last modified, or `0` if unknown
- map of
+ map of
collection–ref pairs to timestamps; values may be 0 for various reasons
@@ -9265,37 +12550,50 @@ commit metadata (3) the checksum for this ref is %NULL in @ref_to_checksum.
-
+
- Create a new #OstreeRepoFinderResult instance. The semantics for the arguments
+ Create a new #OstreeRepoFinderResult instance. The semantics for the arguments
are as described in the #OstreeRepoFinderResult documentation.
+
- a new #OstreeRepoFinderResult
+ a new #OstreeRepoFinderResult
- an #OstreeRemote containing the transport details
+ an #OstreeRemote containing the transport details
for the result
- the #OstreeRepoFinder instance which produced the
+ the #OstreeRepoFinder instance which produced the
result
- static priority of the result, where higher numbers indicate lower
+ static priority of the result, where higher numbers indicate lower
priority
-
+
map of collection–ref pairs to checksums provided by this result
@@ -9306,7 +12604,9 @@ are as described in the #OstreeRepoFinderResult documentation.
transfer-ownership="none"
nullable="1"
allow-none="1">
- map of collection–ref pairs to timestamps provided by this
+ map of collection–ref pairs to timestamps provided by this
result
@@ -9314,7 +12614,9 @@ are as described in the #OstreeRepoFinderResult documentation.
- Unix timestamp (seconds since the epoch, UTC) when
+ Unix timestamp (seconds since the epoch, UTC) when
the summary file for the result was last modified, or `0` if this is unknown
@@ -9323,21 +12625,30 @@ are as described in the #OstreeRepoFinderResult documentation.
- Compare two #OstreeRepoFinderResult instances to work out which one is better
+ Compare two #OstreeRepoFinderResult instances to work out which one is better
to pull from, and hence needs to be ordered before the other.
+
- <0 if @a is ordered before @b, 0 if they are ordered equally,
+ <0 if @a is ordered before @b, 0 if they are ordered equally,
>0 if @b is ordered before @a
- an #OstreeRepoFinderResult
+ an #OstreeRepoFinderResult
- an #OstreeRepoFinderResult
+ an #OstreeRepoFinderResult
@@ -9346,14 +12657,21 @@ to pull from, and hence needs to be ordered before the other.
- Copy an #OstreeRepoFinderResult.
+ Copy an #OstreeRepoFinderResult.
+
- a newly allocated copy of @result
+ a newly allocated copy of @result
- an #OstreeRepoFinderResult to copy
+ an #OstreeRepoFinderResult to copy
@@ -9361,13 +12679,18 @@ to pull from, and hence needs to be ordered before the other.
- Free the given @result.
+ Free the given @result.
+
- an #OstreeRepoFinderResult
+ an #OstreeRepoFinderResult
@@ -9375,13 +12698,18 @@ to pull from, and hence needs to be ordered before the other.
- Free the given @results array, freeing each element and the container.
+ Free the given @results array, freeing each element and the container.
+
- an #OstreeRepoFinderResult
+ an #OstreeRepoFinderResult
@@ -9392,9 +12720,12 @@ to pull from, and hence needs to be ordered before the other.
- An extensible options structure controlling archive import. Ensure that
+ 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().
+
@@ -9411,7 +12742,7 @@ options. This is used by ostree_repo_import_archive_to_mtree().
-
+
@@ -9423,7 +12754,7 @@ options. This is used by ostree_repo_import_archive_to_mtree().
-
+
@@ -9431,7 +12762,9 @@ options. This is used by ostree_repo_import_archive_to_mtree().
- Possibly change a pathname while importing an archive. If %NULL is returned,
+ 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()`.
@@ -9441,23 +12774,30 @@ 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`.
+
- Repo
+ Repo
- Stat buffer
+ Stat buffer
- Path in the archive
+ Path in the archive
- User data
+ User data
+
- List only loose (plain file) objects
+ List only loose (plain file) objects
- List only packed (compacted into blobs) objects
+ List only packed (compacted into blobs) objects
- List all objects
+ List all objects
- Only list objects in this repo, not parents
+ Only list objects in this repo, not parents
+
- No flags.
+ No flags.
- Only list aliases. Since: 2017.10
+ Only list aliases. Since: 2017.10
- Exclude remote refs. Since: 2017.11
+ Exclude remote refs. Since: 2017.11
- Exclude mirrored refs. Since: 2019.2
+ Exclude mirrored refs. Since: 2019.2
- See the documentation of #OstreeRepo for more information about the
+ See the documentation of #OstreeRepo for more information about the
possible modes.
+
- Files are stored as themselves; checkouts are hardlinks; can only be written as root
+ Files are stored as themselves; checkouts are hardlinks; can only be written as root
- Files are compressed, should be owned by non-root. Can be served via HTTP. Since: 2017.12
+ Files are compressed, should be owned by non-root. Can be served via HTTP. Since: 2017.12
- Legacy alias for `OSTREE_REPO_MODE_ARCHIVE`
+ Legacy alias for `OSTREE_REPO_MODE_ARCHIVE`
- Files are stored as themselves, except ownership; can be written by user. Hardlinks work only in user checkouts.
+ Files are stored as themselves, except ownership; can be written by user. Hardlinks work only in user checkouts.
- Same as BARE_USER, but all metadata is not stored, so it can only be used for user checkouts. Does not need xattrs.
+ Same as BARE_USER, but all metadata is not stored, so it can only be used for user checkouts. Does not need xattrs.
+
- No special options for pruning
+ No special options for pruning
- Don't actually delete objects
+ Don't actually delete objects
- Do not traverse individual commit objects, only follow refs
+ Do not traverse individual commit objects, only follow refs
+
@@ -9565,90 +12946,121 @@ possible modes.
-
+
-
+
-
+
+
- No special options for pull
+ No special options for pull
- Write out refs suitable for mirrors and fetch all refs if none requested
+ Write out refs suitable for mirrors and fetch all refs if none requested
- Fetch only the commit metadata
+ Fetch only the commit metadata
- Do verify checksums of local (filesystem-accessible) repositories (defaults on for HTTP)
+ 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.
+ Since 2017.7. Reject writes of content objects with modes outside of 0775.
- Don't verify checksums of objects HTTP repositories (Since: 2017.12)
+ Don't verify checksums of objects HTTP repositories (Since: 2017.12)
- The remote change operation.
+ The remote change operation.
+
- Add a remote
+ Add a remote
- Like above, but do nothing if the remote exists
+ Like above, but do nothing if the remote exists
- Delete a remote
+ Delete a remote
- Delete a remote, do nothing if the remote does not exist
+ Delete a remote, do nothing if the remote does not exist
- Add or replace a remote (Since: 2019.2)
+ Add or replace a remote (Since: 2019.2)
+
- No flags.
+ No flags.
- Exclude remote and mirrored refs. Since: 2019.2
+ Exclude remote and mirrored refs. Since: 2019.2
glib:type-name="OstreeRepoTransactionStats"
glib:get-type="ostree_repo_transaction_stats_get_type"
c:symbol-prefix="repo_transaction_stats">
- A list of statistics for each transaction that may be
+ A list of statistics for each transaction that may be
interesting for reporting purposes.
+
- The total number of metadata objects
+ The total number of metadata objects
in the repository after this transaction has completed.
- The number of metadata objects that
+ The number of metadata objects that
were written to the repository in this transaction.
- The total number of content objects
+ The total number of content objects
in the repository after this transaction has completed.
- The number of content objects that
+ The number of content objects that
were written to the repository in this transaction.
- The amount of data added to the repository,
+ The amount of data added to the repository,
in bytes, counting only content objects.
@@ -9687,23 +13112,32 @@ in bytes, counting only content objects.
- reserved
+ reserved
- reserved
+ reserved
- reserved
+ reserved
- reserved
+ reserved
+
@@ -9734,28 +13168,63 @@ in bytes, counting only content objects.
+
+
+
+
+
+
+
- Length of a sha256 digest when expressed as raw bytes
+ Length of a sha256 digest when expressed as raw bytes
+
- Length of a sha256 digest when expressed as a hexadecimal string
+ Length of a sha256 digest when expressed as a hexadecimal string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
glib:get-type="ostree_sepolicy_get_type">
+
- An accessor object for SELinux policy in root located at @path
+ An accessor object for SELinux policy in root located at @path
- Path to a root directory
+ Path to a root directory
- Cancellable
+ Cancellable
@@ -9786,27 +13262,37 @@ in bytes, counting only content objects.
c:identifier="ostree_sepolicy_new_at"
version="2017.4"
throws="1">
+
- An accessor object for SELinux policy in root located at @rootfs_dfd
+ An accessor object for SELinux policy in root located at @rootfs_dfd
- Directory fd for rootfs (will not be cloned)
+ Directory fd for rootfs (will not be cloned)
- Cancellable
+ Cancellable
- Cleanup function for ostree_sepolicy_setfscreatecon().
+ Cleanup function for ostree_sepolicy_setfscreatecon().
+
@@ -9815,7 +13301,9 @@ in bytes, counting only content objects.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Not used, just in case you didn't infer that from the parameter name
+ Not used, just in case you didn't infer that from the parameter name
@@ -9823,8 +13311,11 @@ in bytes, counting only content objects.
+
- Checksum of current policy
+ Checksum of current policy
@@ -9836,23 +13327,32 @@ in bytes, counting only content objects.
- Store in @out_label the security context for the given @relpath and
+ Store in @out_label the security context for the given @relpath and
mode @unix_mode. If the policy does not specify a label, %NULL
will be returned.
+
- Self
+ Self
- Path
+ Path
- Unix mode
+ Unix mode
transfer-ownership="full"
optional="1"
allow-none="1">
- Return location for security context
+ Return location for security context
- Cancellable
+ Cancellable
+
- Type of current policy
+ Type of current policy
@@ -9885,8 +13392,11 @@ will be returned.
+
- Path to rootfs
+ Path to rootfs
@@ -9898,32 +13408,45 @@ will be returned.
- Reset the security context of @target based on the SELinux policy.
+ Reset the security context of @target based on the SELinux policy.
+
- Self
+ Self
- Path string to use for policy lookup
+ Path string to use for policy lookup
- File attributes
+ File attributes
- Physical path to target file
+ Physical path to target file
- Flags controlling behavior
+ Flags controlling behavior
@@ -9933,14 +13456,18 @@ will be returned.
transfer-ownership="full"
optional="1"
allow-none="1">
- New label, or %NULL if unchanged
+ New label, or %NULL if unchanged
- Cancellable
+ Cancellable
@@ -9948,20 +13475,27 @@ will be returned.
+
- Policy
+ Policy
- Use this path to determine a label
+ Use this path to determine a label
- Used along with @path
+ Used along with @path
@@ -9981,6 +13515,7 @@ will be returned.
+
@@ -9996,16 +13531,23 @@ will be returned.
- Parameters controlling optimization of static deltas.
+ Parameters controlling optimization of static deltas.
+
- Optimize for speed of delta creation over space
+ Optimize for speed of delta creation over space
- Optimize for delta size (may be very slow)
+ Optimize for delta size (may be very slow)
glib:type-name="OstreeSysroot"
glib:get-type="ostree_sysroot_get_type">
- Create a new #OstreeSysroot object for the sysroot at @path. If @path is %NULL,
+ 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
+ An accessor object for an system root located at @path
@@ -10027,7 +13574,9 @@ ostree_sysroot_new_default().
transfer-ownership="none"
nullable="1"
allow-none="1">
- Path to a system root directory, or %NULL to use the
+ Path to a system root directory, or %NULL to use the
current visible root file system
@@ -10035,40 +13584,55 @@ ostree_sysroot_new_default().
+
- An accessor for the current visible root / filesystem
+ An accessor for the current visible root / filesystem
+
- Path to deployment origin file
+ Path to deployment origin file
- A deployment path
+ A deployment path
- Delete any state that resulted from a partially completed
+ Delete any state that resulted from a partially completed
transaction, such as incomplete deployments.
+
- Sysroot
+ Sysroot
- Cancellable
+ Cancellable
@@ -10077,7 +13641,9 @@ transaction, such as incomplete deployments.
c:identifier="ostree_sysroot_cleanup_prune_repo"
version="2018.6"
throws="1">
- Prune the system repository. This is a thin wrapper
+ Prune the system repository. This is a thin wrapper
around ostree_repo_prune_from_reachable(); the primary
addition is that this function automatically gathers
all deployed commits into the reachable set.
@@ -10086,44 +13652,57 @@ You generally want to at least set the `OSTREE_REPO_PRUNE_FLAGS_REFS_ONLY`
flag in @options. A commit traversal depth of `0` is assumed.
Locking: exclusive
+
- Sysroot
+ Sysroot
- Flags controlling pruning
+ Flags controlling pruning
- Number of objects found
+ Number of objects found
- Number of objects deleted
+ Number of objects deleted
- Storage size in bytes of objects deleted
+ Storage size in bytes of objects deleted
- Cancellable
+ Cancellable
@@ -10131,49 +13710,64 @@ Locking: exclusive
- Check out deployment tree with revision @revision, performing a 3
+ Check out deployment tree with revision @revision, performing a 3
way merge with @provided_merge_deployment for configuration.
While this API is not deprecated, you most likely want to use the
ostree_sysroot_stage_tree() API.
+
- Sysroot
+ Sysroot
- osname to use for merge deployment
+ osname to use for merge deployment
- Checksum to add
+ Checksum to add
- Origin to use for upgrades
+ Origin to use for upgrades
- Use this deployment for merge path
+ Use this deployment for merge path
- Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
+ Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
@@ -10182,14 +13776,18 @@ ostree_sysroot_stage_tree() API.
direction="out"
caller-allocates="0"
transfer-ownership="full">
- The new deployment path
+ The new deployment path
- Cancellable
+ Cancellable
@@ -10197,22 +13795,31 @@ ostree_sysroot_stage_tree() API.
- Entirely replace the kernel arguments of @deployment with the
+ Entirely replace the kernel arguments of @deployment with the
values in @new_kargs.
+
- Sysroot
+ Sysroot
- A deployment
+ A deployment
- Replace deployment's kernel arguments
+ Replace deployment's kernel arguments
@@ -10221,7 +13828,9 @@ values in @new_kargs.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -10229,30 +13838,41 @@ values in @new_kargs.
- By default, deployment directories are not mutable. This function
+ By default, deployment directories are not mutable. This function
will allow making them temporarily mutable, for example to allow
layering additional non-OSTree content.
+
- Sysroot
+ Sysroot
- A deployment
+ A deployment
- Whether or not deployment's files can be changed
+ Whether or not deployment's files can be changed
- Cancellable
+ Cancellable
@@ -10261,7 +13881,9 @@ layering additional non-OSTree content.
c:identifier="ostree_sysroot_deployment_set_pinned"
version="2018.3"
throws="1">
- By default, deployments may be subject to garbage collection. Typical uses of
+ 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
@@ -10270,20 +13892,27 @@ for e.g. older versions of libostree unaware of pinning to GC the deployment.
This function does nothing and returns successfully if the deployment
is already in the desired pinning state. It is an error to try to pin
the staged deployment (as it's not in the bootloader entries).
+
- Sysroot
+ Sysroot
- A deployment
+ A deployment
- Whether or not deployment will be automatically GC'd
+ Whether or not deployment will be automatically GC'd
@@ -10292,26 +13921,35 @@ the staged deployment (as it's not in the bootloader entries).
c:identifier="ostree_sysroot_deployment_unlock"
version="2016.4"
throws="1">
- Configure the target deployment @deployment such that it
+ 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.
The `OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX` state is persistent
across reboots.
+
- Sysroot
+ Sysroot
- Deployment
+ Deployment
- Transition to this unlocked state
+ Transition to this unlocked state
@@ -10319,7 +13957,9 @@ across reboots.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -10327,40 +13967,53 @@ across reboots.
- Ensure that @self is set up as a valid rootfs, by creating
+ Ensure that @self is set up as a valid rootfs, by creating
/ostree/repo, among other things.
+
- Sysroot
+ Sysroot
- Cancellable
+ Cancellable
+
- The currently booted deployment, or %NULL if none
+ The currently booted deployment, or %NULL if none
- Sysroot
+ Sysroot
+
@@ -10372,96 +14025,136 @@ across reboots.
+
- Path to deployment root directory
+ Path to deployment root directory
- Sysroot
+ Sysroot
- A deployment
+ A deployment
- Note this function only returns a *relative* path - if you want
+ 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
+ Path to deployment root directory, relative to sysroot
- Repo
+ Repo
- A deployment
+ A deployment
+
- Ordered list of deployments
+ Ordered list of deployments
- Sysroot
+ Sysroot
- Access a file descriptor that refers to the root directory of this
+ Access a file descriptor that refers to the root directory of this
sysroot. ostree_sysroot_load() must have been invoked prior to
calling this function.
+
- A file descriptor valid for the lifetime of @self
+ A file descriptor valid for the lifetime of @self
- Sysroot
+ Sysroot
- Find the deployment to use as a configuration merge source; this is
+ 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
+ Configuration merge deployment
- Sysroot
+ Sysroot
- Operating system group
+ Operating system group
+
- Path to rootfs
+ Path to rootfs
@@ -10473,15 +14166,22 @@ the first one in the current deployment list which matches osname.
- Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open
+ Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open
(see ostree_repo_open()).
+
- %TRUE on success, %FALSE otherwise
+ %TRUE on success, %FALSE otherwise
- Sysroot
+ Sysroot
transfer-ownership="full"
optional="1"
allow-none="1">
- Repository in sysroot @self
+ Repository in sysroot @self
- Cancellable
+ Cancellable
@@ -10505,19 +14209,25 @@ the first one in the current deployment list which matches osname.
+
- The currently staged deployment, or %NULL if none
+ The currently staged deployment, or %NULL if none
- Sysroot
+ Sysroot
+
@@ -10531,46 +14241,62 @@ the first one in the current deployment list which matches osname.
c:identifier="ostree_sysroot_init_osname"
version="2016.4"
throws="1">
- Initialize the directory structure for an "osname", which is a
+ 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.
+
- Sysroot
+ Sysroot
- Name group of operating system checkouts
+ Name group of operating system checkouts
- Cancellable
+ Cancellable
- Load deployment list, bootversion, and subbootversion from the
+ Load deployment list, bootversion, and subbootversion from the
rootfs @self.
+
- Sysroot
+ Sysroot
- Cancellable
+ Cancellable
@@ -10579,12 +14305,15 @@ rootfs @self.
c:identifier="ostree_sysroot_load_if_changed"
version="2016.4"
throws="1">
+
- #OstreeSysroot
+ #OstreeSysroot
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- Acquire an exclusive multi-process write lock for @self. This call
+ Acquire an exclusive multi-process write lock for @self. This call
blocks until the lock has been acquired. The lock is not
reentrant.
Release the lock with ostree_sysroot_unlock(). The lock will also
be released if @self is deallocated.
+
- Self
+ Self
- An asynchronous version of ostree_sysroot_lock().
+ An asynchronous version of ostree_sysroot_lock().
+
- Self
+ Self
- Cancellable
+ Cancellable
allow-none="1"
scope="async"
closure="2">
- Callback
+ Callback
- User data
+ User data
@@ -10657,34 +14404,48 @@ be released if @self is deallocated.
- Call when ostree_sysroot_lock_async() is ready.
+ Call when ostree_sysroot_lock_async() is ready.
+
- Self
+ Self
- Result
+ Result
+
- A new config file which sets @refspec as an origin
+ A new config file which sets @refspec as an origin
- Sysroot
+ Sysroot
- A refspec
+ A refspec
@@ -10692,21 +14453,28 @@ be released if @self is deallocated.
- Like ostree_sysroot_cleanup() in that it cleans up incomplete deployments
+ Like ostree_sysroot_cleanup() in that it cleans up incomplete deployments
and old boot versions, but does NOT prune the repository.
+
- Sysroot
+ Sysroot
- Cancellable
+ Cancellable
@@ -10714,24 +14482,31 @@ and old boot versions, but does NOT prune the repository.
- Find the pending and rollback deployments for @osname. Pass %NULL for @osname
+ 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
we're not looking at the booted deployment.
+
- Sysroot
+ Sysroot
- "stateroot" name
+ "stateroot" name
transfer-ownership="full"
optional="1"
allow-none="1">
- The pending deployment
+ The pending deployment
transfer-ownership="full"
optional="1"
allow-none="1">
- The rollback deployment
+ The rollback deployment
- This function is a variant of ostree_sysroot_get_repo() that cannot fail, and
+ 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_load()
has been invoked successfully.
+
- The OSTree repository in sysroot @self.
+ The OSTree repository in sysroot @self.
- Sysroot
+ Sysroot
@@ -10772,7 +14558,9 @@ has been invoked successfully.
- Prepend @new_deployment to the list of deployments, commit, and
+ 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.
@@ -10794,34 +14582,45 @@ If %OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_NO_CLEAN is
specified, then no cleanup will be performed after adding the
deployment. Make sure to call ostree_sysroot_cleanup() sometime
later, instead.
+
- Sysroot
+ Sysroot
- OS name
+ OS name
- Prepend this deployment to the list
+ Prepend this deployment to the list
- Use this deployment for configuration merge
+ Use this deployment for configuration merge
- Flags controlling behavior
+ Flags controlling behavior
@@ -10829,7 +14628,9 @@ later, instead.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -10838,46 +14639,61 @@ later, instead.
c:identifier="ostree_sysroot_stage_tree"
version="2018.5"
throws="1">
- Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS
+ Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS
shutdown time.
+
- Sysroot
+ Sysroot
- osname to use for merge deployment
+ osname to use for merge deployment
- Checksum to add
+ Checksum to add
- Origin to use for upgrades
+ Origin to use for upgrades
- Use this deployment for merge path
+ Use this deployment for merge path
- Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
+ Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment
@@ -10886,14 +14702,18 @@ shutdown time.
direction="out"
caller-allocates="0"
transfer-ownership="full">
- The new deployment path
+ The new deployment path
- Cancellable
+ Cancellable
@@ -10901,57 +14721,74 @@ shutdown time.
- Try to acquire an exclusive multi-process write lock for @self. If
+ 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).
Release the lock with ostree_sysroot_unlock(). The lock will also
be released if @self is deallocated.
+
- Self
+ Self
- Whether or not the lock has been acquired
+ Whether or not the lock has been acquired
- Release any resources such as file descriptors referring to the
+ 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.
This undoes the effect of `ostree_sysroot_load()`.
+
- Sysroot
+ Sysroot
- Clear the lock previously acquired with ostree_sysroot_lock(). It
+ Clear the lock previously acquired with ostree_sysroot_lock(). It
is safe to call this function if the lock has not been previously
acquired.
+
- Self
+ Self
@@ -10959,18 +14796,25 @@ acquired.
- Older version of ostree_sysroot_write_deployments_with_options(). This
+ Older version of ostree_sysroot_write_deployments_with_options(). This
version will perform post-deployment cleanup by default.
+
- Sysroot
+ Sysroot
- List of new deployments
+ List of new deployments
@@ -10979,7 +14823,9 @@ version will perform post-deployment cleanup by default.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -10988,28 +14834,37 @@ version will perform post-deployment cleanup by default.
c:identifier="ostree_sysroot_write_deployments_with_options"
version="2017.4"
throws="1">
- Assuming @new_deployments have already been deployed in place on disk via
+ Assuming @new_deployments have already been deployed in place on disk via
ostree_sysroot_deploy_tree(), atomically update bootloader configuration. By
default, no post-transaction cleanup will be performed. You should invoke
ostree_sysroot_cleanup() at some point after the transaction, or specify
`do_postclean` in @opts. Skipping the post-transaction cleanup is useful
if for example you want to control pruning of the repository.
+
- Sysroot
+ Sysroot
- List of new deployments
+ List of new deployments
- Options
+ Options
@@ -11017,7 +14872,9 @@ if for example you want to control pruning of the repository.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -11025,33 +14882,44 @@ if for example you want to control pruning of the repository.
- Immediately replace the origin file of the referenced @deployment
+ Immediately replace the origin file of the referenced @deployment
with the contents of @new_origin. If @new_origin is %NULL,
this function will write the current origin of @deployment.
+
- System root
+ System root
- Deployment
+ Deployment
- Origin content
+ Origin content
- Cancellable
+ Cancellable
@@ -11063,7 +14931,9 @@ this function will write the current origin of @deployment.
- libostree will log to the journal various events, such as the /etc merge
+ libostree will log to the journal various events, such as the /etc merge
status, and transaction completion. Connect to this signal to also
synchronously receive the text for those messages. This is intended to be
used by command line tools which link to libostree as a library.
@@ -11074,7 +14944,9 @@ Currently, the structured data is only available via the systemd journal.
- Human-readable string (should not contain newlines)
+ Human-readable string (should not contain newlines)
@@ -11082,6 +14954,7 @@ Currently, the structured data is only available via the systemd journal.
+
@@ -11117,20 +14990,27 @@ Currently, the structured data is only available via the systemd journal.
+
- An upgrader
+ An upgrader
- An #OstreeSysroot
+ An #OstreeSysroot
- Cancellable
+ Cancellable
@@ -11138,27 +15018,36 @@ Currently, the structured data is only available via the systemd journal.
+
- An upgrader
+ An upgrader
- An #OstreeSysroot
+ An #OstreeSysroot
- Operating system name
+ Operating system name
- Cancellable
+ Cancellable
@@ -11166,24 +15055,33 @@ Currently, the structured data is only available via the systemd journal.
+
- An upgrader
+ An upgrader
- An #OstreeSysroot
+ An #OstreeSysroot
- Operating system name
+ Operating system name
- Flags
+ Flags
@@ -11191,7 +15089,9 @@ Currently, the structured data is only available via the systemd journal.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -11199,23 +15099,32 @@ Currently, the structured data is only available via the systemd journal.
- Check that the timestamp on @to_rev is equal to or newer than
+ 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.
+
- Repo
+ Repo
- From revision
+ From revision
- To revision
+ To revision
@@ -11223,60 +15132,82 @@ attackers which provide a client with an older commit.
- Write the new deployment to disk, perform a configuration merge
+ Write the new deployment to disk, perform a configuration merge
with /etc, and update the bootloader configuration.
+
- Self
+ Self
- Cancellable
+ Cancellable
+
- A copy of the origin file, or %NULL if unknown
+ A copy of the origin file, or %NULL if unknown
- Sysroot
+ Sysroot
+
- The origin file, or %NULL if unknown
+ The origin file, or %NULL if unknown
- Sysroot
+ Sysroot
+
- A one-line descriptive summary of the origin, or %NULL if unknown
+ A one-line descriptive summary of the origin, or %NULL if unknown
- Upgrader
+ Upgrader
@@ -11284,26 +15215,35 @@ with /etc, and update the bootloader configuration.
- Perform a pull from the origin. First check if the ref has
+ Perform a pull from the origin. First check if the ref has
changed, if so download the linked objects, and store the updated
ref locally. Then @out_changed will be %TRUE.
If the origin remote is unchanged, @out_changed will be set to
%FALSE.
+
- Upgrader
+ Upgrader
- Flags controlling pull behavior
+ Flags controlling pull behavior
- Flags controlling upgrader behavior
+ Flags controlling upgrader behavior
@@ -11311,21 +15251,27 @@ If the origin remote is unchanged, @out_changed will be set to
transfer-ownership="none"
nullable="1"
allow-none="1">
- Progress
+ Progress
- Whether or not the origin changed
+ Whether or not the origin changed
- Cancellable
+ Cancellable
@@ -11333,27 +15279,38 @@ If the origin remote is unchanged, @out_changed will be set to
- Like ostree_sysroot_upgrader_pull(), but allows retrieving just a
+ 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.
+
- Upgrader
+ Upgrader
- Subdirectory path (should include a leading /)
+ Subdirectory path (should include a leading /)
- Flags controlling pull behavior
+ Flags controlling pull behavior
- Flags controlling upgrader behavior
+ Flags controlling upgrader behavior
@@ -11361,21 +15318,27 @@ from inside the tree such as package databases.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Progress
+ Progress
- Whether or not the origin changed
+ Whether or not the origin changed
- Cancellable
+ Cancellable
@@ -11383,27 +15346,36 @@ from inside the tree such as package databases.
- Replace the origin with @origin.
+ Replace the origin with @origin.
+
- Sysroot
+ Sysroot
- The new origin
+ The new origin
- Cancellable
+ Cancellable
@@ -11431,16 +15403,21 @@ from inside the tree such as package databases.
glib:type-name="OstreeSysrootUpgraderFlags"
glib:get-type="ostree_sysroot_upgrader_flags_get_type"
c:type="OstreeSysrootUpgraderFlags">
- Flags controlling operation of an #OstreeSysrootUpgrader.
+ Flags controlling operation of an #OstreeSysrootUpgrader.
- Do not error if the origin has an unconfigured-state key
+ Do not error if the origin has an unconfigured-state key
+
@@ -11456,71 +15433,116 @@ from inside the tree such as package databases.
+
-
+
-
+
-
+
- The mtime used for stored files. This was originally 0, changed to 1 for
+ The mtime used for stored files. This was originally 0, changed to 1 for
a few releases, then was reverted due to regressions it introduced from
users who had been using zero before.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- ostree version.
+ ostree version.
+
- ostree version, encoded as a string, useful for printing and
+ ostree version, encoded as a string, useful for printing and
concatenation.
+
- ostree year version component (e.g. 2017 if %OSTREE_VERSION is 2017.2)
+ ostree year version component (e.g. 2017 if %OSTREE_VERSION is 2017.2)
+
- In many cases using libostree, a program may need to "break"
+ In many cases using libostree, a program may need to "break"
hardlinks by performing a copy. For example, in order to
logically append to a file.
@@ -11534,20 +15556,27 @@ This function does not perform synchronization via `fsync()` or
`fdatasync()`; the idea is this will commonly be done as part
of an `ostree_repo_commit_transaction()`, which itself takes
care of synchronization.
+
- Directory fd
+ Directory fd
- Path relative to @dfd
+ Path relative to @dfd
- Do not copy extended attributes
+ Do not copy extended attributes
+
- %TRUE if current libostree has at least the requested version, %FALSE otherwise
+ %TRUE if current libostree has at least the requested version, %FALSE otherwise
- Major/year required
+ Major/year required
- Release version required
+ Release version required
@@ -11579,8 +15615,11 @@ care of synchronization.
+
- Modified base64 encoding of @csum
+ Modified base64 encoding of @csum
The "modified" term refers to the fact that instead of '/', the '_'
character is used.
@@ -11588,7 +15627,9 @@ character is used.
- An binary checksum of length 32
+ An binary checksum of length 32
@@ -11598,21 +15639,28 @@ character is used.
- Overwrite the contents of @buf with modified base64 encoding of @csum.
+ 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.
+
- An binary checksum of length 32
+ An binary checksum of length 32
- Output location, must be at least 44 bytes in length
+ Output location, must be at least 44 bytes in length
@@ -11620,19 +15668,26 @@ character is used.
- Overwrite the contents of @buf with stringified version of @csum.
+ Overwrite the contents of @buf with stringified version of @csum.
+
- An binary checksum of length 32
+ An binary checksum of length 32
- Output location, must be at least 45 bytes in length
+ Output location, must be at least 45 bytes in length
@@ -11640,30 +15695,40 @@ character is used.
+
- Binary version of @checksum.
+ Binary version of @checksum.
- An ASCII checksum
+ An ASCII checksum
+
- Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL.
+ Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL.
- #GVariant of type ay
+ #GVariant of type ay
@@ -11671,16 +15736,23 @@ character is used.
- Like ostree_checksum_bytes_peek(), but also throws @error.
+ Like ostree_checksum_bytes_peek(), but also throws @error.
+
- Binary checksum data
+ Binary checksum data
- #GVariant of type ay
+ #GVariant of type ay
@@ -11688,24 +15760,33 @@ character is used.
- Compute the OSTree checksum for a given file.
+ Compute the OSTree checksum for a given file.
+
- File path
+ File path
- Object type
+ Object type
- Return location for binary checksum
+ Return location for binary checksum
@@ -11714,36 +15795,49 @@ character is used.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
- Asynchronously compute the OSTree checksum for a given file;
+ Asynchronously compute the OSTree checksum for a given file;
complete with ostree_checksum_file_async_finish().
+
- File path
+ File path
- Object type
+ Object type
- Priority for operation, see %G_IO_PRIORITY_DEFAULT
+ Priority for operation, see %G_IO_PRIORITY_DEFAULT
- Cancellable
+ Cancellable
allow-none="1"
scope="async"
closure="5">
- Invoked when operation is complete
+ Invoked when operation is complete
- Data for @callback
+ Data for @callback
@@ -11767,25 +15865,34 @@ complete with ostree_checksum_file_async_finish().
- Finish computing the OSTree checksum for a given file; see
+ Finish computing the OSTree checksum for a given file; see
ostree_checksum_file_async().
+
- File path
+ File path
- Async result
+ Async result
- Return location for binary checksum
+ Return location for binary checksum
@@ -11796,19 +15903,26 @@ ostree_checksum_file_async().
c:identifier="ostree_checksum_file_at"
version="2017.13"
throws="1">
- Compute the OSTree checksum for a given file. This is an fd-relative version
+ 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.
+
- Directory file descriptor
+ Directory file descriptor
- Subpath
+ Subpath
@stbuf (allow-none): Optional stat buffer
@@ -11819,11 +15933,15 @@ allocated buffer.
- Object type
+ Object type
- Flags
+ Flags
@out_checksum (out) (transfer full): Return location for hex checksum
@@ -11834,7 +15952,9 @@ allocated buffer.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -11842,38 +15962,51 @@ allocated buffer.
- Compute the OSTree checksum for a given input.
+ Compute the OSTree checksum for a given input.
+
- File information
+ File information
- Optional extended attributes
+ Optional extended attributes
- File content, should be %NULL for symbolic links
+ File content, should be %NULL for symbolic links
- Object type
+ Object type
- Return location for binary checksum
+ Return location for binary checksum
@@ -11882,20 +16015,27 @@ allocated buffer.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
+
- String form of @csum
+ String form of @csum
- An binary checksum of length 32
+ An binary checksum of length 32
@@ -11904,13 +16044,18 @@ allocated buffer.
+
- String form of @csum_bytes
+ String form of @csum_bytes
- #GVariant of type ay
+ #GVariant of type ay
@@ -11918,86 +16063,118 @@ allocated buffer.
- Overwrite the contents of @buf with stringified version of @csum.
+ Overwrite the contents of @buf with stringified version of @csum.
+
- An binary checksum of length 32
+ An binary checksum of length 32
- Output location, must be at least OSTREE_SHA256_STRING_LEN+1 bytes in length
+ Output location, must be at least OSTREE_SHA256_STRING_LEN+1 bytes in length
- Convert @checksum from a string to binary in-place, without
+ Convert @checksum from a string to binary in-place, without
allocating memory. Use this function in hot code paths.
+
- a SHA256 string
+ a SHA256 string
- Output buffer with at least 32 bytes of space
+ Output buffer with at least 32 bytes of space
+
- Binary checksum from @checksum of length 32; free with g_free().
+ Binary checksum from @checksum of length 32; free with g_free().
- An ASCII checksum
+ An ASCII checksum
+
- New #GVariant of type ay with length 32
+ New #GVariant of type ay with length 32
- An ASCII checksum
+ An ASCII checksum
+
- Compare two binary checksums, using memcmp().
+ Compare two binary checksums, using memcmp().
+
- A binary checksum
+ A binary checksum
- A binary checksum
+ A binary checksum
@@ -12006,18 +16183,25 @@ allocating memory. Use this function in hot code paths.
c:identifier="ostree_collection_ref_dupv"
moved-to="CollectionRef.dupv"
version="2018.6">
- Copy an array of #OstreeCollectionRefs, including deep copies of all its
+ Copy an array of #OstreeCollectionRefs, including deep copies of all its
elements. @refs must be %NULL-terminated; it may be empty, but must not be
%NULL.
+
- a newly allocated copy of @refs
+ a newly allocated copy of @refs
- %NULL-terminated array of #OstreeCollectionRefs
+ %NULL-terminated array of #OstreeCollectionRefs
@@ -12028,19 +16212,28 @@ elements. @refs must be %NULL-terminated; it may be empty, but must not be
c:identifier="ostree_collection_ref_equal"
moved-to="CollectionRef.equal"
version="2018.6">
- Compare @ref1 and @ref2 and return %TRUE if they have the same collection ID and
+ Compare @ref1 and @ref2 and return %TRUE if they have the same collection ID and
ref name, and %FALSE otherwise. Both @ref1 and @ref2 must be non-%NULL.
+
- %TRUE if @ref1 and @ref2 are equal, %FALSE otherwise
+ %TRUE if @ref1 and @ref2 are equal, %FALSE otherwise
- an #OstreeCollectionRef
+ an #OstreeCollectionRef
- another #OstreeCollectionRef
+ another #OstreeCollectionRef
@@ -12049,14 +16242,19 @@ ref name, and %FALSE otherwise. Both @ref1 and @ref2 must be non-%NULL.
c:identifier="ostree_collection_ref_freev"
moved-to="CollectionRef.freev"
version="2018.6">
- Free the given array of @refs, including freeing all its elements. @refs
+ Free the given array of @refs, including freeing all its elements. @refs
must be %NULL-terminated; it may be empty, but must not be %NULL.
+
- an array of #OstreeCollectionRefs
+ an array of #OstreeCollectionRefs
@@ -12067,15 +16265,22 @@ must be %NULL-terminated; it may be empty, but must not be %NULL.
c:identifier="ostree_collection_ref_hash"
moved-to="CollectionRef.hash"
version="2018.6">
- Hash the given @ref. This function is suitable for use with #GHashTable.
+ Hash the given @ref. This function is suitable for use with #GHashTable.
@ref must be non-%NULL.
+
- hash value for @ref
+ hash value for @ref
- an #OstreeCollectionRef
+ an #OstreeCollectionRef
@@ -12083,7 +16288,9 @@ must be %NULL-terminated; it may be empty, but must not be %NULL.
- There are use cases where one wants a checksum just of the content of a
+ 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.
@@ -12094,32 +16301,43 @@ 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
+ A SHA-256 hex string, or %NULL if @commit_variant is not well-formed
- A commit object
+ A commit object
+
- Checksum of the parent commit of @commit_variant, or %NULL
+ Checksum of the parent commit of @commit_variant, or %NULL
if none
- Variant of type %OSTREE_OBJECT_TYPE_COMMIT
+ Variant of type %OSTREE_OBJECT_TYPE_COMMIT
+
@@ -12132,50 +16350,67 @@ if none
- A thin wrapper for ostree_content_stream_parse(); this function
+ A thin wrapper for ostree_content_stream_parse(); this function
converts an object content stream back into components.
+
- Whether or not the stream is zlib-compressed
+ Whether or not the stream is zlib-compressed
- Path to file containing content
+ Path to file containing content
- If %TRUE, assume the content has been validated
+ If %TRUE, assume the content has been validated
- The raw file content stream
+ The raw file content stream
- Normal metadata
+ Normal metadata
- Extended attributes
+ Extended attributes
- Cancellable
+ Cancellable
@@ -12183,54 +16418,73 @@ converts an object content stream back into components.
- A thin wrapper for ostree_content_stream_parse(); this function
+ A thin wrapper for ostree_content_stream_parse(); this function
converts an object content stream back into components.
+
- Whether or not the stream is zlib-compressed
+ Whether or not the stream is zlib-compressed
- Directory file descriptor
+ Directory file descriptor
- Subpath
+ Subpath
- If %TRUE, assume the content has been validated
+ If %TRUE, assume the content has been validated
- The raw file content stream
+ The raw file content stream
- Normal metadata
+ Normal metadata
- Extended attributes
+ Extended attributes
- Cancellable
+ Cancellable
@@ -12238,111 +16492,152 @@ converts an object content stream back into components.
- The reverse of ostree_raw_file_to_content_stream(); this function
+ The reverse of ostree_raw_file_to_content_stream(); this function
converts an object content stream back into components.
+
- Whether or not the stream is zlib-compressed
+ Whether or not the stream is zlib-compressed
- Object content stream
+ Object content stream
- Length of stream
+ Length of stream
- If %TRUE, assume the content has been validated
+ If %TRUE, assume the content has been validated
- The raw file content stream
+ The raw file content stream
- Normal metadata
+ Normal metadata
- Extended attributes
+ Extended attributes
- Cancellable
+ Cancellable
+
- A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META
+ A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META
- a #GFileInfo containing directory information
+ a #GFileInfo containing directory information
- Optional extended attributes
+ Optional extended attributes
- Compute the difference between directory @a and @b as 3 separate
+ Compute the difference between directory @a and @b as 3 separate
sets of #OstreeDiffItem in @modified, @removed, and @added.
+
- Flags
+ Flags
- First directory path, or %NULL
+ First directory path, or %NULL
- First directory path
+ First directory path
- Modified files
+ Modified files
- Removed files
+ Removed files
- Added files
+ Added files
@@ -12351,7 +16646,9 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Cancellable
+ Cancellable
@@ -12360,38 +16657,53 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
c:identifier="ostree_diff_dirs_with_options"
version="2017.4"
throws="1">
- Compute the difference between directory @a and @b as 3 separate
+ Compute the difference between directory @a and @b as 3 separate
sets of #OstreeDiffItem in @modified, @removed, and @added.
+
- Flags
+ Flags
- First directory path, or %NULL
+ First directory path, or %NULL
- First directory path
+ First directory path
- Modified files
+ Modified files
- Removed files
+ Removed files
- Added files
+ Added files
@@ -12400,46 +16712,63 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Options
+ Options
- Cancellable
+ Cancellable
- Print the contents of a diff to stdout.
+ Print the contents of a diff to stdout.
+
- First directory path
+ First directory path
- First directory path
+ First directory path
- Modified files
+ Modified files
- Removed files
+ Removed files
- Added files
+ Added files
@@ -12454,7 +16783,10 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
- Use this function with #GHashTable and ostree_object_name_serialize().
+ Use this function with #GHashTable and ostree_object_name_serialize().
+
@@ -12463,7 +16795,9 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
transfer-ownership="none"
nullable="1"
allow-none="1">
- A #GVariant containing a serialized object
+ A #GVariant containing a serialized object
@@ -12472,7 +16806,10 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
c:identifier="ostree_kernel_args_cleanup"
moved-to="KernelArgs.cleanup"
version="2019.3">
- Frees the OstreeKernelArgs structure pointed by *loc
+ Frees the OstreeKernelArgs structure pointed by *loc
+
@@ -12481,7 +16818,9 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
transfer-ownership="none"
nullable="1"
allow-none="1">
- Address of an OstreeKernelArgs pointer
+ Address of an OstreeKernelArgs pointer
@@ -12491,15 +16830,22 @@ sets of #OstreeDiffItem in @modified, @removed, and @added.
moved-to="KernelArgs.from_string"
version="2019.3"
introspectable="0">
- Initializes a new OstreeKernelArgs then parses and appends @options
+ Initializes a new OstreeKernelArgs then parses and appends @options
to the empty OstreeKernelArgs
+
- newly allocated #OstreeKernelArgs with @options appended
+ newly allocated #OstreeKernelArgs with @options appended
- a string representing command line arguments
+ a string representing command line arguments
@@ -12509,14 +16855,20 @@ to the empty OstreeKernelArgs
moved-to="KernelArgs.new"
version="2019.3"
introspectable="0">
- Initializes a new OstreeKernelArgs structure and returns it
+ Initializes a new OstreeKernelArgs structure and returns it
+
- A newly created #OstreeKernelArgs for kernel arguments
+ A newly created #OstreeKernelArgs for kernel arguments
+
@@ -12528,114 +16880,156 @@ to the empty OstreeKernelArgs
- Reverse ostree_object_to_string().
+ Reverse ostree_object_to_string().
+
- An ASCII checksum
+ An ASCII checksum
- Parsed checksum
+ Parsed checksum
- Parsed object type
+ Parsed object type
- Reverse ostree_object_name_serialize(). Note that @out_checksum is
+ Reverse ostree_object_name_serialize(). Note that @out_checksum is
only valid for the lifetime of @variant, and must not be freed.
+
- A #GVariant of type (su)
+ A #GVariant of type (su)
- Pointer into string memory of @variant with checksum
+ Pointer into string memory of @variant with checksum
- Return object type
+ Return object type
+
- A new floating #GVariant containing checksum string and objtype
+ A new floating #GVariant containing checksum string and objtype
- An ASCII checksum
+ An ASCII checksum
- An object type
+ An object type
+
- A string containing both @checksum and a stringifed version of @objtype
+ A string containing both @checksum and a stringifed version of @objtype
- An ASCII checksum
+ An ASCII checksum
- Object type
+ Object type
- The reverse of ostree_object_type_to_string().
+ The reverse of ostree_object_type_to_string().
+
- A stringified version of #OstreeObjectType
+ A stringified version of #OstreeObjectType
- Serialize @objtype to a string; this is used for file extensions.
+ Serialize @objtype to a string; this is used for file extensions.
+
- an #OstreeObjectType
+ an #OstreeObjectType
@@ -12643,18 +17037,25 @@ only valid for the lifetime of @variant, and must not be freed.
- Split a refspec like `gnome-ostree:gnome-ostree/buildmaster` or just
+ 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`.
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.
+
- %TRUE on successful parsing, %FALSE otherwise
+ %TRUE on successful parsing, %FALSE otherwise
- A "refspec" string
+ A "refspec" string
nullable="1"
optional="1"
allow-none="1">
- Return location for the remote name,
+ Return location for the remote name,
or %NULL if the refspec refs to a local ref
@@ -12674,7 +17077,9 @@ will be `gnome-ostree/buildmaster`. In both cases, %TRUE will be returned.
transfer-ownership="full"
optional="1"
allow-none="1">
- Return location for the ref name
+ Return location for the ref name
@@ -12683,39 +17088,52 @@ will be `gnome-ostree/buildmaster`. In both cases, %TRUE will be returned.
c:identifier="ostree_raw_file_to_archive_z2_stream"
version="2016.6"
throws="1">
- Convert from a "bare" file representation into an
+ Convert from a "bare" file representation into an
OSTREE_OBJECT_TYPE_FILE stream suitable for ostree pull.
+
- File raw content stream
+ File raw content stream
- A file info
+ A file info
- Optional extended attributes
+ Optional extended attributes
- Serialized object stream
+ Serialized object stream
- Cancellable
+ Cancellable
@@ -12724,49 +17142,64 @@ OSTREE_OBJECT_TYPE_FILE stream suitable for ostree pull.
c:identifier="ostree_raw_file_to_archive_z2_stream_with_options"
version="2017.3"
throws="1">
- Like ostree_raw_file_to_archive_z2_stream(), but supports an extensible set
+ Like ostree_raw_file_to_archive_z2_stream(), but supports an extensible set
of flags. The following flags are currently defined:
- `compression-level` (`i`): Level of compression to use, 0–9, with 0 being
the least compression, and <0 giving the default level (currently 6).
+
- File raw content stream
+ File raw content stream
- A file info
+ A file info
- Optional extended attributes
+ Optional extended attributes
- A GVariant `a{sv}` with an extensible set of flags
+ A GVariant `a{sv}` with an extensible set of flags
- Serialized object stream
+ Serialized object stream
- Cancellable
+ Cancellable
@@ -12774,47 +17207,62 @@ of flags. The following flags are currently defined:
- Convert from a "bare" file representation into an
+ Convert from a "bare" file representation into an
OSTREE_OBJECT_TYPE_FILE stream. This is a fundamental operation
for writing data to an #OstreeRepo.
+
- File raw content stream
+ File raw content stream
- A file info
+ A file info
- Optional extended attributes
+ Optional extended attributes
- Serialized object stream
+ Serialized object stream
- Length of stream
+ Length of stream
- Cancellable
+ Cancellable
@@ -12822,6 +17270,7 @@ for writing data to an #OstreeRepo.
+
@@ -12838,26 +17287,35 @@ for writing data to an #OstreeRepo.
c:identifier="ostree_repo_finder_resolve_all_async"
moved-to="RepoFinder.resolve_all_async"
version="2018.6">
- A version of ostree_repo_finder_resolve_async() which queries one or more
+ A version of ostree_repo_finder_resolve_async() which queries one or more
@finders in parallel and combines the results.
+
- non-empty array of #OstreeRepoFinders
+ non-empty array of #OstreeRepoFinders
- non-empty array of collection–ref pairs to find remotes for
+ non-empty array of collection–ref pairs to find remotes for
- the local repository which the refs are being resolved for,
+ the local repository which the refs are being resolved for,
which provides configuration information and GPG keys
@@ -12865,7 +17323,9 @@ for writing data to an #OstreeRepo.
transfer-ownership="none"
nullable="1"
allow-none="1">
- a #GCancellable, or %NULL
+ a #GCancellable, or %NULL
allow-none="1"
scope="async"
closure="5">
- asynchronous completion callback
+ asynchronous completion callback
- data to pass to @callback
+ data to pass to @callback
@@ -12891,9 +17355,14 @@ for writing data to an #OstreeRepo.
moved-to="RepoFinder.resolve_all_finish"
version="2018.6"
throws="1">
- Get the results from a ostree_repo_finder_resolve_all_async() operation.
+ Get the results from a ostree_repo_finder_resolve_all_async() operation.
+
- array of zero
+ array of zero
or more results
@@ -12901,7 +17370,9 @@ for writing data to an #OstreeRepo.
- #GAsyncResult from the callback
+ #GAsyncResult from the callback
@@ -12910,13 +17381,18 @@ for writing data to an #OstreeRepo.
c:identifier="ostree_repo_finder_result_freev"
moved-to="RepoFinderResult.freev"
version="2018.6">
- Free the given @results array, freeing each element and the container.
+ Free the given @results array, freeing each element and the container.
+
- an #OstreeRepoFinderResult
+ an #OstreeRepoFinderResult
@@ -12926,14 +17402,21 @@ for writing data to an #OstreeRepo.
- Use this function to see if input strings are checksums.
+ Use this function to see if input strings are checksums.
+
- %TRUE if @sha256 is a valid checksum string, %FALSE otherwise
+ %TRUE if @sha256 is a valid checksum string, %FALSE otherwise
- SHA256 hex string
+ SHA256 hex string
@@ -12942,7 +17425,9 @@ for writing data to an #OstreeRepo.
c:identifier="ostree_validate_collection_id"
version="2018.6"
throws="1">
- Check whether the given @collection_id is valid. Return an error if it is
+ Check whether the given @collection_id is valid. Return an error if it is
invalid or %NULL.
Valid collection IDs are reverse DNS names:
@@ -12955,8 +17440,11 @@ Valid collection IDs are reverse DNS names:
* They must not exceed 255 characters in length.
(This makes their format identical to D-Bus interface names, for consistency.)
+
- %TRUE if @collection_id is a valid collection ID, %FALSE if it is invalid
+ %TRUE if @collection_id is a valid collection ID, %FALSE if it is invalid
or %NULL
@@ -12965,7 +17453,9 @@ Valid collection IDs are reverse DNS names:
transfer-ownership="none"
nullable="1"
allow-none="1">
- A collection ID
+ A collection ID
@@ -12974,13 +17464,18 @@ Valid collection IDs are reverse DNS names:
c:identifier="ostree_validate_remote_name"
version="2017.8"
throws="1">
+
- %TRUE if @remote_name is a valid remote name
+ %TRUE if @remote_name is a valid remote name
- A remote name
+ A remote name
@@ -12988,13 +17483,18 @@ Valid collection IDs are reverse DNS names:
+
- %TRUE if @rev is a valid ref string
+ %TRUE if @rev is a valid ref string
- A revision string
+ A revision string
@@ -13002,13 +17502,18 @@ Valid collection IDs are reverse DNS names:
+
- %TRUE if @checksum is a valid ASCII SHA256 checksum
+ %TRUE if @checksum is a valid ASCII SHA256 checksum
- an ASCII string
+ an ASCII string
@@ -13016,15 +17521,22 @@ Valid collection IDs are reverse DNS names:
- Use this to validate the basic structure of @commit, independent of
+ Use this to validate the basic structure of @commit, independent of
any other objects it references.
+
- %TRUE if @commit is structurally valid
+ %TRUE if @commit is structurally valid
- A commit object, %OSTREE_OBJECT_TYPE_COMMIT
+ A commit object, %OSTREE_OBJECT_TYPE_COMMIT
@@ -13032,13 +17544,18 @@ any other objects it references.
+
- %TRUE if @checksum is a valid binary SHA256 checksum
+ %TRUE if @checksum is a valid binary SHA256 checksum
- a #GVariant of type "ay"
+ a #GVariant of type "ay"
@@ -13046,14 +17563,21 @@ any other objects it references.
- Use this to validate the basic structure of @dirmeta.
+ Use this to validate the basic structure of @dirmeta.
+
- %TRUE if @dirmeta is structurally valid
+ %TRUE if @dirmeta is structurally valid
- A dirmeta object, %OSTREE_OBJECT_TYPE_DIR_META
+ A dirmeta object, %OSTREE_OBJECT_TYPE_DIR_META
@@ -13061,15 +17585,22 @@ any other objects it references.
- Use this to validate the basic structure of @dirtree, independent of
+ Use this to validate the basic structure of @dirtree, independent of
any other objects it references.
+
- %TRUE if @dirtree is structurally valid
+ %TRUE if @dirtree is structurally valid
- A dirtree object, %OSTREE_OBJECT_TYPE_DIR_TREE
+ A dirtree object, %OSTREE_OBJECT_TYPE_DIR_TREE
@@ -13077,13 +17608,18 @@ any other objects it references.
+
- %TRUE if @mode represents a valid file type and permissions
+ %TRUE if @mode represents a valid file type and permissions
- A Unix filesystem mode
+ A Unix filesystem mode
@@ -13091,8 +17627,11 @@ any other objects it references.
+
- %TRUE if @objtype represents a valid object type
+ %TRUE if @objtype represents a valid object type
diff --git a/rust-bindings/rust/src/auto/flags.rs b/rust-bindings/rust/src/auto/flags.rs
index 583537de..6fede678 100644
--- a/rust-bindings/rust/src/auto/flags.rs
+++ b/rust-bindings/rust/src/auto/flags.rs
@@ -94,6 +94,7 @@ bitflags! {
pub struct RepoCommitState: u32 {
const NORMAL = 0;
const PARTIAL = 1;
+ const FSCK_PARTIAL = 2;
}
}
diff --git a/rust-bindings/rust/src/auto/functions.rs b/rust-bindings/rust/src/auto/functions.rs
index 63931098..ae9c41b2 100644
--- a/rust-bindings/rust/src/auto/functions.rs
+++ b/rust-bindings/rust/src/auto/functions.rs
@@ -159,16 +159,16 @@ pub fn create_directory_metadata(dir_info: &gio::FileInfo, xattrs: Option<&glib:
}
}
-//pub fn diff_dirs, Q: IsA, R: IsA>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 24 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, cancellable: Option<&R>) -> Result<(), Error> {
+//pub fn diff_dirs, Q: IsA, R: IsA>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 25 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, cancellable: Option<&R>) -> Result<(), Error> {
// unsafe { TODO: call ostree_sys:ostree_diff_dirs() }
//}
//#[cfg(any(feature = "v2017_4", feature = "dox"))]
-//pub fn diff_dirs_with_options, Q: IsA, R: IsA>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 24 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, options: /*Ignored*/Option<&mut DiffDirsOptions>, cancellable: Option<&R>) -> Result<(), Error> {
+//pub fn diff_dirs_with_options, Q: IsA, R: IsA>(flags: DiffFlags, a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 25 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, options: /*Ignored*/Option<&mut DiffDirsOptions>, cancellable: Option<&R>) -> Result<(), Error> {
// unsafe { TODO: call ostree_sys:ostree_diff_dirs_with_options() }
//}
-//pub fn diff_print, Q: IsA>(a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 24 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }) {
+//pub fn diff_print, Q: IsA>(a: &P, b: &Q, modified: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 25 }, removed: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }, added: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 4, id: 15 }) {
// unsafe { TODO: call ostree_sys:ostree_diff_print() }
//}
diff --git a/rust-bindings/rust/src/auto/gpg_verify_result.rs b/rust-bindings/rust/src/auto/gpg_verify_result.rs
index 7a7e264c..a4067746 100644
--- a/rust-bindings/rust/src/auto/gpg_verify_result.rs
+++ b/rust-bindings/rust/src/auto/gpg_verify_result.rs
@@ -40,7 +40,7 @@ impl GpgVerifyResult {
}
}
- //pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 26 }) -> Option {
+ //pub fn get(&self, signature_index: u32, attrs: /*Unimplemented*/&CArray TypeId { ns_id: 1, id: 27 }) -> Option {
// unsafe { TODO: call ostree_sys:ostree_gpg_verify_result_get() }
//}
diff --git a/rust-bindings/rust/src/auto/mutable_tree.rs b/rust-bindings/rust/src/auto/mutable_tree.rs
index dce8c5c1..45659bb2 100644
--- a/rust-bindings/rust/src/auto/mutable_tree.rs
+++ b/rust-bindings/rust/src/auto/mutable_tree.rs
@@ -60,7 +60,7 @@ pub trait MutableTreeExt: 'static {
fn get_metadata_checksum(&self) -> Option;
- //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 };
+ //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 39 };
fn lookup(&self, name: &str) -> Result<(GString, MutableTree), Error>;
@@ -122,7 +122,7 @@ impl> MutableTreeExt for O {
}
}
- //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 } {
+ //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 39 } {
// unsafe { TODO: call ostree_sys:ostree_mutable_tree_get_subdirs() }
//}
diff --git a/rust-bindings/rust/src/auto/repo.rs b/rust-bindings/rust/src/auto/repo.rs
index c92f3579..657756ac 100644
--- a/rust-bindings/rust/src/auto/repo.rs
+++ b/rust-bindings/rust/src/auto/repo.rs
@@ -426,6 +426,15 @@ impl Repo {
}
}
+ #[cfg(any(feature = "v2019_4", feature = "dox"))]
+ pub fn mark_commit_partial_reason(&self, checksum: &str, is_partial: bool, in_state: RepoCommitState) -> Result<(), Error> {
+ unsafe {
+ let mut error = ptr::null_mut();
+ let _ = ostree_sys::ostree_repo_mark_commit_partial_reason(self.to_glib_none().0, checksum.to_glib_none().0, is_partial.to_glib(), in_state.to_glib(), &mut error);
+ if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
+ }
+ }
+
pub fn open>(&self, cancellable: Option<&P>) -> Result<(), Error> {
unsafe {
let mut error = ptr::null_mut();
diff --git a/rust-bindings/rust/src/auto/sysroot.rs b/rust-bindings/rust/src/auto/sysroot.rs
index 0fa9ab4f..9d054684 100644
--- a/rust-bindings/rust/src/auto/sysroot.rs
+++ b/rust-bindings/rust/src/auto/sysroot.rs
@@ -143,7 +143,7 @@ impl Sysroot {
}
}
- //pub fn get_deployments(&self) -> /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 19 } {
+ //pub fn get_deployments(&self) -> /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 20 } {
// unsafe { TODO: call ostree_sys:ostree_sysroot_get_deployments() }
//}
@@ -328,12 +328,12 @@ impl Sysroot {
}
}
- //pub fn write_deployments>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 19 }, cancellable: Option<&P>) -> Result<(), Error> {
+ //pub fn write_deployments>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 20 }, cancellable: Option<&P>) -> Result<(), Error> {
// unsafe { TODO: call ostree_sys:ostree_sysroot_write_deployments() }
//}
//#[cfg(any(feature = "v2017_4", feature = "dox"))]
- //pub fn write_deployments_with_options>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 19 }, opts: /*Ignored*/&mut SysrootWriteDeploymentsOpts, cancellable: Option<&P>) -> Result<(), Error> {
+ //pub fn write_deployments_with_options>(&self, new_deployments: /*Unknown conversion*//*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 20 }, opts: /*Ignored*/&mut SysrootWriteDeploymentsOpts, cancellable: Option<&P>) -> Result<(), Error> {
// unsafe { TODO: call ostree_sys:ostree_sysroot_write_deployments_with_options() }
//}
diff --git a/rust-bindings/rust/sys/Cargo.toml b/rust-bindings/rust/sys/Cargo.toml
index 6f44d977..95879352 100644
--- a/rust-bindings/rust/sys/Cargo.toml
+++ b/rust-bindings/rust/sys/Cargo.toml
@@ -44,6 +44,7 @@ v2018_7 = ["v2018_6"]
v2018_9 = ["v2018_7"]
v2019_2 = ["v2018_9"]
v2019_3 = ["v2019_2"]
+v2019_4 = ["v2019_3"]
dox = []
[lib]
@@ -63,4 +64,4 @@ repository = "https://gitlab.com/fkrull/ostree-rs"
version = "0.5.0"
["package.metadata.docs.rs"]
-features = ["dox", "v2019_3"]
+features = ["dox", "v2019_4"]
diff --git a/rust-bindings/rust/sys/build.rs b/rust-bindings/rust/sys/build.rs
index 0cdfe5bf..1155decc 100644
--- a/rust-bindings/rust/sys/build.rs
+++ b/rust-bindings/rust/sys/build.rs
@@ -31,7 +31,9 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "ostree-1";
let shared_libs = ["ostree-1"];
- let version = if cfg!(feature = "v2019_3") {
+ let version = if cfg!(feature = "v2019_4") {
+ "2019.4"
+ } else if cfg!(feature = "v2019_3") {
"2019.3"
} else if cfg!(feature = "v2019_2") {
"2019.2"
diff --git a/rust-bindings/rust/sys/src/lib.rs b/rust-bindings/rust/sys/src/lib.rs
index 6785d3ed..fbbb87d1 100644
--- a/rust-bindings/rust/sys/src/lib.rs
+++ b/rust-bindings/rust/sys/src/lib.rs
@@ -155,6 +155,7 @@ pub const OSTREE_REPO_COMMIT_MODIFIER_FLAGS_DEVINO_CANONICAL: OstreeRepoCommitMo
pub type OstreeRepoCommitState = c_uint;
pub const OSTREE_REPO_COMMIT_STATE_NORMAL: OstreeRepoCommitState = 0;
pub const OSTREE_REPO_COMMIT_STATE_PARTIAL: OstreeRepoCommitState = 1;
+pub const OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL: OstreeRepoCommitState = 2;
pub type OstreeRepoCommitTraverseFlags = c_uint;
pub const OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE: OstreeRepoCommitTraverseFlags = 1;
@@ -247,6 +248,11 @@ pub struct _OstreeBootloaderUboot(c_void);
pub type OstreeBootloaderUboot = *mut _OstreeBootloaderUboot;
+#[repr(C)]
+pub struct _OstreeBootloaderZipl(c_void);
+
+pub type OstreeBootloaderZipl = *mut _OstreeBootloaderZipl;
+
#[repr(C)]
pub struct _OstreeChecksumInputStreamPrivate(c_void);
@@ -1213,6 +1219,8 @@ extern "C" {
pub fn ostree_repo_load_variant_if_exists(self_: *mut OstreeRepo, objtype: OstreeObjectType, sha256: *const c_char, out_variant: *mut *mut glib::GVariant, error: *mut *mut glib::GError) -> gboolean;
#[cfg(any(feature = "v2017_15", feature = "dox"))]
pub fn ostree_repo_mark_commit_partial(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, error: *mut *mut glib::GError) -> gboolean;
+ #[cfg(any(feature = "v2019_4", feature = "dox"))]
+ pub fn ostree_repo_mark_commit_partial_reason(self_: *mut OstreeRepo, checksum: *const c_char, is_partial: gboolean, in_state: OstreeRepoCommitState, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_open(self_: *mut OstreeRepo, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_prepare_transaction(self_: *mut OstreeRepo, out_transaction_resume: *mut gboolean, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
pub fn ostree_repo_prune(self_: *mut OstreeRepo, flags: OstreeRepoPruneFlags, depth: c_int, out_objects_total: *mut c_int, out_objects_pruned: *mut c_int, out_pruned_object_size_total: *mut u64, cancellable: *mut gio::GCancellable, error: *mut *mut glib::GError) -> gboolean;
diff --git a/rust-bindings/rust/sys/tests/abi.rs b/rust-bindings/rust/sys/tests/abi.rs
index c613b4b9..03eb76c7 100644
--- a/rust-bindings/rust/sys/tests/abi.rs
+++ b/rust-bindings/rust/sys/tests/abi.rs
@@ -355,6 +355,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES", "2"),
("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_NONE", "0"),
("(guint) OSTREE_REPO_COMMIT_MODIFIER_FLAGS_SKIP_XATTRS", "1"),
+ ("(guint) OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL", "2"),
("(guint) OSTREE_REPO_COMMIT_STATE_NORMAL", "0"),
("(guint) OSTREE_REPO_COMMIT_STATE_PARTIAL", "1"),
("(guint) OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE", "1"),