Constructor
FlatpakRemotenew_from_file
since: 1.3.4
Declaration [src]
FlatpakRemote*
flatpak_remote_new_from_file (
const char* name,
GBytes* data,
GError** error
)
Description [src]
Returns a new pre-filled remote object which can be used to configure a new remote. The fields in the remote are filled in according to the values in the passed in flatpakrepo file.
Note: This is a local configuration object, you must commit changes
using flatpak_installation_modify_remote() or flatpak_installation_add_remote() for the changes to take effect.
Available since: 1.3.4
Parameters
name-
Type:
const char*A name.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. data-
Type:
GBytesThe content of a flatpakrepo file.
The data is owned by the caller of the function. 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 aNULLGError*.The argument will be left initialized to NULLby the constructor 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: FlatpakRemote
A new FlatpakRemote, or NULL on error.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |