mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-27 10:37:37 -04:00
getters now have three forms: const char *foo_peek() returns pointer into data and length const char* foo_get() returns zero terminated pointer into data char *foo_dup() returns allocated zero terminated pointer Not everything has all of these (as that is not always possible), but it is clear what each one does. We also now support storing a collection id for a FlatpakDecomposed. This is not typically done (as we use the source remote to define the collecion id and don't expose this concept to the user). However, for the case when directly listing a local repo (such as a side-load repo) we need this. We now validate the arch string. The valid chars are a-z, A-Z, 0-9 and _. This was't previously verified, but no arches in existance have other chars. There is a new flatpak_decomposed_new_from_decomposed() which lets you modify part of another ref. Say replace the arch or the branch and keep the rest the same.