summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-fetcher.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-12-11 19:30:20 +0100
committerAlexander Larsson <alexl@redhat.com>2015-12-14 08:39:11 +0100
commit96eed957205c5a318c2849100778d48aad748469 (patch)
tree75bebb23765fcf51bdd98c93831d576c3713b4ab /src/libostree/ostree-fetcher.h
parentf771461b4a048d2fb9acde9d38f833438bc51a29 (diff)
downloadostree-96eed957205c5a318c2849100778d48aad748469.tar.gz
repo: Allocate a tmpdir for each OstreeFetcher to isolate concurrent downloads
This way two pulls will not use the same tmpdir and accidentally overwrite each other. However, consecutive OstreeFetchers will reuse the tmpdirs, so that we can properly resume downloading large objects. https://bugzilla.gnome.org/show_bug.cgi?id=757611
Diffstat (limited to 'src/libostree/ostree-fetcher.h')
-rw-r--r--src/libostree/ostree-fetcher.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libostree/ostree-fetcher.h b/src/libostree/ostree-fetcher.h
index 577a4d62..f9c0e042 100644
--- a/src/libostree/ostree-fetcher.h
+++ b/src/libostree/ostree-fetcher.h
@@ -54,8 +54,10 @@ typedef enum {
GType _ostree_fetcher_get_type (void) G_GNUC_CONST;
-OstreeFetcher *_ostree_fetcher_new (int tmpdir_dfd,
- OstreeFetcherConfigFlags flags);
+OstreeFetcher *_ostree_fetcher_new (int tmpdir_dfd,
+ OstreeFetcherConfigFlags flags,
+ GCancellable *cancellable,
+ GError **error);
int _ostree_fetcher_get_dfd (OstreeFetcher *fetcher);