Top | ![]() |
![]() |
![]() |
![]() |
FwupdRemoteKind
fwupd_remote_kind_from_string (const gchar *kind
);
Converts an printable string to an enumerated type.
Since: 0.9.6
const gchar *
fwupd_remote_kind_to_string (FwupdRemoteKind kind
);
Converts an enumerated type to a printable string.
Since: 0.9.6
const gchar *
fwupd_remote_get_id (FwupdRemote *self
);
Gets the remote ID, e.g. lvfs-testing
.
Since: 0.9.3
const gchar *
fwupd_remote_get_title (FwupdRemote *self
);
Gets the remote title, e.g. Linux Vendor Firmware Service
.
Since: 0.9.8
const gchar *
fwupd_remote_get_agreement (FwupdRemote *self
);
Gets the remote agreement in AppStream markup format
Since: 1.0.7
const gchar *
fwupd_remote_get_remotes_dir (FwupdRemote *self
);
Gets the base directory for storing remote metadata
Since: 1.3.1
const gchar *
fwupd_remote_get_checksum (FwupdRemote *self
);
Gets the remote checksum.
Since: 1.0.0
const gchar *
fwupd_remote_get_username (FwupdRemote *self
);
Gets the username configured for the remote.
Since: 0.9.5
const gchar *
fwupd_remote_get_password (FwupdRemote *self
);
Gets the password configured for the remote.
Since: 0.9.5
const gchar *
fwupd_remote_get_filename_cache (FwupdRemote *self
);
Gets the path and filename that the remote is using for a cache.
Since: 0.9.6
const gchar *
fwupd_remote_get_filename_cache_sig (FwupdRemote *self
);
Gets the path and filename that the remote is using for a signature cache.
Since: 0.9.7
const gchar *
fwupd_remote_get_filename_source (FwupdRemote *self
);
Gets the path and filename of the remote itself, typically a .conf
file.
Since: 0.9.8
const gchar *
fwupd_remote_get_firmware_base_uri (FwupdRemote *self
);
Gets the base URI for firmware.
Since: 0.9.7
const gchar *
fwupd_remote_get_report_uri (FwupdRemote *self
);
Gets the URI for the remote reporting.
Since: 1.0.4
const gchar *
fwupd_remote_get_security_report_uri (FwupdRemote *self
);
Gets the URI for the security report.
Since: 1.5.0
const gchar *
fwupd_remote_get_metadata_uri (FwupdRemote *self
);
Gets the URI for the remote metadata.
Since: 0.9.7
const gchar *
fwupd_remote_get_metadata_uri_sig (FwupdRemote *self
);
Gets the URI for the remote metadata signature.
Since: 0.9.7
gboolean
fwupd_remote_get_enabled (FwupdRemote *self
);
Gets if the remote is enabled and should be used.
Since: 0.9.3
gboolean
fwupd_remote_get_approval_required (FwupdRemote *self
);
Gets if firmware from the remote should be checked against the list of a approved checksums.
Since: 1.2.6
gboolean
fwupd_remote_get_automatic_reports (FwupdRemote *self
);
Gets if reports should be automatically uploaded to this remote
Since: 1.3.3
gboolean
fwupd_remote_get_automatic_security_reports
(FwupdRemote *self
);
Gets if security reports should be automatically uploaded to this remote
Since: 1.5.0
gint
fwupd_remote_get_priority (FwupdRemote *self
);
Gets the priority of the remote, where bigger numbers are better.
Since: 0.9.5
guint64
fwupd_remote_get_age (FwupdRemote *self
);
Gets the age of the remote in seconds.
Since: 0.9.5
FwupdRemoteKind
fwupd_remote_get_kind (FwupdRemote *self
);
Gets the kind of the remote.
Since: 0.9.6
FwupdKeyringKind
fwupd_remote_get_keyring_kind (FwupdRemote *self
);
Gets the keyring kind of the remote.
Since: 0.9.7
gchar * fwupd_remote_build_firmware_uri (FwupdRemote *self
,const gchar *url
,GError **error
);
Builds a URI for the URL using the username and password set for the remote, including any basename URI substitution.
self |
||
url |
the URL to use. |
[not nullable] |
error |
optional return location for an error. |
[nullable] |
Since: 0.9.7
gboolean fwupd_remote_load_signature (FwupdRemote *self
,const gchar *filename
,GError **error
);
Parses the signature, updating the metadata URI as appropriate.
self |
||
filename |
a filename. |
[not nullable] |
error |
optional return location for an error. |
[nullable] |
Since: 1.4.0
gboolean fwupd_remote_load_signature_bytes (FwupdRemote *self
,GBytes *bytes
,GError **error
);
Parses the signature, updating the metadata URI as appropriate.
This can only be called for remotes with Keyring=jcat
which is
the default for most remotes.
self |
||
bytes |
data blob. |
[not nullable] |
error |
optional return location for an error. |
[nullable] |
Since: 1.4.5
FwupdRemote *
fwupd_remote_from_variant (GVariant *value
);
Creates a new remote using serialized data.
Since: 1.0.0