Method

FlatpakInstallationfetch_remote_size_sync

Declaration [src]

gboolean
flatpak_installation_fetch_remote_size_sync (
  FlatpakInstallation* self,
  const char* remote_name,
  FlatpakRef* ref,
  guint64* download_size,
  guint64* installed_size,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Gets information about the maximum amount of data that needs to be transferred to pull the ref from a remote repository, and about the amount of local disk space that is required to check out this commit.

Note that if there are locally available data that are in the ref, which is common for instance if you’re doing an update then the real download size may be smaller than what is returned here.

NOTE: Since 0.11.4 this information is accessible in FlatpakRemoteRef, so this function is not very useful anymore.

Parameters

remote_name

Type: const char*

The name of the remote.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
ref

Type: FlatpakRef

The ref.

The data is owned by the caller of the method.
download_size

Type: guint64*

Return location for the (maximum) download size.

The argument will be set by the function.
installed_size

Type: guint64*

Return location for the installed size.

The argument will be set by the function.
cancellable

Type: GCancellable

A GCancellable.

The argument can be NULL.
The data is owned by the caller of the method.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will be left initialized to NULL by the method if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: gboolean

TRUE, unless an error occurred.