Objects committed above this size will be allowed, but a warning will be emitted.
Maximum depth of metadata.
Length of a sha256 digest when expressed as raw bytes
Length of a sha256 digest when expressed as a hexadecimal string
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.
Compute the OSTree checksum for a given file.
File path
Object type
Cancellable
Asynchronously compute the OSTree checksum for a given file; complete with ostree_checksum_file_async_finish().
File path
Object type
Priority for operation, see %G_IO_PRIORITY_DEFAULT
Cancellable
Invoked when operation is complete
Finish computing the OSTree checksum for a given file; see ostree_checksum_file_async().
File path
Async result
Compute the OSTree checksum for a given input.
File information
Optional extended attributes
File content, should be %NULL for symbolic links
Object type
Cancellable
Convert checksum
from a string to binary in-place, without
allocating memory. Use this function in hot code paths.
a SHA256 string
Output buffer with at least 32 bytes of space
Compare two binary checksums, using memcmp().
A binary checksum
A binary checksum
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
Path to file containing content
If %TRUE, assume the content has been validated
Cancellable
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
Directory file descriptor
Subpath
If %TRUE, assume the content has been validated
Cancellable
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
Object content stream
Length of stream
If %TRUE, assume the content has been validated
Cancellable
Compute the difference between directory a
and b
as 3 separate
sets of #OstreeDiffItem in modified,
removed,
and added
.
Flags
First directory path, or %NULL
First directory path
Modified files
Removed files
Added files
Cancellable
Use this function with #GHashTable and ostree_object_name_serialize().
A #GVariant containing a serialized object
Reverse ostree_object_to_string().
An ASCII checksum
Reverse ostree_object_name_serialize(). Note that out_checksum
is
only valid for the lifetime of variant,
and must not be freed.
The reverse of ostree_object_type_to_string().
A stringified version of #OstreeObjectType
Serialize objtype
to a string; this is used for file extensions.
an #OstreeObjectType
Split a refspec like "gnome-ostree:gnome-ostree/buildmaster" into
two parts; out_remote
will be set to "gnome-ostree", and out_ref
will be "gnome-ostree/buildmaster".
If refspec
refers to a local ref, out_remote
will be %NULL.
A "refspec" string
Convert from a "bare" file representation into an OSTREE_OBJECT_TYPE_FILE stream suitable for ostree pull.
File raw content stream
A file info
Optional extended attributes
Cancellable
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
A file info
Optional extended attributes
Cancellable
Use this function to see if input strings are checksums.
SHA256 hex string
Maximum permitted size in bytes of metadata objects. This is an arbitrary number, but really, no one should be putting humongous data in metadata.