summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-core.h
diff options
context:
space:
mode:
authorKrzesimir Nowak <krzesimir@kinvolk.io>2016-05-23 13:28:04 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2016-05-26 16:53:08 +0000
commit569e43c280d6b09b5a683c5b4ea41a448f1f7ce2 (patch)
tree0c91cb805b7db00c5222ec24b4c3ce4b9f20bbfe /src/libostree/ostree-core.h
parent6bf94ec2335cd34e6c0b729bc836388732621906 (diff)
downloadostree-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.h9
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,