"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common/flatpak-progress.c" between
flatpak-1.8.2.tar.xz and flatpak-1.8.3.tar.xz

About: Flatpak is a Linux application sandboxing and distribution framework.

flatpak-progress.c  (flatpak-1.8.2.tar.xz):flatpak-progress.c  (flatpak-1.8.3.tar.xz)
skipping to change at line 373 skipping to change at line 373
void void
flatpak_progress_update_extra_data (FlatpakProgress *self, flatpak_progress_update_extra_data (FlatpakProgress *self,
guint64 downloaded_bytes) guint64 downloaded_bytes)
{ {
if (self == NULL) if (self == NULL)
return; return;
self->transferred_extra_data_bytes = self->extra_data_previous_dl + downloaded _bytes; self->transferred_extra_data_bytes = self->extra_data_previous_dl + downloaded _bytes;
update_status_progress_and_estimating (self); update_status_progress_and_estimating (self);
self->callback (self->status, self->progress, self->estimating, self->user_dat
a);
} }
void void
flatpak_progress_complete_extra_data_download (FlatpakProgress *self, flatpak_progress_complete_extra_data_download (FlatpakProgress *self,
guint64 download_size) guint64 download_size)
{ {
if (self == NULL) if (self == NULL)
return; return;
g_assert (self->outstanding_extra_data > 0); g_assert (self->outstanding_extra_data > 0);
skipping to change at line 431 skipping to change at line 433
void void
flatpak_progress_update_oci_pull (FlatpakProgress *self, flatpak_progress_update_oci_pull (FlatpakProgress *self,
guint64 total_size, guint64 total_size,
guint64 pulled_size, guint64 pulled_size,
guint32 n_layers, guint32 n_layers,
guint32 pulled_layers) guint32 pulled_layers)
{ {
if (self == NULL) if (self == NULL)
return; return;
self->requested = n_layers; /* Need to set this to trigger start of progress r eporting, see update_status_progress_and_estimating() */
self->outstanding_fetches = n_layers - pulled_layers; self->outstanding_fetches = n_layers - pulled_layers;
self->fetched_delta_parts = pulled_layers; self->fetched_delta_parts = pulled_layers;
self->total_delta_parts = n_layers; self->total_delta_parts = n_layers;
self->fetched_delta_fallbacks = 0; self->fetched_delta_fallbacks = 0;
self->total_delta_fallbacks = 0; self->total_delta_fallbacks = 0;
self->bytes_transferred = pulled_size; self->bytes_transferred = pulled_size;
self->total_delta_part_size = total_size; self->total_delta_part_size = total_size;
self->total_delta_part_usize = total_size; self->total_delta_part_usize = total_size;
self->total_delta_superblocks = 0; self->total_delta_superblocks = 0;
update_status_progress_and_estimating (self); update_status_progress_and_estimating (self);
self->callback (self->status, self->progress, self->estimating, self->user_dat
a);
} }
guint32 guint32
flatpak_progress_get_update_interval (FlatpakProgress *self) flatpak_progress_get_update_interval (FlatpakProgress *self)
{ {
if (self == NULL) if (self == NULL)
return FLATPAK_DEFAULT_UPDATE_INTERVAL_MS; return FLATPAK_DEFAULT_UPDATE_INTERVAL_MS;
return self->update_interval; return self->update_interval;
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)