diff options
author | Krzesimir Nowak <krzesimir@kinvolk.io> | 2016-05-23 13:28:04 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2016-05-26 16:53:08 +0000 |
commit | 569e43c280d6b09b5a683c5b4ea41a448f1f7ce2 (patch) | |
tree | 0c91cb805b7db00c5222ec24b4c3ce4b9f20bbfe /src/libostree/ostree-core.h | |
parent | 6bf94ec2335cd34e6c0b729bc836388732621906 (diff) | |
download | ostree-569e43c280d6b09b5a683c5b4ea41a448f1f7ce2.tar.gz |
core: Add a function creating an archive-z2 content stream
It is quite similar to the already existing
ostree_raw_file_to_content_stream function, so I factored the common
part to a separate function. The difference is that we cannot report
the size of the resulting stream.
Can be useful for serving a "bare" repository as a faked "archive-z2"
repository.
Closes: #308
Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-core.h')
-rw-r--r-- | src/libostree/ostree-core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h index 29b5a1c0..4d788b20 100644 --- a/src/libostree/ostree-core.h +++ b/src/libostree/ostree-core.h @@ -275,6 +275,15 @@ gboolean ostree_content_file_parse_at (gboolean compressed, GError **error); _OSTREE_PUBLIC +gboolean +ostree_raw_file_to_archive_z2_stream (GInputStream *input, + GFileInfo *file_info, + GVariant *xattrs, + GInputStream **out_input, + GCancellable *cancellable, + GError **error); + +_OSTREE_PUBLIC gboolean ostree_raw_file_to_content_stream (GInputStream *input, GFileInfo *file_info, GVariant *xattrs, |