summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-release.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix compile with -Wdiscarded-qualifiersRichard Hughes2017-03-151-3/+4
| | | | Some distros helpfully force this on for some reason.
* trivial: Rename some non exported symbols to use AsFormatRichard Hughes2017-02-271-1/+1
|
* trivial: Use the new AsFormatKind definesRichard Hughes2017-02-271-1/+1
| | | | No code changes, and ensure we don't break API/ABI by using #define's.
* Fix a crash when using as_release_get_location_default()Richard Hughes2017-01-061-0/+2
| | | | The locations array is now lazy-loaded.
* trivial: Output the release state if the export is trustedRichard Hughes2016-12-151-0/+5
|
* Add as_release_state_to_string()Richard Hughes2016-12-151-0/+40
|
* Allocate the release sizes at runtimeRichard Hughes2016-11-211-17/+29
| | | | Saves 81Kb of RSS.
* Lazy load structures in AsReleaseRichard Hughes2016-11-211-12/+50
| | | | This saves another 0.8Mb of RSS.
* Use refcounted strings in all objectsRichard Hughes2016-11-211-14/+21
| | | | | This drops the RSS by ~1Mb and has the potential to do much more drastic things if this is used in GNOME Software.
* Add two new GCC warnings and fix up signed/unsigned issuesRichard Hughes2016-07-251-3/+3
|
* trivial: Factor out a soon-to-be-shared functionRichard Hughes2016-07-201-27/+1
|
* trivial: Get rid of useless internal-only gtk-doc markupRichard Hughes2016-06-281-12/+0
|
* Support more DEP11 YAML markupRichard Hughes2016-03-311-0/+46
| | | | This should fix a few things in GNOME Software on Xenial.
* Allow setting state on AsRelease objectsRichard Hughes2016-01-261-1/+36
|
* Support date=iso8601 attributes in <release> markupRichard Hughes2016-01-221-0/+36
| | | | Also fixes https://github.com/ximion/appstream/issues/20
* Do not attempt to parse the version in as_release_set_version()Richard Hughes2015-10-271-1/+1
| | | | | | We only need this in one specific case (from .inf files) and trying to parse all the random version numbers in the Fedora package archive was causing regressions in the builder output.
* Revert "Support the experimental <filename> tag for releases"Richard Hughes2015-10-071-49/+0
| | | | | | | This reverts commit 4384d052baea8005c406f47b410efe7d9236d8fa. We can easily use the filename in the checksum for this. Don't code late at night kids..
* Add the ability to attach blobs of data to AsRelease objectsRichard Hughes2015-10-071-0/+44
| | | | The filename is used as a key, and will be used to validate firmware stores.
* Support the experimental <filename> tag for releasesRichard Hughes2015-10-061-0/+49
| | | | | | This allows us to specify the file in a cab archive, which is required if we're shipping more than one version in a container, or if the container contains firmware for more than one model.
* Add support for <size>Richard Hughes2015-10-021-1/+74
| | | | This is used on release objects for installed and downloaded size.
* Always use a dotted-decimal representation of the versionRichard Hughes2015-09-241-11/+1
| | | | This helps a lot for UEFI versions that just specify a uint32le number.
* Accept a '0x' hexidecimal prefix when parsing a componentRichard Hughes2015-09-231-6/+13
|
* Add support for release urgencyRichard Hughes2015-09-111-0/+42
|
* Use glib's cleanup functions for GStringKalev Lember2015-09-101-2/+1
| | | | ... and bump glib dep to 2.45.8 for g_autoptr(GString) support.
* Use GLib's cleanup functions instead of libgsystem'sKalev Lember2015-09-081-2/+2
| | | | | | | We still have a few types that don't support g_autoptr(), but very very close to having everything ported over. This also bumps gdk-pixbuf dep to 2.31.5 for the cleanup macro support.
* libappstream-glib: Port to G_DECLARE_DERIVABLE_TYPE macroKalev Lember2015-09-081-3/+2
| | | | ... and bump glib dep to 2.44.0 for the macro.
* trivial: Add some missing gtk-doc commentsRichard Hughes2015-08-031-1/+3
|
* Remove some deprecated APIRichard Hughes2015-08-031-54/+0
|
* Drop the unused _len arguments on many functionsRichard Hughes2015-08-031-21/+11
| | | | | | Using the length of -1 for 'unknown' breaks the GIR-generated bindings. This breaks API and ABI and the soname has been updated to reflect this.
* Add AsChecksumRichard Hughes2015-08-031-119/+118
| | | | | | | | Also, partially revert the 'add filename' commit and move the filename to the checksum. This allows us to store the checksum of the firmware file as well as well as the .cab container. This allows us to validate the firmware on devices using fwupd.
* Add as_release_set_filename()Richard Hughes2015-07-231-1/+53
| | | | | | | | | | This allows us to save the source package or bundle that is referenced to the release. This allows us to download the correct file when installing a specific version of a component. This also allows us to mirror the correct file if the source filename is different from the location-specified filename, or if there is no location tag in the firmware metainfo file.
* Add as_release_vercmp()Richard Hughes2015-07-221-0/+31
| | | | We need to do the proper fallback when getting the newest release for an app.
* Only write the release timestamp if non-zeroRichard Hughes2015-07-011-5/+8
|
* Don't crash when parsing a <release> with no descriptionRichard Hughes2015-06-291-0/+4
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/54
* Do not duplicate <location> tags within a releaseRichard Hughes2015-06-241-0/+5
| | | | This can happen if the AsApp objects are being merged during store load.
* Parse the entire description when reading AppStream releasesRichard Hughes2015-03-051-1/+2
|
* Add support for <location> and <checksum>Richard Hughes2015-03-041-0/+185
| | | | This is needed for AppStream 0.9 support.
* Correctly load descriptions from <releases> in AppData filesRichard Hughes2015-01-211-9/+23
|
* Create a AsNodeContext object for parsing stateRichard Hughes2015-01-211-4/+6
| | | | | | | We've relied on version number heuristics for too long, and now we're in a position where we need the source kind to parse files correctly. All the functions are private, no API bump required.
* trivial: Don't show warnings when doing distcheckRichard Hughes2014-11-041-1/+1
| | | | | It seems that the compiler really does require an initializer when using the _cleanup_ macros.
* trivial: Fix up some GObjectIntrospection markupRichard Hughes2014-06-201-1/+1
|
* trivial: Use systemd-style cleanup functionsRichard Hughes2014-06-041-2/+2
| | | | There's no point creating yet another format...
* Use __attribute__(cleanup) to simplify memory cleanupRichard Hughes2014-06-011-4/+3
|
* Do not write xml:lang key versions when the same as the 'C' versionRichard Hughes2014-04-101-1/+2
|
* Add as_node_get_tag() and only store the name when the tag is unknownRichard Hughes2014-03-261-1/+1
| | | | | | | | | | | This has a drawback that we have to convert from string->enum quite a lot, but it turns out that the enum direct integer compare (compared to a strcmp) more than makes up for this. It also reduces the amount of small malloc()s when parsing metadata This speeds up parsing by ~7% and reduces the amount of memory required by ~5%. NOTE: the AsNodeData struct was re-ordered so it packs again into 32 bytes.
* Add as_node_take_attribute() to reduce allocations during parseRichard Hughes2014-03-241-4/+8
| | | | | This speeds up parsing by a couple of ms, but reduces the memory footprint by a few kb.
* Add an 'api-version' property to AsStore to generate old-style metadataRichard Hughes2014-03-201-3/+4
| | | | | This allows us to keep up with the latest API and still write metadata compatible with old applications not using libappstream-glib or libappstream.
* Don't crash when using getting an unset descriptionRichard Hughes2014-03-191-3/+5
|
* Add gtk-doc file headers and flesh out the documentationRichard Hughes2014-03-181-0/+16
|
* Unexport things we don't want to keep stableRichard Hughes2014-03-181-3/+3
|