Method

FlatpakTransactionadd_install

Declaration [src]

gboolean
flatpak_transaction_add_install (
  FlatpakTransaction* self,
  const char* remote,
  const char* ref,
  const char** subpaths,
  GError** error
)

Description [src]

Adds installing the given ref to this transaction.

The remote can either be a configured remote of the installation, or a file:// uri pointing at a local repository to install from, in which case an origin remote is created.

Parameters

remote

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: const char*

The ref.

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

Type: An array of char*

Subpaths to install, or the empty list or NULL to pull all subpaths.

The argument can be NULL.
The array must be NULL-terminated.
The data is owned by the caller of the method.
Each element is a NUL terminated UTF-8 string.
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 on success; FALSE with error set on failure.