diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-05-21 22:01:09 +0900 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-05-28 17:03:22 +0000 |
commit | da4d0245af9b937c7fe65540f022bc77bc0354ed (patch) | |
tree | bd8b2f8f575c7bd89b1ccc653e730d7114f618bb /src/libostree/ostree-repo.h | |
parent | 1c0933b40ca090d3c748bda69eb9a1957a136e72 (diff) | |
download | ostree-da4d0245af9b937c7fe65540f022bc77bc0354ed.tar.gz |
lib/commit: Added new ostree_repo_write_archive_to_mtree_from_fd()
Similar to ostree_repo_write_archive_to_mtree(), but takes
a file descriptor to read the archive from instead of mandating
a file path.
Usefull for importing archives into an OSTree repo over a socket
or from standard input in command line tools.
Closes: #1862
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-repo.h')
-rw-r--r-- | src/libostree/ostree-repo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo.h b/src/libostree/ostree-repo.h index afa33155..b5af2f82 100644 --- a/src/libostree/ostree-repo.h +++ b/src/libostree/ostree-repo.h @@ -737,6 +737,16 @@ gboolean ostree_repo_write_archive_to_mtree (OstreeRepo * GCancellable *cancellable, GError **error); + +_OSTREE_PUBLIC +gboolean ostree_repo_write_archive_to_mtree_from_fd (OstreeRepo *self, + int fd, + OstreeMutableTree *mtree, + OstreeRepoCommitModifier *modifier, + gboolean autocreate_parents, + GCancellable *cancellable, + GError **error); + /** * OstreeRepoImportArchiveTranslatePathname: * @repo: Repo |