diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir old mode 100644 new mode 100755 index 41f7e57d..12321251 --- a/rust-bindings/rust/gir-files/OSTree-1.0.gir +++ b/rust-bindings/rust/gir-files/OSTree-1.0.gir @@ -362,6 +362,14 @@ 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. +Consult the source code in configure.ac (or the CLI `ostree --version`) for examples. + + %NULL-terminated array of #OstreeCollectionRefs - + @@ -1558,6 +1566,20 @@ The attribute's #GVariantType is shown in brackets. the signature is already from the primary key rather than a subkey, and will be the empty string if the key is missing.) + + [#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 + 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) + @@ -1810,6 +1832,388 @@ signature from trusted keyring, otherwise %FALSE + + + 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 + + + + key or key/value pair to be added + + + + + + 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 + + + + an array of key=value argument pairs + + + + + + Appends each argument that does not have one of the @prefixes as prefix to the @kargs + + + + + + a OstreeKernelArgs instance + + + + an array of key=value argument pairs + + + + an array of prefix strings + + + + + + 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 + + + + + a OstreeKernelArgs instance + + + + optional GCancellable object, NULL to ignore + + + + + + 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 + one value that is associated with the key + + 2: for input arg wth key/value pair, the specific key + value pair will be deleted from the pointer array + if those exist. + + 3: If the found key has only one value + associated with it, the key entry in the table will also + be removed, and the key will be removed from order table + + Returns: %TRUE on success, %FALSE on failure + + Since: 2019.3 + + + + + + a OstreeKernelArgs instance + + + + key or key/value pair for deletion + + + + + + 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 + + + + + an OstreeKernelArgs instance + + + + the key to remove + + + + + + Frees the kargs structure + + + + + + An OstreeKernelArgs that represents kernel arguments + + + + + + 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, +otherwise returns last element of value array corresponding to @key + + + + + a OstreeKernelArgs instance + + + + a key to look for in @kargs hash table + + + + + + 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 +the form: +key, key=new_val, or key=old_val=new_val +The first one swaps the old_val with the key to an empty value +The second and third replace the old_val into the new_val + +When replacing key with multiple values, the arg can only be +in the form of: +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: +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) + + + + + OstreeKernelArgs instance + + + + a string argument + + + + + + Parses @options by separating it by whitespaces and appends each argument to @kargs + + + + + + a OstreeKernelArgs instance + + + + a string representing command line arguments + + + + + + 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 + + + + key or key/value pair for replacement + + + + + + 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 + + + + an array of key or key/value pairs + + + + + + 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 + + + + key or key/value pair for replacement + + + + + + 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, +separated by single whitespaces + + + + + a OstreeKernelArgs instance + + + + + + 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 + + + + + + + a OstreeKernelArgs instance + + + + + + Frees the OstreeKernelArgs structure pointed by *loc + + + + + + Address of an OstreeKernelArgs pointer + + + + + + Initializes a new OstreeKernelArgs then parses and appends @options +to the empty OstreeKernelArgs + + newly allocated #OstreeKernelArgs with @options appended + + + + + a string representing command line arguments + + + + + + Initializes a new OstreeKernelArgs structure and returns it + + A newly created #OstreeKernelArgs for kernel arguments + + + + @@ -2661,7 +3065,7 @@ transaction will do nothing and return successfully. NULL-terminated array of GPG keys. - + @@ -3111,7 +3515,7 @@ This will use the thread-default #GMainContext, but will not iterate it. non-empty array of collection–ref pairs to find remotes for - + @@ -3269,7 +3673,7 @@ the "core.default-repo-finders" config key. %NULL-terminated array of strings. - + @@ -3316,7 +3720,10 @@ repository (to see whether a ref was written). c:identifier="ostree_repo_get_min_free_space_bytes" version="2018.9" throws="1"> - It can be used to query the value (in bytes) of min-free-space-* config option. + 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. @@ -4582,7 +4989,7 @@ The following @options are currently defined: %NULL-terminated array of remotes to pull from, including the refs to pull from each - + @@ -5308,7 +5715,7 @@ from the remote named @name. nullable="1" allow-none="1"> a %NULL-terminated array of GPG key IDs, or %NULL - + @@ -6475,6 +6882,48 @@ file structure to @mtree. + + Read an archive from @fd and import it into the repository, writing +its file structure to @mtree. + + + + + + An #OstreeRepo + + + + A file descriptor to read the archive from + + + + The #OstreeMutableTree to write to + + + + Optional commit modifier + + + + Autocreate parent directories + + + + Cancellable + + + + @@ -8229,13 +8678,13 @@ options. This is used by ostree_repo_export_tree_to_archive(). non-empty array of #OstreeRepoFinders - + non-empty array of collection–ref pairs to find remotes for - + @@ -8323,7 +8772,7 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given non-empty array of collection–ref pairs to find remotes for - + @@ -8416,7 +8865,7 @@ Pass the results to ostree_repo_pull_from_remotes_async() to pull the given non-empty array of collection–ref pairs to find remotes for - + @@ -8595,7 +9044,7 @@ ostree_repo_finder_avahi_start(). non-empty array of collection–ref pairs to find remotes for - + @@ -8756,6 +9205,8 @@ of the refs being resolved. The structure includes various bits of metadata which allow ostree_repo_pull_from_remotes_async() (for example) to prioritise how to pull the refs. +An #OstreeRepoFinderResult is immutable after construction. + The @priority is used as one input of many to ordering functions like ostree_repo_finder_result_compare(). @@ -11138,7 +11589,7 @@ character is used. An binary checksum of length 32 - + @@ -11156,7 +11607,7 @@ character is used. An binary checksum of length 32 - + @@ -11176,7 +11627,7 @@ character is used. An binary checksum of length 32 - + @@ -11206,7 +11657,7 @@ character is used. c:identifier="ostree_checksum_bytes_peek"> Binary checksum data in @bytes; do not free. If @bytes does not have the correct length, return %NULL. - + @@ -11223,7 +11674,7 @@ character is used. Like ostree_checksum_bytes_peek(), but also throws @error. Binary checksum data - + @@ -11445,7 +11896,7 @@ allocated buffer. An binary checksum of length 32 - + @@ -11474,7 +11925,7 @@ allocated buffer. An binary checksum of length 32 - + @@ -11567,7 +12018,7 @@ elements. @refs must be %NULL-terminated; it may be empty, but must not be %NULL-terminated array of #OstreeCollectionRefs - + @@ -12017,6 +12468,53 @@ sets of #OstreeDiffItem in @modified, @removed, and @added. + + Frees the OstreeKernelArgs structure pointed by *loc + + + + + + Address of an OstreeKernelArgs pointer + + + + + + Initializes a new OstreeKernelArgs then parses and appends @options +to the empty OstreeKernelArgs + + newly allocated #OstreeKernelArgs with @options appended + + + + + a string representing command line arguments + + + + + + Initializes a new OstreeKernelArgs structure and returns it + + A newly created #OstreeKernelArgs for kernel arguments + + + @@ -12348,13 +12846,13 @@ for writing data to an #OstreeRepo. non-empty array of #OstreeRepoFinders - + non-empty array of collection–ref pairs to find remotes for - +