Signal

FlatpakTransaction::choose-remote-for-ref

Declaration

gint
choose_remote_for_ref (
  FlatpakTransaction* self,
  gchar* for_ref,
  gchar* runtime_ref,
  char** remotes,
  gpointer user_data
)

Description [src]

The ::choose-remote-for-ref signal gets emitted when a remote needs to be selected during the execution of the transaction.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Parameters

for_ref

Type: gchar*

The ref we are installing.

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

Type: gchar*

The ref we are looking for.

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

Type: An array of utf8

The remotes that has the ref, sorted in prio order.

The array must be NULL-terminated.
The data is owned by the caller of the function.
Each element is a NUL terminated UTF-8 string.

Return value

Type: gint

The index of the remote to use, or -1 to not pick one (and fail).