diff --git a/rust-bindings/rust/Makefile b/rust-bindings/rust/Makefile index 80ad01ef..c8c54bf3 100644 --- a/rust-bindings/rust/Makefile +++ b/rust-bindings/rust/Makefile @@ -1,7 +1,7 @@ GIR_REPO := https://github.com/gtk-rs/gir.git GIR_VERSION := 2d1ffab19eb5f9a2f0d7a294dbf07517dab4d989 OSTREE_REPO := https://github.com/fkrull/ostree.git -OSTREE_VERSION := patch-v2020.4 +OSTREE_VERSION := patch-v2020.5 RUSTDOC_STRIPPER_VERSION := 0.1.13 all: gir diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir index 2a84249f..0e5f3ddd 100644 --- a/rust-bindings/rust/gir-files/OSTree-1.0.gir +++ b/rust-bindings/rust/gir-files/OSTree-1.0.gir @@ -1663,7 +1663,7 @@ that should have been under an explicit group. - + @@ -1844,7 +1844,7 @@ or concatenate it with the full ostree_sysroot_get_path(). - + @@ -1860,19 +1860,19 @@ or concatenate it with the full ostree_sysroot_get_path(). version="2018.3"> See ostree_sysroot_deployment_set_pinned(). + line="338">See ostree_sysroot_deployment_set_pinned(). `TRUE` if deployment will not be subject to GC + line="344">`TRUE` if deployment will not be subject to GC Deployment + line="340">Deployment @@ -1884,14 +1884,14 @@ or concatenate it with the full ostree_sysroot_get_path(). `TRUE` if deployment should be "finalized" at shutdown time + line="359">`TRUE` if deployment should be "finalized" at shutdown time Deployment + line="357">Deployment @@ -1957,7 +1957,7 @@ or concatenate it with the full ostree_sysroot_get_path(). - + @@ -1970,6 +1970,10 @@ or concatenate it with the full ostree_sysroot_get_path(). value="2" c:identifier="OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX"> + + version="2018.6"> Find reachable remote URIs which claim to provide any of the given named + line="4932">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 @@ -5269,13 +5273,13 @@ This will use the thread-default #GMainContext, but will not iterate it. an #OstreeRepo + line="4934">an #OstreeRepo non-empty array of collection–ref pairs to find remotes for + line="4935">non-empty array of collection–ref pairs to find remotes for @@ -5286,13 +5290,13 @@ This will use the thread-default #GMainContext, but will not iterate it. allow-none="1"> a GVariant `a{sv}` with an extensible set of flags + line="4936">a GVariant `a{sv}` with an extensible set of flags non-empty array of + line="4937">non-empty array of #OstreeRepoFinder instances to use, or %NULL to use the system defaults @@ -5304,7 +5308,7 @@ This will use the thread-default #GMainContext, but will not iterate it. allow-none="1"> an #OstreeAsyncProgress to update with the operation’s + line="4939">an #OstreeAsyncProgress to update with the operation’s progress, or %NULL @@ -5314,7 +5318,7 @@ This will use the thread-default #GMainContext, but will not iterate it. allow-none="1"> a #GCancellable, or %NULL + line="4941">a #GCancellable, or %NULL closure="6"> asynchronous completion callback + line="4942">asynchronous completion callback allow-none="1"> data to pass to @callback + line="4943">data to pass to @callback @@ -5345,13 +5349,13 @@ This will use the thread-default #GMainContext, but will not iterate it. throws="1"> Finish an asynchronous pull operation started with + line="5729">Finish an asynchronous pull operation started with ostree_repo_find_remotes_async(). a potentially empty array + line="5738">a potentially empty array of #OstreeRepoFinderResults, followed by a %NULL terminator element; or %NULL on error @@ -5362,13 +5366,13 @@ ostree_repo_find_remotes_async(). an #OstreeRepo + line="5731">an #OstreeRepo the asynchronous result + line="5732">the asynchronous result @@ -7189,7 +7193,7 @@ one around this call. version="2018.6"> Pull refs from multiple remotes which have been found using + line="5777">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 @@ -7239,13 +7243,13 @@ The following @options are currently defined: an #OstreeRepo + line="5779">an #OstreeRepo %NULL-terminated array of remotes to + line="5780">%NULL-terminated array of remotes to pull from, including the refs to pull from each @@ -7257,7 +7261,7 @@ The following @options are currently defined: allow-none="1"> A GVariant `a{sv}` with an extensible set of flags + line="5782">A GVariant `a{sv}` with an extensible set of flags an #OstreeAsyncProgress to update with the operation’s + line="5783">an #OstreeAsyncProgress to update with the operation’s progress, or %NULL @@ -7276,7 +7280,7 @@ The following @options are currently defined: allow-none="1"> a #GCancellable, or %NULL + line="5785">a #GCancellable, or %NULL asynchronous completion callback + line="5786">asynchronous completion callback data to pass to @callback + line="5787">data to pass to @callback @@ -7307,26 +7311,26 @@ The following @options are currently defined: throws="1"> Finish an asynchronous pull operation started with + line="6030">Finish an asynchronous pull operation started with ostree_repo_pull_from_remotes_async(). %TRUE on success, %FALSE otherwise + line="6039">%TRUE on success, %FALSE otherwise an #OstreeRepo + line="6032">an #OstreeRepo the asynchronous result + line="6033">the asynchronous result @@ -7406,44 +7410,52 @@ subpath. line="3264">Like ostree_repo_pull(), but supports an extensible set of flags. The following are currently defined: - * refs (as): Array of string refs - * collection-refs (a(sss)): Array of (collection ID, ref name, checksum) tuples to pull; + * `refs` (`as`): Array of string refs + * `collection-refs` (`a(sss)`): Array of (collection ID, ref name, checksum) tuples to pull; mutually exclusive with `refs` and `override-commit-ids`. Checksums may be the empty string to pull the latest commit for that ref - * flags (i): An instance of #OstreeRepoPullFlags - * subdir (s): Pull just this subdirectory - * subdirs (as): Pull just these subdirectories - * override-remote-name (s): If local, add this remote to refspec - * gpg-verify (b): GPG verify commits - * gpg-verify-summary (b): GPG verify summary - * disable-sign-verify (b): Disable signapi verification of commits - * disable-sign-verify-summary (b): Disable signapi verification of the summary - * depth (i): How far in the history to traverse; default is 0, -1 means infinite - * per-object-fsync (b): Perform disk writes more slowly, avoiding a single large I/O sync - * disable-static-deltas (b): Do not use static deltas - * require-static-deltas (b): Require static deltas - * override-commit-ids (as): Array of specific commit IDs to fetch for refs - * timestamp-check (b): Verify commit timestamps are newer than current (when pulling via ref); Since: 2017.11 - * timestamp-check-from-rev (s): Verify that all fetched commit timestamps are newer than timestamp of given rev; Since: 2020.4 - * metadata-size-restriction (t): Restrict metadata objects to a maximum number of bytes; 0 to disable. Since: 2018.9 - * dry-run (b): Only print information on what will be downloaded (requires static deltas) - * override-url (s): Fetch objects from this URL if remote specifies no metalink in options - * inherit-transaction (b): Don't initiate, finish or abort a transaction, useful to do multiple pulls in one transaction. - * http-headers (a(ss)): Additional headers to add to all HTTP requests - * update-frequency (u): Frequency to call the async progress callback in milliseconds, if any; only values higher than 0 are valid - * localcache-repos (as): File paths for local repos to use as caches when doing remote fetches - * append-user-agent (s): Additional string to append to the user agent - * n-network-retries (u): Number of times to retry each download on receiving + * `flags` (`i`): An instance of #OstreeRepoPullFlags + * `subdir` (`s`): Pull just this subdirectory + * `subdirs` (`as`): Pull just these subdirectories + * `override-remote-name` (`s`): If local, add this remote to refspec + * `gpg-verify` (`b`): GPG verify commits + * `gpg-verify-summary` (`b`): GPG verify summary + * `disable-sign-verify` (`b`): Disable signapi verification of commits + * `disable-sign-verify-summary` (`b`): Disable signapi verification of the summary + * `depth` (`i`): How far in the history to traverse; default is 0, -1 means infinite + * `per-object-fsync` (`b`): Perform disk writes more slowly, avoiding a single large I/O sync + * `disable-static-deltas` (`b`): Do not use static deltas + * `require-static-deltas` (`b`): Require static deltas + * `override-commit-ids` (`as`): Array of specific commit IDs to fetch for refs + * `timestamp-check` (`b`): Verify commit timestamps are newer than current (when pulling via ref); Since: 2017.11 + * `timestamp-check-from-rev` (`s`): Verify that all fetched commit timestamps are newer than timestamp of given rev; Since: 2020.4 + * `metadata-size-restriction` (`t`): Restrict metadata objects to a maximum number of bytes; 0 to disable. Since: 2018.9 + * `dry-run` (`b`): Only print information on what will be downloaded (requires static deltas) + * `override-url` (`s`): Fetch objects from this URL if remote specifies no metalink in options + * `inherit-transaction` (`b`): Don't initiate, finish or abort a transaction, useful to do multiple pulls in one transaction. + * `http-headers` (`a(ss)`): Additional headers to add to all HTTP requests + * `update-frequency` (`u`): Frequency to call the async progress callback in milliseconds, if any; only values higher than 0 are valid + * `localcache-repos` (`as`): File paths for local repos to use as caches when doing remote fetches + * `append-user-agent` (`s`): Additional string to append to the user agent + * `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. Since: 2018.6 - * ref-keyring-map (a(sss)): Array of (collection ID, ref name, keyring + * `ref-keyring-map` (`a(sss)`): Array of (collection ID, ref name, keyring remote name) tuples specifying which remote's keyring should be used when doing GPG verification of each collection-ref. This is useful to prevent a remote from serving malicious updates to refs which did not originate from it. This can be a subset or superset of the refs being pulled; any ref 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 + Since: 2019.2 + * `summary-bytes` (`ay'): Contents of the `summary` file to use. If this is + specified, `summary-sig-bytes` must also be specified. This is + useful if doing multiple pull operations in a transaction, using + ostree_repo_remote_fetch_summary_with_options() beforehand to download + the `summary` and `summary.sig` once for the entire transaction. If not + specified, the `summary` will be downloaded from the remote. Since: 2020.5 + * `summary-sig-bytes` (`ay`): Contents of the `summary.sig` file. If this + is specified, `summary-bytes` must also be specified. Since: 2020.5 @@ -7953,7 +7965,7 @@ with #OSTREE_SUMMARY_GVARIANT_FORMAT as the format string. throws="1"> Like ostree_repo_remote_fetch_summary(), but supports an extensible set of flags. + line="6055">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 @@ -7966,20 +7978,20 @@ The following are currently defined: %TRUE on success, %FALSE on failure + line="6077">%TRUE on success, %FALSE on failure Self + line="6057">Self name of a remote + line="6058">name of a remote A GVariant a{sv} with an extensible set of flags + line="6059">A GVariant a{sv} with an extensible set of flags return location for raw summary data, or + line="6060">return location for raw summary data, or %NULL @@ -8011,7 +8023,7 @@ The following are currently defined: allow-none="1"> return location for raw summary + line="6062">return location for raw summary signature data, or %NULL @@ -8021,7 +8033,7 @@ The following are currently defined: allow-none="1"> a #GCancellable + line="6064">a #GCancellable @@ -15317,14 +15329,14 @@ ostree_sysroot_new_default(). Path to deployment origin file + line="1248">Path to deployment origin file A deployment path + line="1246">A deployment path @@ -15431,11 +15443,11 @@ Locking: exclusive throws="1"> Check out deployment tree with revision @revision, performing a 3 + line="2844">Check out deployment tree with revision @revision, performing a 3 way merge with @provided_merge_deployment for configuration. -While this API is not deprecated, you most likely want to use the -ostree_sysroot_stage_tree() API. +When booted into the sysroot, you should use the +ostree_sysroot_stage_tree() API instead. @@ -15444,7 +15456,7 @@ ostree_sysroot_stage_tree() API. Sysroot + line="2846">Sysroot allow-none="1"> osname to use for merge deployment + line="2847">osname to use for merge deployment Checksum to add + line="2848">Checksum to add allow-none="1"> Origin to use for upgrades + line="2849">Origin to use for upgrades allow-none="1"> Use this deployment for merge path + line="2850">Use this deployment for merge path allow-none="1"> Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment + line="2851">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment @@ -15497,7 +15509,7 @@ ostree_sysroot_stage_tree() API. transfer-ownership="full"> The new deployment path + line="2852">The new deployment path allow-none="1"> Cancellable + line="2853">Cancellable @@ -15516,7 +15528,7 @@ ostree_sysroot_stage_tree() API. throws="1"> Entirely replace the kernel arguments of @deployment with the + line="3185">Entirely replace the kernel arguments of @deployment with the values in @new_kargs. @@ -15526,19 +15538,19 @@ values in @new_kargs. Sysroot + line="3187">Sysroot A deployment + line="3188">A deployment Replace deployment's kernel arguments + line="3189">Replace deployment's kernel arguments @@ -15549,7 +15561,7 @@ values in @new_kargs. allow-none="1"> Cancellable + line="3190">Cancellable @@ -15559,7 +15571,7 @@ values in @new_kargs. throws="1"> By default, deployment directories are not mutable. This function + line="3234">By default, deployment directories are not mutable. This function will allow making them temporarily mutable, for example to allow layering additional non-OSTree content. @@ -15570,19 +15582,19 @@ layering additional non-OSTree content. Sysroot + line="3236">Sysroot A deployment + line="3237">A deployment Whether or not deployment's files can be changed + line="3238">Whether or not deployment's files can be changed allow-none="1"> Cancellable + line="3239">Cancellable @@ -15602,7 +15614,7 @@ layering additional non-OSTree content. throws="1"> By default, deployments may be subject to garbage collection. Typical uses of + line="2077">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 @@ -15619,19 +15631,19 @@ the staged deployment (as it's not in the bootloader entries). Sysroot + line="2079">Sysroot A deployment + line="2080">A deployment Whether or not deployment will be automatically GC'd + line="2081">Whether or not deployment will be automatically GC'd @@ -15642,7 +15654,7 @@ the staged deployment (as it's not in the bootloader entries). throws="1"> Configure the target deployment @deployment such that it + line="1871">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. @@ -15656,19 +15668,19 @@ across reboots. Sysroot + line="1873">Sysroot Deployment + line="1874">Deployment Transition to this unlocked state + line="1875">Transition to this unlocked state @@ -15678,7 +15690,7 @@ across reboots. allow-none="1"> Cancellable + line="1876">Cancellable @@ -15718,14 +15730,14 @@ across reboots. The currently booted deployment, or %NULL if none + line="1165">The currently booted deployment, or %NULL if none Sysroot + line="1163">Sysroot @@ -15748,20 +15760,20 @@ across reboots. Path to deployment root directory + line="1234">Path to deployment root directory Sysroot + line="1231">Sysroot A deployment + line="1232">A deployment @@ -15770,27 +15782,27 @@ across reboots. c:identifier="ostree_sysroot_get_deployment_dirpath"> Note this function only returns a *relative* path - if you want + line="1208">Note this function only returns a *relative* path - if you want to access, it, you must either use fd-relative api such as openat(), or concatenate it with the full ostree_sysroot_get_path(). Path to deployment root directory, relative to sysroot + line="1217">Path to deployment root directory, relative to sysroot Repo + line="1210">Repo A deployment + line="1211">A deployment @@ -15801,7 +15813,7 @@ or concatenate it with the full ostree_sysroot_get_path(). Ordered list of deployments + line="1195">Ordered list of deployments @@ -15810,7 +15822,7 @@ or concatenate it with the full ostree_sysroot_get_path(). Sysroot + line="1193">Sysroot @@ -15841,20 +15853,20 @@ prior to calling this function. c:identifier="ostree_sysroot_get_merge_deployment"> Find the deployment to use as a configuration merge source; this is + line="1426">Find the deployment to use as a configuration merge source; this is the first one in the current deployment list which matches osname. Configuration merge deployment + line="1434">Configuration merge deployment Sysroot + line="1428">Sysroot allow-none="1"> Operating system group + line="1429">Operating system group @@ -15887,20 +15899,20 @@ the first one in the current deployment list which matches osname. throws="1"> Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open + line="1259">Retrieve the OSTree repository in sysroot @self. The repo is guaranteed to be open (see ostree_repo_open()). %TRUE on success, %FALSE otherwise + line="1269">%TRUE on success, %FALSE otherwise Sysroot + line="1261">Sysroot allow-none="1"> Repository in sysroot @self + line="1262">Repository in sysroot @self allow-none="1"> Cancellable + line="1263">Cancellable @@ -15932,14 +15944,14 @@ the first one in the current deployment list which matches osname. The currently staged deployment, or %NULL if none + line="1179">The currently staged deployment, or %NULL if none Sysroot + line="1177">Sysroot @@ -15962,7 +15974,7 @@ the first one in the current deployment list which matches osname. throws="1"> Initialize the directory structure for an "osname", which is a + line="1622">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. @@ -15973,13 +15985,13 @@ is required for generating a deployment. Sysroot + line="1624">Sysroot Name group of operating system checkouts + line="1625">Name group of operating system checkouts allow-none="1"> Cancellable + line="1626">Cancellable @@ -15999,7 +16011,7 @@ is required for generating a deployment. throws="1"> Subset of ostree_sysroot_load(); performs basic initialization. Notably, one + line="887">Subset of ostree_sysroot_load(); performs basic initialization. Notably, one can invoke `ostree_sysroot_get_fd()` after calling this function. It is not necessary to call this function if ostree_sysroot_load() is @@ -16012,7 +16024,7 @@ invoked. sysroot + line="889">sysroot @@ -16042,7 +16054,7 @@ invoked. Load deployment list, bootversion, and subbootversion from the + line="843">Load deployment list, bootversion, and subbootversion from the rootfs @self. @@ -16052,7 +16064,7 @@ rootfs @self. Sysroot + line="845">Sysroot allow-none="1"> Cancellable + line="846">Cancellable @@ -16078,7 +16090,7 @@ rootfs @self. #OstreeSysroot + line="1095">#OstreeSysroot allow-none="1"> Cancellable + line="1097">Cancellable @@ -16101,7 +16113,7 @@ rootfs @self. Acquire an exclusive multi-process write lock for @self. This call + line="1476">Acquire an exclusive multi-process write lock for @self. This call blocks until the lock has been acquired. The lock is not reentrant. @@ -16115,7 +16127,7 @@ be released if @self is deallocated. Self + line="1478">Self @@ -16123,7 +16135,7 @@ be released if @self is deallocated. An asynchronous version of ostree_sysroot_lock(). + line="1586">An asynchronous version of ostree_sysroot_lock(). @@ -16132,7 +16144,7 @@ be released if @self is deallocated. Self + line="1588">Self allow-none="1"> Cancellable + line="1589">Cancellable closure="2"> Callback + line="1590">Callback allow-none="1"> User data + line="1591">User data @@ -16171,7 +16183,7 @@ be released if @self is deallocated. throws="1"> Call when ostree_sysroot_lock_async() is ready. + line="1605">Call when ostree_sysroot_lock_async() is ready. @@ -16180,13 +16192,13 @@ be released if @self is deallocated. Self + line="1607">Self Result + line="1608">Result @@ -16197,20 +16209,20 @@ be released if @self is deallocated. A new config file which sets @refspec as an origin + line="1465">A new config file which sets @refspec as an origin Sysroot + line="1462">Sysroot A refspec + line="1463">A refspec @@ -16249,7 +16261,7 @@ and old boot versions, but does NOT prune the repository. version="2017.7"> Find the pending and rollback deployments for @osname. Pass %NULL for @osname + line="1369">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 @@ -16262,7 +16274,7 @@ we're not looking at the booted deployment. Sysroot + line="1371">Sysroot allow-none="1"> "stateroot" name + line="1372">"stateroot" name allow-none="1"> The pending deployment + line="1373">The pending deployment allow-none="1"> The rollback deployment + line="1374">The rollback deployment @@ -16301,21 +16313,21 @@ we're not looking at the booted deployment. This function is a variant of ostree_sysroot_get_repo() that cannot fail, and + line="1284">This function is a variant of ostree_sysroot_get_repo() that cannot fail, and returns a cached repository. Can only be called after ostree_sysroot_initialize() or ostree_sysroot_load() has been invoked successfully. The OSTree repository in sysroot @self. + line="1292">The OSTree repository in sysroot @self. Sysroot + line="1286">Sysroot @@ -16352,7 +16364,7 @@ be invoked before or after ostree_sysroot_initialize(). throws="1"> Prepend @new_deployment to the list of deployments, commit, and + line="1686">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. @@ -16382,7 +16394,7 @@ later, instead. Sysroot + line="1688">Sysroot allow-none="1"> OS name + line="1689">OS name Prepend this deployment to the list + line="1690">Prepend this deployment to the list allow-none="1"> Use this deployment for configuration merge + line="1691">Use this deployment for configuration merge Flags controlling behavior + line="1692">Flags controlling behavior @@ -16422,7 +16434,7 @@ later, instead. allow-none="1"> Cancellable + line="1693">Cancellable @@ -16433,7 +16445,7 @@ later, instead. throws="1"> Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS + line="2948">Like ostree_sysroot_deploy_tree(), but "finalization" only occurs at OS shutdown time. @@ -16443,7 +16455,7 @@ shutdown time. Sysroot + line="2950">Sysroot allow-none="1"> osname to use for merge deployment + line="2951">osname to use for merge deployment Checksum to add + line="2952">Checksum to add allow-none="1"> Origin to use for upgrades + line="2953">Origin to use for upgrades allow-none="1"> Use this deployment for merge path + line="2954">Use this deployment for merge path allow-none="1"> Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment + line="2955">Use these as kernel arguments; if %NULL, inherit options from provided_merge_deployment @@ -16496,7 +16508,7 @@ shutdown time. transfer-ownership="full"> The new deployment path + line="2956">The new deployment path allow-none="1"> Cancellable + line="2957">Cancellable @@ -16515,7 +16527,7 @@ shutdown time. throws="1"> Try to acquire an exclusive multi-process write lock for @self. If + line="1502">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). @@ -16530,7 +16542,7 @@ be released if @self is deallocated. Self + line="1504">Self transfer-ownership="full"> Whether or not the lock has been acquired + line="1505">Whether or not the lock has been acquired @@ -16569,7 +16581,7 @@ This undoes the effect of `ostree_sysroot_load()`. Clear the lock previously acquired with ostree_sysroot_lock(). It + line="1550">Clear the lock previously acquired with ostree_sysroot_lock(). It is safe to call this function if the lock has not been previously acquired. @@ -16580,7 +16592,7 @@ acquired. Self + line="1552">Self @@ -16590,7 +16602,7 @@ acquired. throws="1"> Older version of ostree_sysroot_write_deployments_with_options(). This + line="2220">Older version of ostree_sysroot_write_deployments_with_options(). This version will perform post-deployment cleanup by default. @@ -16600,13 +16612,13 @@ version will perform post-deployment cleanup by default. Sysroot + line="2222">Sysroot List of new deployments + line="2223">List of new deployments @@ -16617,7 +16629,7 @@ version will perform post-deployment cleanup by default. allow-none="1"> Cancellable + line="2224">Cancellable @@ -16628,7 +16640,7 @@ version will perform post-deployment cleanup by default. throws="1"> Assuming @new_deployments have already been deployed in place on disk via + line="2346">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 @@ -16642,13 +16654,13 @@ if for example you want to control pruning of the repository. Sysroot + line="2348">Sysroot List of new deployments + line="2349">List of new deployments @@ -16656,7 +16668,7 @@ if for example you want to control pruning of the repository. Options + line="2350">Options @@ -16666,7 +16678,7 @@ if for example you want to control pruning of the repository. allow-none="1"> Cancellable + line="2351">Cancellable @@ -16676,7 +16688,7 @@ if for example you want to control pruning of the repository. throws="1"> Immediately replace the origin file of the referenced @deployment + line="957">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. @@ -16687,13 +16699,13 @@ this function will write the current origin of @deployment. System root + line="959">System root Deployment + line="960">Deployment allow-none="1"> Origin content + line="961">Origin content allow-none="1"> Cancellable + line="962">Cancellable @@ -17298,7 +17310,7 @@ users who had been using zero before. "None", DeploymentUnlockedState::Development => "Development", DeploymentUnlockedState::Hotfix => "Hotfix", + DeploymentUnlockedState::Transient => "Transient", _ => "Unknown", }) } @@ -37,6 +39,7 @@ impl ToGlib for DeploymentUnlockedState { DeploymentUnlockedState::None => ostree_sys::OSTREE_DEPLOYMENT_UNLOCKED_NONE, DeploymentUnlockedState::Development => ostree_sys::OSTREE_DEPLOYMENT_UNLOCKED_DEVELOPMENT, DeploymentUnlockedState::Hotfix => ostree_sys::OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX, + DeploymentUnlockedState::Transient => ostree_sys::OSTREE_DEPLOYMENT_UNLOCKED_TRANSIENT, DeploymentUnlockedState::__Unknown(value) => value } } @@ -49,6 +52,7 @@ impl FromGlib for DeploymentUnlockedS 0 => DeploymentUnlockedState::None, 1 => DeploymentUnlockedState::Development, 2 => DeploymentUnlockedState::Hotfix, + 3 => DeploymentUnlockedState::Transient, value => DeploymentUnlockedState::__Unknown(value), } } diff --git a/rust-bindings/rust/src/auto/versions.txt b/rust-bindings/rust/src/auto/versions.txt index e216eb31..48860c45 100644 --- a/rust-bindings/rust/src/auto/versions.txt +++ b/rust-bindings/rust/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1) -from gir-files (https://github.com/gtk-rs/gir-files @ 7ce8ed9) +from gir-files (https://github.com/gtk-rs/gir-files @ 9b77077+) diff --git a/rust-bindings/rust/sys/src/auto/versions.txt b/rust-bindings/rust/sys/src/auto/versions.txt index e216eb31..48860c45 100644 --- a/rust-bindings/rust/sys/src/auto/versions.txt +++ b/rust-bindings/rust/sys/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1) -from gir-files (https://github.com/gtk-rs/gir-files @ 7ce8ed9) +from gir-files (https://github.com/gtk-rs/gir-files @ 9b77077+) diff --git a/rust-bindings/rust/sys/src/lib.rs b/rust-bindings/rust/sys/src/lib.rs index e0898c99..b2a96cab 100644 --- a/rust-bindings/rust/sys/src/lib.rs +++ b/rust-bindings/rust/sys/src/lib.rs @@ -31,6 +31,7 @@ pub type OstreeDeploymentUnlockedState = c_int; pub const OSTREE_DEPLOYMENT_UNLOCKED_NONE: OstreeDeploymentUnlockedState = 0; pub const OSTREE_DEPLOYMENT_UNLOCKED_DEVELOPMENT: OstreeDeploymentUnlockedState = 1; pub const OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX: OstreeDeploymentUnlockedState = 2; +pub const OSTREE_DEPLOYMENT_UNLOCKED_TRANSIENT: OstreeDeploymentUnlockedState = 3; pub type OstreeGpgError = c_int; pub const OSTREE_GPG_ERROR_NO_SIGNATURE: OstreeGpgError = 0; diff --git a/rust-bindings/rust/sys/tests/abi.rs b/rust-bindings/rust/sys/tests/abi.rs index 7f294b0d..6f84ad9c 100644 --- a/rust-bindings/rust/sys/tests/abi.rs +++ b/rust-bindings/rust/sys/tests/abi.rs @@ -304,6 +304,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) OSTREE_DEPLOYMENT_UNLOCKED_DEVELOPMENT", "1"), ("(gint) OSTREE_DEPLOYMENT_UNLOCKED_HOTFIX", "2"), ("(gint) OSTREE_DEPLOYMENT_UNLOCKED_NONE", "0"), + ("(gint) OSTREE_DEPLOYMENT_UNLOCKED_TRANSIENT", "3"), ("(guint) OSTREE_DIFF_FLAGS_IGNORE_XATTRS", "1"), ("(guint) OSTREE_DIFF_FLAGS_NONE", "0"), ("OSTREE_DIRMETA_GVARIANT_STRING", "(uuua(ayay))"),