ostree-fetcher: add max_size argument to change _ostree_metalink_request_sync

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano authored and Colin Walters committed 2014-11-12 21:20:28 -05:00
1 parent a4a4921d3f
commit d48aca5645
3 files changed
+6 -3

No files matched your search

+4 -3
View File
@@ -724,6 +724,7 @@ _ostree_fetcher_contents_membuf_sync (OstreeFetcher *fetcher,
GBytes **out_contents, GBytes **out_contents,
GMainLoop *loop, GMainLoop *loop,
gpointer user_data, gpointer user_data,
guint64 max_size,
GCancellable *cancellable, GCancellable *cancellable,
GError **error) GError **error)
{ {
@@ -744,9 +745,9 @@ _ostree_fetcher_contents_membuf_sync (OstreeFetcher *fetcher,
data.error = error; data.error = error;
_ostree_fetcher_stream_uri_async (fetcher, uri, _ostree_fetcher_stream_uri_async (fetcher, uri,
OSTREE_MAX_METADATA_SIZE, max_size,
cancellable, cancellable,
fetch_uri_sync_on_complete, &data); fetch_uri_sync_on_complete, &data);
run_mainloop_monitor_fetcher (&data); run_mainloop_monitor_fetcher (&data);
if (!data.result_stream) if (!data.result_stream)
+1
View File
@@ -94,6 +94,7 @@ gboolean _ostree_fetcher_contents_membuf_sync (OstreeFetcher *fetcher,
GBytes **out_contents, GBytes **out_contents,
GMainLoop *loop, GMainLoop *loop,
gpointer user_data, gpointer user_data,
guint64 max_size,
GCancellable *cancellable, GCancellable *cancellable,
GError **error); GError **error);
G_END_DECLS G_END_DECLS
+1
View File
@@ -265,6 +265,7 @@ fetch_uri_contents_membuf_sync (OtPullData *pull_data,
out_contents, out_contents,
pull_data->loop, pull_data->loop,
pull_data, pull_data,
OSTREE_MAX_METADATA_SIZE,
cancellable, cancellable,
error); error);
pull_data->fetching_sync_uri = NULL; pull_data->fetching_sync_uri = NULL;