Signal

FlatpakTransaction::add-new-remote

Declaration

gboolean
add_new_remote (
  FlatpakTransaction* self,
  gint reason,
  gchar* from_id,
  gchar* suggested_remote_name,
  gchar* url,
  gpointer user_data
)

Description [src]

The ::add-new-remote signal gets emitted if, as part of the transaction, it is required or recommended that a new remote is added, for the reason described in reason.

Default handler:

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

Parameters

reason

Type: FlatpakTransactionRemoteReason

A FlatpakTransactionRemoteReason for this suggestion.

from_id

Type: gchar*

The id of the app/runtime.

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

Type: gchar*

The suggested remote name.

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

Type: gchar*

The repo url.

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

Return value

Type: gboolean

TRUE to add the remote.