summaryrefslogtreecommitdiff
path: root/common/flatpak-ref-utils-private.h
Commit message (Collapse)AuthorAgeFilesLines
* app: Port to libappstreamPhilip Withnall2022-02-171-0/+2
| | | | | | | | | | | | | | libappstream-glib is mostly unmaintained, and libappstream is more actively developed (and up to date with the AppStream specification). Port from libappstream-glib to libappstream. Handily, a lot of the APIs are exactly the same. The main changes are: * `AsApp` → `AsComponent` * `AsStore` → `AsMetadata` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> (Mostly done by Philip, then Phaedrus finished this)
* history: Fix printing refsPhaedrus Leeds2022-01-041-0/+1
| | | | | | | | | | | | | The history command seems to have been broken since it was changed to use FlatpakDecomposed, since that type only works for app or runtime refs, resulting in errors such as: $ flatpak history error: appstream2/x86_64 is not application or runtime Fix this by making the logic a bit smarter, and don't let any one invalid ref entry prevent the whole command from working. Fixes #4332
* decomposed: Add flatpak_decomposed_id_is_subref_of()Alexander Larsson2020-11-161-0/+2
| | | | This checks if e.g. `org.app.App.Locale` is a subref of `org.app.App`.
* Remove unused flatpak_[de]compose_ref functionsAlexander Larsson2020-11-101-8/+0
| | | | We now all use the FlatpakDecompose versions.
* Add len argument to flatpak_decomposed_is_arches()Alexander Larsson2020-11-101-0/+1
| | | | This allows this to be used both with strv (len=-1) and other arrays.
* Add flatpak_decomposed_id_has_prefix()Alexander Larsson2020-11-101-0/+2
|
* decomposed: Add flatpak_decomposed_equal_except_branch ()Alexander Larsson2020-11-101-0/+2
| | | | This is used in flatpak_dir_deploy()
* decomposed: Add flatpak_decomposed_get_kind_metadata_group()Alexander Larsson2020-11-101-0/+1
| | | | This is a useful helper.
* decomposed: Add flatpak_decomposed_new_from_pref()Alexander Larsson2020-11-101-0/+3
| | | | | This is useful as we have partial refs in the metadata files, like the app runtime dependency.
* decomposed: Add id_has_suffix() helperAlexander Larsson2020-11-101-0/+2
|
* decomposed: Add support for FlatpakRefKindAlexander Larsson2020-11-051-1/+4
|
* Add flatpak_decomposed_new_from_parts()Alexander Larsson2020-11-051-0/+5
|
* Break out ref helper functions to separate fileAlexander Larsson2020-11-051-0/+157
flatpak-utils.c is getting large, and also I got some issues with include order, so split out things that are purely handling ref stings in various ways to its own file.