![]() |
![]() |
![]() |
fwupd Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define FWUPD_TYPE_RELEASE struct FwupdReleaseClass; FwupdRelease * fwupd_release_new (void
); gchar * fwupd_release_to_string (FwupdRelease *release
); const gchar * fwupd_release_get_version (FwupdRelease *release
); void fwupd_release_set_version (FwupdRelease *release
,const gchar *version
); const gchar * fwupd_release_get_uri (FwupdRelease *release
); void fwupd_release_set_uri (FwupdRelease *release
,const gchar *uri
); GPtrArray * fwupd_release_get_checksums (FwupdRelease *release
); void fwupd_release_add_checksum (FwupdRelease *release
,const gchar *checksum
); const gchar * fwupd_release_get_filename (FwupdRelease *release
); void fwupd_release_set_filename (FwupdRelease *release
,const gchar *filename
); const gchar * fwupd_release_get_appstream_id (FwupdRelease *release
); void fwupd_release_set_appstream_id (FwupdRelease *release
,const gchar *appstream_id
); const gchar * fwupd_release_get_remote_id (FwupdRelease *release
); void fwupd_release_set_remote_id (FwupdRelease *release
,const gchar *remote_id
); const gchar * fwupd_release_get_vendor (FwupdRelease *release
); void fwupd_release_set_vendor (FwupdRelease *release
,const gchar *vendor
); const gchar * fwupd_release_get_name (FwupdRelease *release
); void fwupd_release_set_name (FwupdRelease *release
,const gchar *name
); const gchar * fwupd_release_get_summary (FwupdRelease *release
); void fwupd_release_set_summary (FwupdRelease *release
,const gchar *summary
); const gchar * fwupd_release_get_description (FwupdRelease *release
); void fwupd_release_set_description (FwupdRelease *release
,const gchar *description
); const gchar * fwupd_release_get_homepage (FwupdRelease *release
); void fwupd_release_set_homepage (FwupdRelease *release
,const gchar *homepage
); guint64 fwupd_release_get_size (FwupdRelease *release
); void fwupd_release_set_size (FwupdRelease *release
,guint64 size
); const gchar * fwupd_release_get_license (FwupdRelease *release
); void fwupd_release_set_license (FwupdRelease *release
,const gchar *license
); FwupdTrustFlags fwupd_release_get_trust_flags (FwupdRelease *release
); void fwupd_release_set_trust_flags (FwupdRelease *release
,FwupdTrustFlags trust_flags
);
An object that represents a firmware release with a specific version. Devices can have more than one release, and the releases are typically ordered by their version.
See also: FwupdDevice
FwupdRelease * fwupd_release_new (void
);
Creates a new release.
Returns : |
a new FwupdRelease |
Since 0.9.3
gchar * fwupd_release_to_string (FwupdRelease *release
);
Builds a text representation of the object.
|
A FwupdRelease |
Returns : |
text, or NULL for invalid |
Since 0.9.3
const gchar * fwupd_release_get_version (FwupdRelease *release
);
Gets the update version.
|
A FwupdRelease |
Returns : |
the update version, or NULL if unset |
Since 0.9.3
void fwupd_release_set_version (FwupdRelease *release
,const gchar *version
);
Sets the update version.
|
A FwupdRelease |
|
the update version, e.g. `1.2.4` |
Since 0.9.3
const gchar * fwupd_release_get_uri (FwupdRelease *release
);
Gets the update uri.
|
A FwupdRelease |
Returns : |
the update uri, or NULL if unset |
Since 0.9.3
void fwupd_release_set_uri (FwupdRelease *release
,const gchar *uri
);
Sets the update uri, i.e. where you can download the firmware from.
|
A FwupdRelease |
|
the update URI |
Since 0.9.3
GPtrArray * fwupd_release_get_checksums (FwupdRelease *release
);
Gets the release checksums.
|
A FwupdRelease |
Returns : |
the checksums, which may be empty. [element-type utf8][transfer none] |
Since 0.9.3
void fwupd_release_add_checksum (FwupdRelease *release
,const gchar *checksum
);
Sets the update checksum.
|
A FwupdRelease |
|
the update checksum |
Since 0.9.3
const gchar * fwupd_release_get_filename (FwupdRelease *release
);
Gets the update filename.
|
A FwupdRelease |
Returns : |
the update filename, or NULL if unset |
Since 0.9.3
void fwupd_release_set_filename (FwupdRelease *release
,const gchar *filename
);
Sets the update filename.
|
A FwupdRelease |
|
the update filename on disk |
Since 0.9.3
const gchar * fwupd_release_get_appstream_id (FwupdRelease *release
);
Gets the AppStream ID.
|
A FwupdRelease |
Returns : |
the AppStream ID, or NULL if unset |
Since 0.9.3
void fwupd_release_set_appstream_id (FwupdRelease *release
,const gchar *appstream_id
);
Sets the AppStream ID.
|
A FwupdRelease |
|
the AppStream component ID, e.g. `org.hughski.ColorHug2.firmware` |
Since 0.9.3
const gchar * fwupd_release_get_remote_id (FwupdRelease *release
);
Gets the remote ID that can be used for downloading.
|
A FwupdRelease |
Returns : |
the ID, or NULL if unset |
Since 0.9.3
void fwupd_release_set_remote_id (FwupdRelease *release
,const gchar *remote_id
);
Sets the remote ID that can be used for downloading.
|
A FwupdRelease |
|
the release ID, e.g. `USB:foo` |
Since 0.9.3
const gchar * fwupd_release_get_vendor (FwupdRelease *release
);
Gets the update vendor.
|
A FwupdRelease |
Returns : |
the update vendor, or NULL if unset |
Since 0.9.3
void fwupd_release_set_vendor (FwupdRelease *release
,const gchar *vendor
);
Sets the update vendor.
|
A FwupdRelease |
|
the vendor name, e.g. `Hughski Limited` |
Since 0.9.3
const gchar * fwupd_release_get_name (FwupdRelease *release
);
Gets the update name.
|
A FwupdRelease |
Returns : |
the update name, or NULL if unset |
Since 0.9.3
void fwupd_release_set_name (FwupdRelease *release
,const gchar *name
);
Sets the update name.
|
A FwupdRelease |
|
the description |
Since 0.9.3
const gchar * fwupd_release_get_summary (FwupdRelease *release
);
Gets the update summary.
|
A FwupdRelease |
Returns : |
the update summary, or NULL if unset |
Since 0.9.3
void fwupd_release_set_summary (FwupdRelease *release
,const gchar *summary
);
Sets the update summary.
|
A FwupdRelease |
|
the update one line summary |
Since 0.9.3
const gchar * fwupd_release_get_description (FwupdRelease *release
);
Gets the update description in AppStream markup format.
|
A FwupdRelease |
Returns : |
the update description, or NULL if unset |
Since 0.9.3
void fwupd_release_set_description (FwupdRelease *release
,const gchar *description
);
Sets the update description.
|
A FwupdRelease |
|
the update description in AppStream markup format |
Since 0.9.3
const gchar * fwupd_release_get_homepage (FwupdRelease *release
);
Gets the update homepage.
|
A FwupdRelease |
Returns : |
the update homepage, or NULL if unset |
Since 0.9.3
void fwupd_release_set_homepage (FwupdRelease *release
,const gchar *homepage
);
Sets the update homepage.
|
A FwupdRelease |
|
the description |
Since 0.9.3
guint64 fwupd_release_get_size (FwupdRelease *release
);
Gets the update size.
|
A FwupdRelease |
Returns : |
the update size in bytes, or 0 if unset |
Since 0.9.3
void fwupd_release_set_size (FwupdRelease *release
,guint64 size
);
Sets the update size.
|
A FwupdRelease |
|
the update size in bytes |
Since 0.9.3
const gchar * fwupd_release_get_license (FwupdRelease *release
);
Gets the update license.
|
A FwupdRelease |
Returns : |
the update license, or NULL if unset |
Since 0.9.3
void fwupd_release_set_license (FwupdRelease *release
,const gchar *license
);
Sets the update license.
|
A FwupdRelease |
|
the description |
Since 0.9.3
FwupdTrustFlags fwupd_release_get_trust_flags (FwupdRelease *release
);
Gets the trust level of the release.
|
A FwupdRelease |
Returns : |
the trust bitfield, e.g. FWUPD_TRUST_FLAG_PAYLOAD |
Since 0.9.8
void fwupd_release_set_trust_flags (FwupdRelease *release
,FwupdTrustFlags trust_flags
);
Sets the trust level of the release.
|
A FwupdRelease |
|
the bitfield, e.g. FWUPD_TRUST_FLAG_PAYLOAD |
Since 0.9.8